BRepAdaptor_CompCurve2 Class Reference

The Curve from BRepAdaptor allows to use a Wire of the BRep topology like a 3D curve. More...

#include <BRepAdaptor_CompCurve2.h>

List of all members.

Public Member Functions

Standard_EXPORT
Handle_Geom_BezierCurve 
Bezier () const
Standard_EXPORT BRepAdaptor_CompCurve2 (const TopoDS_Wire &W, const Standard_Boolean KnotByCurvilinearAbcissa, const Standard_Real First, const Standard_Real Last, const Standard_Real Tol)
 Creates a Curve to acces to the geometry of edge W.
Standard_EXPORT BRepAdaptor_CompCurve2 (const TopoDS_Wire &W, const Standard_Boolean KnotByCurvilinearAbcissa=Standard_False)
Standard_EXPORT BRepAdaptor_CompCurve2 ()
 Creates an undefined Curve with no Wire loaded.
Standard_EXPORT
Handle_Geom_BSplineCurve 
BSpline () const
Standard_EXPORT gp_Circ Circle () const
Standard_EXPORT GeomAbs_Shape Continuity () const
Standard_EXPORT void D0 (const Standard_Real U, gp_Pnt &P) const
 Computes the point of parameter U.
Standard_EXPORT void D1 (const Standard_Real U, gp_Pnt &P, gp_Vec &V) const
 Computes the point of parameter U on the curve with its first derivative.
Standard_EXPORT void D2 (const Standard_Real U, gp_Pnt &P, gp_Vec &V1, gp_Vec &V2) const
 Returns the point P of parameter U, the first and second derivatives V1 and V2.
Standard_EXPORT void D3 (const Standard_Real U, gp_Pnt &P, gp_Vec &V1, gp_Vec &V2, gp_Vec &V3) const
 Returns the point P of parameter U, the first, the second and the third derivative.
Standard_EXPORT Standard_Integer Degree () const
Standard_EXPORT gp_Vec DN (const Standard_Real U, const Standard_Integer N) const
 The returned vector gives the value of the derivative for the order of derivation N.
Standard_EXPORT void Edge (const Standard_Real U, TopoDS_Edge &E, Standard_Real &UonE) const
 returns an edge and one parameter on them corresponding to the parameter U.
Standard_EXPORT gp_Elips Ellipse () const
Standard_EXPORT Standard_Real FirstParameter () const
Standard_EXPORT GeomAbs_CurveType GetType () const
Standard_EXPORT gp_Hypr Hyperbola () const
Standard_EXPORT void Initialize (const TopoDS_Wire &W, const Standard_Boolean KnotByCurvilinearAbcissa, const Standard_Real First, const Standard_Real Last, const Standard_Real Tol)
 Sets wire W and trimmed parameter.
Standard_EXPORT void Initialize (const TopoDS_Wire &W, const Standard_Boolean KnotByCurvilinearAbcissa)
 Sets the wire W.
Standard_EXPORT void Intervals (TColStd_Array1OfReal &T, const GeomAbs_Shape S)
 Stores in <T> the parameters bounding the intervals of continuity <S>.
.
Standard_EXPORT Standard_Boolean IsClosed () const
Standard_EXPORT Standard_Boolean IsPeriodic () const
Standard_EXPORT Standard_Boolean IsRational () const
Standard_EXPORT Standard_Real LastParameter () const
Standard_EXPORT gp_Lin Line () const
Standard_EXPORT Standard_Integer NbIntervals (const GeomAbs_Shape S)
 Returns the number of intervals for continuity <S>.
Standard_EXPORT Standard_Integer NbKnots () const
Standard_EXPORT Standard_Integer NbPoles () const
void operator delete (void *anAddress)
void * operator new (size_t size)
void * operator new (size_t, void *anAddress)
Standard_EXPORT gp_Parab Parabola () const
Standard_EXPORT Standard_Real Period () const
Standard_EXPORT Standard_Real Resolution (const Standard_Real R3d) const
 returns the parametric resolution
Standard_EXPORT void SetPeriodic (const Standard_Boolean Periodic)
 Set the flag Periodic.
Standard_EXPORT gp_Pnt Value (const Standard_Real U) const
 Computes the point of parameter U on the curve.
Standard_EXPORT const TopoDS_Wire & Wire () const
 Returns the wire.

Detailed Description

The Curve from BRepAdaptor allows to use a Wire of the BRep topology like a 3D curve.


Warning: With this class of curve, C0 and C1 continuities are not assumed. So be careful with some algorithm!

Definition at line 97 of file BRepAdaptor_CompCurve2.h.


Constructor & Destructor Documentation

BRepAdaptor_CompCurve2::BRepAdaptor_CompCurve2 (  ) 

Creates an undefined Curve with no Wire loaded.

Definition at line 46 of file BRepAdaptor_CompCurve2.cxx.

BRepAdaptor_CompCurve2::BRepAdaptor_CompCurve2 ( const TopoDS_Wire &  W,
const Standard_Boolean  KnotByCurvilinearAbcissa = Standard_False 
)

Definition at line 50 of file BRepAdaptor_CompCurve2.cxx.

References Initialize().

BRepAdaptor_CompCurve2::BRepAdaptor_CompCurve2 ( const TopoDS_Wire &  W,
const Standard_Boolean  KnotByCurvilinearAbcissa,
const Standard_Real  First,
const Standard_Real  Last,
const Standard_Real  Tol 
)

Creates a Curve to acces to the geometry of edge W.

Definition at line 56 of file BRepAdaptor_CompCurve2.cxx.

References Initialize().


Member Function Documentation

Standard_EXPORT Handle_Geom_BezierCurve BRepAdaptor_CompCurve2::Bezier (  )  const
Standard_EXPORT Handle_Geom_BSplineCurve BRepAdaptor_CompCurve2::BSpline (  )  const
gp_Circ BRepAdaptor_CompCurve2::Circle (  )  const

Definition at line 376 of file BRepAdaptor_CompCurve2.cxx.

GeomAbs_Shape BRepAdaptor_CompCurve2::Continuity (  )  const

Definition at line 214 of file BRepAdaptor_CompCurve2.cxx.

void BRepAdaptor_CompCurve2::D0 ( const Standard_Real  U,
gp_Pnt &  P 
) const
void BRepAdaptor_CompCurve2::D1 ( const Standard_Real  U,
gp_Pnt &  P,
gp_Vec &  V 
) const

Computes the point of parameter U on the curve with its first derivative.


Raised if the continuity of the current interval is not C1.

Definition at line 305 of file BRepAdaptor_CompCurve2.cxx.

void BRepAdaptor_CompCurve2::D2 ( const Standard_Real  U,
gp_Pnt &  P,
gp_Vec &  V1,
gp_Vec &  V2 
) const

Returns the point P of parameter U, the first and second derivatives V1 and V2.


Raised if the continuity of the current interval is not C2.

Definition at line 316 of file BRepAdaptor_CompCurve2.cxx.

void BRepAdaptor_CompCurve2::D3 ( const Standard_Real  U,
gp_Pnt &  P,
gp_Vec &  V1,
gp_Vec &  V2,
gp_Vec &  V3 
) const

Returns the point P of parameter U, the first, the second and the third derivative.


Raised if the continuity of the current interval is not C3.

Definition at line 329 of file BRepAdaptor_CompCurve2.cxx.

Standard_Integer BRepAdaptor_CompCurve2::Degree (  )  const

Definition at line 396 of file BRepAdaptor_CompCurve2.cxx.

gp_Vec BRepAdaptor_CompCurve2::DN ( const Standard_Real  U,
const Standard_Integer  N 
) const

The returned vector gives the value of the derivative for the order of derivation N.


Raised if the continuity of the current interval is not CN.
Raised if N < 1.

Definition at line 343 of file BRepAdaptor_CompCurve2.cxx.

void BRepAdaptor_CompCurve2::Edge ( const Standard_Real  U,
TopoDS_Edge &  E,
Standard_Real &  UonE 
) const

returns an edge and one parameter on them corresponding to the parameter U.

Definition at line 193 of file BRepAdaptor_CompCurve2.cxx.

gp_Elips BRepAdaptor_CompCurve2::Ellipse (  )  const

Definition at line 381 of file BRepAdaptor_CompCurve2.cxx.

Standard_Real BRepAdaptor_CompCurve2::FirstParameter (  )  const

Definition at line 204 of file BRepAdaptor_CompCurve2.cxx.

Referenced by best_fit_test().

GeomAbs_CurveType BRepAdaptor_CompCurve2::GetType ( void   )  const

Definition at line 364 of file BRepAdaptor_CompCurve2.cxx.

gp_Hypr BRepAdaptor_CompCurve2::Hyperbola (  )  const

Definition at line 386 of file BRepAdaptor_CompCurve2.cxx.

void BRepAdaptor_CompCurve2::Initialize ( const TopoDS_Wire &  W,
const Standard_Boolean  KnotByCurvilinearAbcissa,
const Standard_Real  First,
const Standard_Real  Last,
const Standard_Real  Tol 
)

Sets wire W and trimmed parameter.

Definition at line 132 of file BRepAdaptor_CompCurve2.cxx.

References Mod::PartDesign::Scripts::Gear::c1, SketcherExample::f, Handle(), Initialize(), k, and RobotExample::l.

void BRepAdaptor_CompCurve2::Initialize ( const TopoDS_Wire &  W,
const Standard_Boolean  KnotByCurvilinearAbcissa 
)
void BRepAdaptor_CompCurve2::Intervals ( TColStd_Array1OfReal &  T,
const GeomAbs_Shape  S 
)

Stores in <T> the parameters bounding the intervals of continuity <S>.
.

The array must provide enough room to accomodate for the parameters. i.e. T.Length() > NbIntervals()

Definition at line 229 of file BRepAdaptor_CompCurve2.cxx.

References SketcherExample::f, and Handle().

Standard_Boolean BRepAdaptor_CompCurve2::IsClosed (  )  const

Definition at line 272 of file BRepAdaptor_CompCurve2.cxx.

Standard_Boolean BRepAdaptor_CompCurve2::IsPeriodic (  )  const

Definition at line 277 of file BRepAdaptor_CompCurve2.cxx.

Standard_Boolean BRepAdaptor_CompCurve2::IsRational (  )  const

Definition at line 401 of file BRepAdaptor_CompCurve2.cxx.

Standard_Real BRepAdaptor_CompCurve2::LastParameter (  )  const

Definition at line 209 of file BRepAdaptor_CompCurve2.cxx.

Referenced by best_fit_test().

gp_Lin BRepAdaptor_CompCurve2::Line (  )  const

Definition at line 371 of file BRepAdaptor_CompCurve2.cxx.

Standard_Integer BRepAdaptor_CompCurve2::NbIntervals ( const GeomAbs_Shape  S  ) 

Returns the number of intervals for continuity <S>.


May be one if Continuity(me) >= <S>

Definition at line 220 of file BRepAdaptor_CompCurve2.cxx.

Standard_Integer BRepAdaptor_CompCurve2::NbKnots (  )  const

Definition at line 411 of file BRepAdaptor_CompCurve2.cxx.

Standard_Integer BRepAdaptor_CompCurve2::NbPoles (  )  const

Definition at line 406 of file BRepAdaptor_CompCurve2.cxx.

void BRepAdaptor_CompCurve2::operator delete ( void *  anAddress  )  [inline]

Definition at line 110 of file BRepAdaptor_CompCurve2.h.

void* BRepAdaptor_CompCurve2::operator new ( size_t  size  )  [inline]

Definition at line 106 of file BRepAdaptor_CompCurve2.h.

References Wm4::Allocate().

void* BRepAdaptor_CompCurve2::operator new ( size_t  ,
void *  anAddress 
) [inline]

Definition at line 102 of file BRepAdaptor_CompCurve2.h.

gp_Parab BRepAdaptor_CompCurve2::Parabola (  )  const

Definition at line 391 of file BRepAdaptor_CompCurve2.cxx.

Standard_Real BRepAdaptor_CompCurve2::Period (  )  const

Definition at line 283 of file BRepAdaptor_CompCurve2.cxx.

Standard_Real BRepAdaptor_CompCurve2::Resolution ( const Standard_Real  R3d  )  const

returns the parametric resolution

Definition at line 353 of file BRepAdaptor_CompCurve2.cxx.

void BRepAdaptor_CompCurve2::SetPeriodic ( const Standard_Boolean  Periodic  ) 

Set the flag Periodic.


Warning: This method has no effect if the wire is not closed.

Definition at line 180 of file BRepAdaptor_CompCurve2.cxx.

gp_Pnt BRepAdaptor_CompCurve2::Value ( const Standard_Real  U  )  const

Computes the point of parameter U on the curve.

Definition at line 288 of file BRepAdaptor_CompCurve2.cxx.

Referenced by best_fit_test().

const TopoDS_Wire & BRepAdaptor_CompCurve2::Wire (  )  const

Returns the wire.

Definition at line 188 of file BRepAdaptor_CompCurve2.cxx.


The documentation for this class was generated from the following files:

Generated on Wed Nov 23 19:01:31 2011 for FreeCAD by  doxygen 1.6.1