17 #if !defined(OPENNURBS_REVSURFACE_INC_) 18 #define OPENNURBS_REVSURFACE_INC_ 81 double start_angle_radians,
82 double end_angle_radians
86 double start_angle_degrees,
87 double end_angle_degrees
96 unsigned int SizeOf()
const override;
99 ON__UINT32
DataCRC(ON__UINT32 current_remainder)
const override;
125 bool GetBBox(
double* boxmin,
double* boxmax,
bool bGrowBox =
false )
const override;
200 double tolerance = ON_ZERO_TOLERANCE
216 double tolerance = ON_ZERO_TOLERANCE
232 double tolerance = ON_ZERO_TOLERANCE
250 double tolerance = ON_ZERO_TOLERANCE
326 double cos_angle_tolerance=ON_DEFAULT_ANGLE_TOLERANCE_COSINE,
327 double curvature_tolerance=ON_SQRT_EPSILON
362 double point_tolerance=ON_ZERO_TOLERANCE,
363 double d1_tolerance=ON_ZERO_TOLERANCE,
364 double d2_tolerance=ON_ZERO_TOLERANCE,
365 double cos_angle_tolerance=ON_DEFAULT_ANGLE_TOLERANCE_COSINE,
366 double curvature_tolerance=ON_SQRT_EPSILON
512 double nurbs_s,
double nurbs_t,
513 double* surface_s,
double* surface_t
517 double surface_s,
double surface_t,
518 double* nurbs_s,
double* nurbs_t
virtual bool Transpose()=0
virtual bool Transform(const ON_Xform &xform)
Transforms the object.
virtual bool IsClosed(int) const
bool m_bTransposed
Definition: opennurbs_revsurface.h:56
bool SetDomain(int dir, ON_Interval domain)
ON_Surface & operator=(const ON_Surface &)
virtual bool IsPeriodic(int) const
virtual int Dimension() const
Dimension of the object.
virtual int GetNurbForm(ON_NurbsSurface &nurbs_surface, double tolerance=0.0) const
Get a NURBS surface representation of this surface.
Definition: opennurbs_nurbssurface.h:62
ON_Curve * m_curve
Definition: opennurbs_revsurface.h:32
virtual bool GetBBox(double *boxmin, double *boxmax, bool bGrowBox=false) const
This is the virtual function that actually calculates axis aligned bounding boxes.
Lightweight right circular cone. Use ON_ConeSurface if you need ON_Cone geometry as a virtual ON_Surf...
Definition: opennurbs_cone.h:27
virtual bool GetSpanVector(int dir, double *span_vector) const =0
ON_Interval m_t
Definition: opennurbs_revsurface.h:50
ON_Curve is a pure virtual class for curve objects
Definition: opennurbs_curve.h:93
virtual bool GetSurfaceParameterFromNurbFormParameter(double nurbs_s, double nurbs_t, double *surface_s, double *surface_t) const
ON_Cylinder is a right circular cylinder.
Definition: opennurbs_cylinder.h:27
virtual bool IsPlanar(ON_Plane *plane=nullptr, double tolerance=ON_ZERO_TOLERANCE) const
Test a surface to see if it is planar.
virtual ON_Interval Domain(int dir) const =0
virtual int Degree(int dir) const =0
ON_Interval m_angle
Definition: opennurbs_revsurface.h:40
Definition: opennurbs_bounding_box.h:25
ON_Line m_axis
Axis of revolution.
Definition: opennurbs_revsurface.h:35
virtual int SpanCount(int dir) const =0
virtual bool GetNurbFormParameterFromSurfaceParameter(double surface_s, double surface_t, double *nurbs_s, double *nurbs_t) const
virtual void ClearBoundingBox()
Some objects cache bounding box information. If you modify an object, then call ClearBoundingBox() to...
virtual bool Split(int dir, double c, ON_Surface *&west_or_south_side, ON_Surface *&east_or_north_side) const
Splits (divides) the surface into two parts at the specified parameter.
virtual bool Trim(int dir, const ON_Interval &domain)
Removes the portions of the surface outside of the specified interval.
virtual void Dump(ON_TextLog &) const
Creates a text dump of the object.
unsigned int SizeOf() const override
virtual ON_Object::SizeOf override
Definition: opennurbs_line.h:20
void DestroyRuntimeCache(bool bDelete=true) override
virtual ON_Object::DestroyRuntimeCache override
virtual bool Extend(int dir, const ON_Interval &domain)
Pure virtual function. Default returns false. Where possible, analytically extends surface to include...
virtual ON_Curve * IsoCurve(int dir, double c) const
Get isoparametric curve.
virtual bool GetParameterTolerance(int dir, double t, double *tminus, double *tplus) const
Definition: opennurbs_textlog.h:20
Definition: opennurbs_archive.h:1783
virtual bool Read(ON_BinaryArchive &binary_archive)
Low level archive writing tool used by ON_BinaryArchive::ReadObject().
bool IsValid(class ON_TextLog *text_log=nullptr) const override
Tests an object to see if its data members are correctly initialized.
virtual bool Write(ON_BinaryArchive &binary_archive) const
Low level archive writing tool used by ON_BinaryArchive::WriteObject().
virtual ON__UINT32 DataCRC(ON__UINT32 current_remainder) const
Returns a CRC calculated from the information that defines the object. This CRC can be used as a quic...
Definition: opennurbs_plane.h:20
surface of revolution
Definition: opennurbs_revsurface.h:21
Definition: opennurbs_surface.h:57
virtual bool Reverse(int)=0
virtual bool IsSingular(int) const
ON_BoundingBox m_bbox
Bounding box of the surface of revolution.
Definition: opennurbs_revsurface.h:59
virtual bool GetSurfaceSize(double *width, double *height) const
Get an estimate of the size of the rectangle that would be created if the 3d surface where flattened ...
Definition: opennurbs_point.h:46
virtual int HasNurbForm() const
Is there a NURBS surface representation of this surface.
Definition: opennurbs_sphere.h:22
virtual bool Evaluate(double u, double v, int num_der, int array_stride, double *der_array, int quadrant=0, int *hint=0) const =0
work horse evaluator
virtual bool GetNextDiscontinuity(int dir, ON::continuity c, double t0, double t1, double *t, int *hint=nullptr, int *dtype=nullptr, double cos_angle_tolerance=ON_DEFAULT_ANGLE_TOLERANCE_COSINE, double curvature_tolerance=ON_SQRT_EPSILON) const
Search for a derivatitive, tangent, or curvature discontinuity.
virtual bool IsContinuous(ON::continuity c, double s, double t, int *hint=nullptr, double point_tolerance=ON_ZERO_TOLERANCE, double d1_tolerance=ON_ZERO_TOLERANCE, double d2_tolerance=ON_ZERO_TOLERANCE, double cos_angle_tolerance=ON_DEFAULT_ANGLE_TOLERANCE_COSINE, double curvature_tolerance=ON_SQRT_EPSILON) const
Test continuity at a surface parameter value.