Open CASCADE Technology 6.6.0
Public Member Functions
BRepAlgo_NormalProjection Class Reference

This class makes the projection of a wire on a
shape.

#include <BRepAlgo_NormalProjection.hxx>

Public Member Functions

 BRepAlgo_NormalProjection ()
 BRepAlgo_NormalProjection (const TopoDS_Shape &S)
void Init (const TopoDS_Shape &S)
void Add (const TopoDS_Shape &ToProj)
 Add an edge or a wire to the list of shape to project


void SetParams (const Standard_Real Tol3D, const Standard_Real Tol2D, const GeomAbs_Shape InternalContinuity, const Standard_Integer MaxDegree, const Standard_Integer MaxSeg)
 Set the parameters used for computation
Tol3d is the requiered tolerance between the 3d projected
curve and its 2d representation
InternalContinuity is the order of constraints
used for approximation.
MaxDeg and MaxSeg are the maximum degree and the maximum
number of segment for BSpline resulting of an approximation.

void SetDefaultParams ()
 Set the parameters used for computation
in their default values

void SetMaxDistance (const Standard_Real MaxDist)
 Sets the maximum distance between target shape and
shape to project. If this condition is not satisfied then
corresponding part of solution is discarded.
if MaxDist < 0 then this method does not affect the algorithm

void Compute3d (const Standard_Boolean With3d=Standard_True)
 if With3d = Standard_False the 3dcurve is not computed
the initial 3dcurve is kept to build the resulting edges.

void SetLimit (const Standard_Boolean FaceBoundaries=Standard_True)
 Manage limitation of projected edges.

void Build ()
 Builds the result as a compound.

Standard_Boolean IsDone () const
const TopoDS_ShapeProjection () const
 returns the result

const TopoDS_ShapeAncestor (const TopoDS_Edge &E) const
 For a resulting edge, returns the corresponding initial edge.

const TopoDS_ShapeCouple (const TopoDS_Edge &E) const
 For a projected edge, returns the corresponding initial face.

const TopTools_ListOfShapeGenerated (const TopoDS_Shape &S)
 Returns the list of shapes generated from the
shape <S>.

Standard_Boolean IsElementary (const Adaptor3d_Curve &C) const
Standard_Boolean BuildWire (TopTools_ListOfShape &Liste) const
 build the result as a list of wire if possible in --
a first returns a wire only if there is only a wire.



Constructor & Destructor Documentation

BRepAlgo_NormalProjection::BRepAlgo_NormalProjection ( )
BRepAlgo_NormalProjection::BRepAlgo_NormalProjection ( const TopoDS_Shape S)

Member Function Documentation

void BRepAlgo_NormalProjection::Add ( const TopoDS_Shape ToProj)
const TopoDS_Shape& BRepAlgo_NormalProjection::Ancestor ( const TopoDS_Edge E) const
void BRepAlgo_NormalProjection::Build ( )
Standard_Boolean BRepAlgo_NormalProjection::BuildWire ( TopTools_ListOfShape Liste) const
void BRepAlgo_NormalProjection::Compute3d ( const Standard_Boolean  With3d = Standard_True)
const TopoDS_Shape& BRepAlgo_NormalProjection::Couple ( const TopoDS_Edge E) const
const TopTools_ListOfShape& BRepAlgo_NormalProjection::Generated ( const TopoDS_Shape S)
void BRepAlgo_NormalProjection::Init ( const TopoDS_Shape S)
Standard_Boolean BRepAlgo_NormalProjection::IsDone ( ) const
Standard_Boolean BRepAlgo_NormalProjection::IsElementary ( const Adaptor3d_Curve C) const
const TopoDS_Shape& BRepAlgo_NormalProjection::Projection ( ) const
void BRepAlgo_NormalProjection::SetDefaultParams ( )
void BRepAlgo_NormalProjection::SetLimit ( const Standard_Boolean  FaceBoundaries = Standard_True)
void BRepAlgo_NormalProjection::SetMaxDistance ( const Standard_Real  MaxDist)
void BRepAlgo_NormalProjection::SetParams ( const Standard_Real  Tol3D,
const Standard_Real  Tol2D,
const GeomAbs_Shape  InternalContinuity,
const Standard_Integer  MaxDegree,
const Standard_Integer  MaxSeg 
)

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines