Open CASCADE Technology  7.7.0
Public Member Functions
BRepAlgo_NormalProjection Class Reference

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

#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. More...
 
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 required 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. More...
 
void SetDefaultParams ()
 Set the parameters used for computation in their default values. More...
 
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. More...
 
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. More...
 
void SetLimit (const Standard_Boolean FaceBoundaries=Standard_True)
 Manage limitation of projected edges. More...
 
void Build ()
 Builds the result as a compound. More...
 
Standard_Boolean IsDone () const
 
const TopoDS_ShapeProjection () const
 returns the result More...
 
const TopoDS_ShapeAncestor (const TopoDS_Edge &E) const
 For a resulting edge, returns the corresponding initial edge. More...
 
const TopoDS_ShapeCouple (const TopoDS_Edge &E) const
 For a projected edge, returns the corresponding initial face. More...
 
const TopTools_ListOfShapeGenerated (const TopoDS_Shape &S)
 Returns the list of shapes generated from the shape <S>. More...
 
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. More...
 

Detailed Description

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

Constructor & Destructor Documentation

◆ BRepAlgo_NormalProjection() [1/2]

BRepAlgo_NormalProjection::BRepAlgo_NormalProjection ( )

◆ BRepAlgo_NormalProjection() [2/2]

BRepAlgo_NormalProjection::BRepAlgo_NormalProjection ( const TopoDS_Shape S)

Member Function Documentation

◆ Add()

void BRepAlgo_NormalProjection::Add ( const TopoDS_Shape ToProj)

Add an edge or a wire to the list of shape to project.

◆ Ancestor()

const TopoDS_Shape& BRepAlgo_NormalProjection::Ancestor ( const TopoDS_Edge E) const

For a resulting edge, returns the corresponding initial edge.

◆ Build()

void BRepAlgo_NormalProjection::Build ( )

Builds the result as a compound.

◆ BuildWire()

Standard_Boolean BRepAlgo_NormalProjection::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.

◆ Compute3d()

void BRepAlgo_NormalProjection::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.

◆ Couple()

const TopoDS_Shape& BRepAlgo_NormalProjection::Couple ( const TopoDS_Edge E) const

For a projected edge, returns the corresponding initial face.

◆ Generated()

const TopTools_ListOfShape& BRepAlgo_NormalProjection::Generated ( const TopoDS_Shape S)

Returns the list of shapes generated from the shape <S>.

◆ Init()

void BRepAlgo_NormalProjection::Init ( const TopoDS_Shape S)

◆ IsDone()

Standard_Boolean BRepAlgo_NormalProjection::IsDone ( ) const

◆ IsElementary()

Standard_Boolean BRepAlgo_NormalProjection::IsElementary ( const Adaptor3d_Curve C) const

◆ Projection()

const TopoDS_Shape& BRepAlgo_NormalProjection::Projection ( ) const

returns the result

◆ SetDefaultParams()

void BRepAlgo_NormalProjection::SetDefaultParams ( )

Set the parameters used for computation in their default values.

◆ SetLimit()

void BRepAlgo_NormalProjection::SetLimit ( const Standard_Boolean  FaceBoundaries = Standard_True)

Manage limitation of projected edges.

◆ SetMaxDistance()

void BRepAlgo_NormalProjection::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.

◆ SetParams()

void BRepAlgo_NormalProjection::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 required 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.


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