23 #if !defined(OPENNURBS_POLYCURVE_INC_) 24 #define OPENNURBS_POLYCURVE_INC_ 63 unsigned int SizeOf()
const;
66 ON__UINT32
DataCRC(ON__UINT32 current_remainder)
const;
152 int bGrowBox =
false,
194 int desired_dimension
225 double = ON_ZERO_TOLERANCE
254 double = ON_ZERO_TOLERANCE
260 double = ON_ZERO_TOLERANCE
265 double = ON_ZERO_TOLERANCE
320 double cos_angle_tolerance=ON_DEFAULT_ANGLE_TOLERANCE_COSINE,
321 double curvature_tolerance=ON_SQRT_EPSILON
361 double point_tolerance=ON_ZERO_TOLERANCE,
362 double d1_tolerance=ON_ZERO_TOLERANCE,
363 double d2_tolerance=ON_ZERO_TOLERANCE,
364 double cos_angle_tolerance=ON_DEFAULT_ANGLE_TOLERANCE_COSINE,
365 double curvature_tolerance=ON_SQRT_EPSILON
547 double SegmentCurveParameter(
548 double polycurve_parameter
563 double PolyCurveParameter(
565 double segmentcurve_parameter
593 double polycurve_parameter
614 ON_Curve* FirstSegmentCurve()
const;
633 int FindNextGap(
int segment_index0 )
const;
648 bool HasGapAt(
int segment_index )
const;
651 ON_DEPRECATED
int HasGap()
const;
680 bool CloseGap(
int gap_index,
int segments_to_modify );
704 ON_BOOL32 PrependAndMatch(
ON_Curve*);
705 ON_BOOL32 AppendAndMatch(
ON_Curve*);
708 ON_BOOL32 Remove(
int );
721 bool IsNested()
const;
729 void RemoveNesting();
740 bool RemoveNestingEx();
749 bool HasSynchronizedSegmentDomains()
const;
760 bool SynchronizeSegmentDomains();
768 void SetSegment(
int index,
ON_Curve* crv);
779 bool SetParameterization(
const double* t );
virtual ON_BOOL32 IsValid(ON_TextLog *text_log=NULL) const =0
virtual ON_BOOL32 IsLinear(double tolerance=ON_ZERO_TOLERANCE) const
virtual ON_BOOL32 SetEndPoint(ON_3dPoint end_point)
virtual ON_BOOL32 IsPlanar(ON_Plane *plane=NULL, double tolerance=ON_ZERO_TOLERANCE) const
virtual int SpanCount() const =0
unsigned int SizeOf() const
virtual ON_BOOL32 ChangeClosedCurveSeam(double t)
virtual ON_BOOL32 Transform(const ON_Xform &xform)
bool ParameterSearch(double t, int &index, bool bEnableSnap, const ON_SimpleArray< double > &m_t, double RelTol=ON_SQRT_EPSILON) const
virtual int HasNurbForm() const
virtual ON_BOOL32 IsClosed() const
virtual ON_BOOL32 Split(double t, ON_Curve *&left_side, ON_Curve *&right_side) const
virtual bool MakeDeformable()
virtual bool Extend(const ON_Interval &domain)
virtual int Degree() const =0
virtual ON_BOOL32 Write(ON_BinaryArchive &binary_archive) const
virtual ON_BOOL32 IsPeriodic() const
bool EvaluatePoint(const class ON_ObjRef &objref, ON_3dPoint &P) const
virtual int IsPolyline(ON_SimpleArray< ON_3dPoint > *pline_points=NULL, ON_SimpleArray< double > *pline_t=NULL) const
virtual ON_BOOL32 GetCurveParameterFromNurbFormParameter(double nurbs_t, double *curve_t) const
virtual ON_Curve * DuplicateCurve() const
virtual bool ChangeDimension(int desired_dimension)
virtual ON_BOOL32 SwapCoordinates(int i, int j)
virtual int Dimension() const =0
virtual ON_BOOL32 IsArc(const ON_Plane *plane=NULL, ON_Arc *arc=NULL, double tolerance=ON_ZERO_TOLERANCE) const
virtual bool GetNextDiscontinuity(ON::continuity c, double t0, double t1, double *t, int *hint=NULL, int *dtype=NULL, double cos_angle_tolerance=ON_DEFAULT_ANGLE_TOLERANCE_COSINE, double curvature_tolerance=ON_SQRT_EPSILON) const
virtual ON_BOOL32 GetNurbFormParameterFromCurveParameter(double curve_t, double *nurbs_t) const
virtual ON_BOOL32 Read(ON_BinaryArchive &binary_archive)
virtual ON_BOOL32 Trim(const ON_Interval &domain)
virtual void Dump(ON_TextLog &) const
virtual bool IsDeformable() const
ON_Curve & operator=(const ON_Curve &)
virtual bool IsContinuous(ON::continuity c, double t, int *hint=NULL, 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
bool SetDomain(ON_Interval domain)
virtual ON_BOOL32 Reverse()=0
virtual ON_BOOL32 GetSpanVector(double *knots) const =0
virtual ON_BOOL32 IsInPlane(const ON_Plane &test_plane, double tolerance=ON_ZERO_TOLERANCE) const =0
virtual int GetNurbForm(ON_NurbsCurve &nurbs_curve, double tolerance=0.0, const ON_Interval *subdomain=NULL) const
bool GetTightBoundingBox(ON_BoundingBox &tight_bbox, int bGrowBox=false, const ON_Xform *xform=0) const
virtual ON__UINT32 DataCRC(ON__UINT32 current_remainder) const
virtual ON_BOOL32 GetBBox(double *boxmin, double *boxmax, int bGrowBox=false) const =0
virtual ON_BOOL32 Evaluate(double t, int der_count, int v_stride, double *v, int side=0, int *hint=0) const =0
virtual ON_BOOL32 SetStartPoint(ON_3dPoint start_point)
void DestroyRuntimeCache(bool bDelete=true)
virtual ON_Interval Domain() const =0