Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
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

DEFINE_STANDARD_ALLOC 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


Member Function Documentation


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