Open CASCADE Technology  7.7.0
Public Member Functions

BRepSweep_Translation Class Reference

Provides an algorithm to build object by translation sweep. More...

#include <BRepSweep_Translation.hxx>

Inheritance diagram for BRepSweep_Translation:
Inheritance graph
[legend]

Public Member Functions

 BRepSweep_Translation (const TopoDS_Shape &S, const Sweep_NumShape &N, const TopLoc_Location &L, const gp_Vec &V, const Standard_Boolean C, const Standard_Boolean Canonize=Standard_True)
 Creates a topology by translating with the vector <V>. If C is true S Sucomponents are copied. If Canonize is true then generated surfaces are attempted to be canonized in simple types. More...
 
TopoDS_Shape MakeEmptyVertex (const TopoDS_Shape &aGenV, const Sweep_NumShape &aDirV)
 Builds the vertex addressed by [aGenV,aDirV], with its geometric part, but without subcomponents. More...
 
TopoDS_Shape MakeEmptyDirectingEdge (const TopoDS_Shape &aGenV, const Sweep_NumShape &aDirE)
 Builds the edge addressed by [aGenV,aDirE], with its geometric part, but without subcomponents. More...
 
TopoDS_Shape MakeEmptyGeneratingEdge (const TopoDS_Shape &aGenE, const Sweep_NumShape &aDirV)
 Builds the edge addressed by [aGenE,aDirV], with its geometric part, but without subcomponents. More...
 
void SetParameters (const TopoDS_Shape &aNewFace, TopoDS_Shape &aNewVertex, const TopoDS_Shape &aGenF, const TopoDS_Shape &aGenV, const Sweep_NumShape &aDirV)
 Sets the parameters of the new vertex on the new face. The new face and new vertex where generated from aGenF, aGenV and aDirV . More...
 
void SetDirectingParameter (const TopoDS_Shape &aNewEdge, TopoDS_Shape &aNewVertex, const TopoDS_Shape &aGenV, const Sweep_NumShape &aDirE, const Sweep_NumShape &aDirV)
 Sets the parameter of the new vertex on the new edge. The new edge and new vertex where generated from aGenV aDirE, and aDirV. More...
 
void SetGeneratingParameter (const TopoDS_Shape &aNewEdge, TopoDS_Shape &aNewVertex, const TopoDS_Shape &aGenE, const TopoDS_Shape &aGenV, const Sweep_NumShape &aDirV)
 Sets the parameter of the new vertex on the new edge. The new edge and new vertex where generated from aGenE, aGenV and aDirV . More...
 
TopoDS_Shape MakeEmptyFace (const TopoDS_Shape &aGenS, const Sweep_NumShape &aDirS)
 Builds the face addressed by [aGenS,aDirS], with its geometric part, but without subcomponents. The couple aGenS, aDirS can be a "generating face and a directing vertex" or "a generating edge and a directing edge". More...
 
void SetPCurve (const TopoDS_Shape &aNewFace, TopoDS_Shape &aNewEdge, const TopoDS_Shape &aGenF, const TopoDS_Shape &aGenE, const Sweep_NumShape &aDirV, const TopAbs_Orientation orien)
 Sets the PCurve for a new edge on a new face. The new edge and the new face were generated using aGenF, aGenE and aDirV. More...
 
void SetGeneratingPCurve (const TopoDS_Shape &aNewFace, TopoDS_Shape &aNewEdge, const TopoDS_Shape &aGenE, const Sweep_NumShape &aDirE, const Sweep_NumShape &aDirV, const TopAbs_Orientation orien)
 Sets the PCurve for a new edge on a new face. The new edge and the new face were generated using aGenE, aDirE and aDirV. More...
 
void SetDirectingPCurve (const TopoDS_Shape &aNewFace, TopoDS_Shape &aNewEdge, const TopoDS_Shape &aGenE, const TopoDS_Shape &aGenV, const Sweep_NumShape &aDirE, const TopAbs_Orientation orien)
 Sets the PCurve for a new edge on a new face. The new edge and the new face were generated using aGenE, aDirE and aGenV. More...
 
TopAbs_Orientation DirectSolid (const TopoDS_Shape &aGenS, const Sweep_NumShape &aDirS)
 Returns the Orientation of the shell in the solid generated by the face aGenS with the edge aDirS. It is REVERSED if the surface is swept in the direction of the normal. More...
 
Standard_Boolean GGDShapeIsToAdd (const TopoDS_Shape &aNewShape, const TopoDS_Shape &aNewSubShape, const TopoDS_Shape &aGenS, const TopoDS_Shape &aSubGenS, const Sweep_NumShape &aDirS) const
 Returns true if aNewSubShape (addressed by aSubGenS and aDirS) must be added in aNewShape (addressed by aGenS and aDirS). More...
 
Standard_Boolean GDDShapeIsToAdd (const TopoDS_Shape &aNewShape, const TopoDS_Shape &aNewSubShape, const TopoDS_Shape &aGenS, const Sweep_NumShape &aDirS, const Sweep_NumShape &aSubDirS) const
 Returns true if aNewSubShape (addressed by aGenS and aSubDirS) must be added in aNewShape (addressed by aGenS and aDirS). More...
 
Standard_Boolean SeparatedWires (const TopoDS_Shape &aNewShape, const TopoDS_Shape &aNewSubShape, const TopoDS_Shape &aGenS, const TopoDS_Shape &aSubGenS, const Sweep_NumShape &aDirS) const
 In some particular cases the topology of a generated face must be composed of independent closed wires, in this case this function returns true. Here it always returns false. More...
 
Standard_Boolean HasShape (const TopoDS_Shape &aGenS, const Sweep_NumShape &aDirS) const
 Returns true if aDirS and aGenS addresses a resulting Shape. In some specific cases the shape can be geometrically inexsistant, then this function returns false. More...
 
Standard_Boolean IsInvariant (const TopoDS_Shape &aGenS) const
 Returns always false because here the transformation is a translation. More...
 
gp_Vec Vec () const
 Returns the Vector of the Prism, if it is an infinite prism the Vec is unitar. More...
 
- Public Member Functions inherited from BRepSweep_Trsf
void Init ()
 ends the construction of the swept primitive calling the virtual geometric functions that can't be called in the initialize. More...
 
Standard_Boolean Process (const TopoDS_Shape &aGenS, const Sweep_NumShape &aDirV)
 function called to analyze the way of construction of the shapes generated by aGenS and aDirV. More...
 
void SetContinuity (const TopoDS_Shape &aGenS, const Sweep_NumShape &aDirS)
 Called to propagate the continuity of every vertex between two edges of the generating wire aGenS on the generated edge and faces. More...
 
- Public Member Functions inherited from BRepSweep_NumLinearRegularSweep
virtual ~BRepSweep_NumLinearRegularSweep ()
 
virtual TopoDS_Shape SplitShell (const TopoDS_Shape &aNewShape) const
 In some particular cases the topology of a generated Shell must be composed of independent closed Shells, in this case this function returns a Compound of independent Shells. More...
 
TopoDS_Shape Shape (const TopoDS_Shape &aGenS, const Sweep_NumShape &aDirS)
 Returns the resulting Shape indexed by aDirS and aGenS. More...
 
TopoDS_Shape Shape (const TopoDS_Shape &aGenS)
 Returns the resulting Shape indexed by myDirWire and aGenS. More...
 
Standard_Boolean IsUsed (const TopoDS_Shape &aGenS) const
 Returns true if the initial shape aGenS
is used in result shape. More...
 
Standard_Boolean GenIsUsed (const TopoDS_Shape &theS) const
 Returns true if the shape, generated from theS is used in result shape. More...
 
TopoDS_Shape Shape ()
 Returns the resulting Shape indexed by myDirWire and myGenShape. More...
 
TopoDS_Shape FirstShape ()
 Returns the resulting Shape indexed by the first Vertex of myDirWire and myGenShape. More...
 
TopoDS_Shape LastShape ()
 Returns the resulting Shape indexed by the last Vertex of myDirWire and myGenShape. More...
 
TopoDS_Shape FirstShape (const TopoDS_Shape &aGenS)
 Returns the resulting Shape indexed by the first Vertex of myDirWire and aGenS. More...
 
TopoDS_Shape LastShape (const TopoDS_Shape &aGenS)
 Returns the resulting Shape indexed by the last Vertex of myDirWire and aGenS. More...
 
Standard_Boolean Closed () const
 

Additional Inherited Members

- Protected Member Functions inherited from BRepSweep_Trsf
 BRepSweep_Trsf (const BRep_Builder &aBuilder, const TopoDS_Shape &aGenShape, const Sweep_NumShape &aDirWire, const TopLoc_Location &aLocation, const Standard_Boolean aCopy)
 Initialize the Trsf BrepSweep, if aCopy is true the basis elements are shared as often as possible, else everything is copied. More...
 
- Protected Member Functions inherited from BRepSweep_NumLinearRegularSweep
 BRepSweep_NumLinearRegularSweep (const BRepSweep_Builder &aBuilder, const TopoDS_Shape &aGenShape, const Sweep_NumShape &aDirWire)
 Creates a NumLinearRegularSweep. <aBuilder> gives basic topological services. More...
 
- Protected Attributes inherited from BRepSweep_Trsf
TopLoc_Location myLocation
 
Standard_Boolean myCopy
 
- Protected Attributes inherited from BRepSweep_NumLinearRegularSweep
BRepSweep_Builder myBuilder
 
TopoDS_Shape myGenShape
 
Sweep_NumShape myDirWire
 
BRepSweep_Tool myGenShapeTool
 
Sweep_NumShapeTool myDirShapeTool
 
TopTools_Array2OfShape myShapes
 
TColStd_Array2OfBoolean myBuiltShapes
 
TColStd_Array2OfBoolean myUsedShapes
 

Detailed Description

Provides an algorithm to build object by translation sweep.

Constructor & Destructor Documentation

◆ BRepSweep_Translation()

BRepSweep_Translation::BRepSweep_Translation ( const TopoDS_Shape S,
const Sweep_NumShape N,
const TopLoc_Location L,
const gp_Vec V,
const Standard_Boolean  C,
const Standard_Boolean  Canonize = Standard_True 
)

Creates a topology by translating with the vector <V>. If C is true S Sucomponents are copied. If Canonize is true then generated surfaces are attempted to be canonized in simple types.

Member Function Documentation

◆ DirectSolid()

TopAbs_Orientation BRepSweep_Translation::DirectSolid ( const TopoDS_Shape aGenS,
const Sweep_NumShape aDirS 
)
virtual

Returns the Orientation of the shell in the solid generated by the face aGenS with the edge aDirS. It is REVERSED if the surface is swept in the direction of the normal.

Implements BRepSweep_NumLinearRegularSweep.

◆ GDDShapeIsToAdd()

Standard_Boolean BRepSweep_Translation::GDDShapeIsToAdd ( const TopoDS_Shape aNewShape,
const TopoDS_Shape aNewSubShape,
const TopoDS_Shape aGenS,
const Sweep_NumShape aDirS,
const Sweep_NumShape aSubDirS 
) const
virtual

Returns true if aNewSubShape (addressed by aGenS and aSubDirS) must be added in aNewShape (addressed by aGenS and aDirS).

Implements BRepSweep_Trsf.

◆ GGDShapeIsToAdd()

Standard_Boolean BRepSweep_Translation::GGDShapeIsToAdd ( const TopoDS_Shape aNewShape,
const TopoDS_Shape aNewSubShape,
const TopoDS_Shape aGenS,
const TopoDS_Shape aSubGenS,
const Sweep_NumShape aDirS 
) const
virtual

Returns true if aNewSubShape (addressed by aSubGenS and aDirS) must be added in aNewShape (addressed by aGenS and aDirS).

Implements BRepSweep_Trsf.

◆ HasShape()

Standard_Boolean BRepSweep_Translation::HasShape ( const TopoDS_Shape aGenS,
const Sweep_NumShape aDirS 
) const
virtual

Returns true if aDirS and aGenS addresses a resulting Shape. In some specific cases the shape can be geometrically inexsistant, then this function returns false.

Implements BRepSweep_Trsf.

◆ IsInvariant()

Standard_Boolean BRepSweep_Translation::IsInvariant ( const TopoDS_Shape aGenS) const
virtual

Returns always false because here the transformation is a translation.

Implements BRepSweep_Trsf.

◆ MakeEmptyDirectingEdge()

TopoDS_Shape BRepSweep_Translation::MakeEmptyDirectingEdge ( const TopoDS_Shape aGenV,
const Sweep_NumShape aDirE 
)
virtual

Builds the edge addressed by [aGenV,aDirE], with its geometric part, but without subcomponents.

Implements BRepSweep_Trsf.

◆ MakeEmptyFace()

TopoDS_Shape BRepSweep_Translation::MakeEmptyFace ( const TopoDS_Shape aGenS,
const Sweep_NumShape aDirS 
)
virtual

Builds the face addressed by [aGenS,aDirS], with its geometric part, but without subcomponents. The couple aGenS, aDirS can be a "generating face and a directing vertex" or "a generating edge and a directing edge".

Implements BRepSweep_Trsf.

◆ MakeEmptyGeneratingEdge()

TopoDS_Shape BRepSweep_Translation::MakeEmptyGeneratingEdge ( const TopoDS_Shape aGenE,
const Sweep_NumShape aDirV 
)
virtual

Builds the edge addressed by [aGenE,aDirV], with its geometric part, but without subcomponents.

Implements BRepSweep_Trsf.

◆ MakeEmptyVertex()

TopoDS_Shape BRepSweep_Translation::MakeEmptyVertex ( const TopoDS_Shape aGenV,
const Sweep_NumShape aDirV 
)
virtual

Builds the vertex addressed by [aGenV,aDirV], with its geometric part, but without subcomponents.

Implements BRepSweep_Trsf.

◆ SeparatedWires()

Standard_Boolean BRepSweep_Translation::SeparatedWires ( const TopoDS_Shape aNewShape,
const TopoDS_Shape aNewSubShape,
const TopoDS_Shape aGenS,
const TopoDS_Shape aSubGenS,
const Sweep_NumShape aDirS 
) const
virtual

In some particular cases the topology of a generated face must be composed of independent closed wires, in this case this function returns true. Here it always returns false.

Implements BRepSweep_Trsf.

◆ SetDirectingParameter()

void BRepSweep_Translation::SetDirectingParameter ( const TopoDS_Shape aNewEdge,
TopoDS_Shape aNewVertex,
const TopoDS_Shape aGenV,
const Sweep_NumShape aDirE,
const Sweep_NumShape aDirV 
)
virtual

Sets the parameter of the new vertex on the new edge. The new edge and new vertex where generated from aGenV aDirE, and aDirV.

Implements BRepSweep_Trsf.

◆ SetDirectingPCurve()

void BRepSweep_Translation::SetDirectingPCurve ( const TopoDS_Shape aNewFace,
TopoDS_Shape aNewEdge,
const TopoDS_Shape aGenE,
const TopoDS_Shape aGenV,
const Sweep_NumShape aDirE,
const TopAbs_Orientation  orien 
)
virtual

Sets the PCurve for a new edge on a new face. The new edge and the new face were generated using aGenE, aDirE and aGenV.

Implements BRepSweep_Trsf.

◆ SetGeneratingParameter()

void BRepSweep_Translation::SetGeneratingParameter ( const TopoDS_Shape aNewEdge,
TopoDS_Shape aNewVertex,
const TopoDS_Shape aGenE,
const TopoDS_Shape aGenV,
const Sweep_NumShape aDirV 
)
virtual

Sets the parameter of the new vertex on the new edge. The new edge and new vertex where generated from aGenE, aGenV and aDirV .

Implements BRepSweep_Trsf.

◆ SetGeneratingPCurve()

void BRepSweep_Translation::SetGeneratingPCurve ( const TopoDS_Shape aNewFace,
TopoDS_Shape aNewEdge,
const TopoDS_Shape aGenE,
const Sweep_NumShape aDirE,
const Sweep_NumShape aDirV,
const TopAbs_Orientation  orien 
)
virtual

Sets the PCurve for a new edge on a new face. The new edge and the new face were generated using aGenE, aDirE and aDirV.

Implements BRepSweep_Trsf.

◆ SetParameters()

void BRepSweep_Translation::SetParameters ( const TopoDS_Shape aNewFace,
TopoDS_Shape aNewVertex,
const TopoDS_Shape aGenF,
const TopoDS_Shape aGenV,
const Sweep_NumShape aDirV 
)
virtual

Sets the parameters of the new vertex on the new face. The new face and new vertex where generated from aGenF, aGenV and aDirV .

Implements BRepSweep_Trsf.

◆ SetPCurve()

void BRepSweep_Translation::SetPCurve ( const TopoDS_Shape aNewFace,
TopoDS_Shape aNewEdge,
const TopoDS_Shape aGenF,
const TopoDS_Shape aGenE,
const Sweep_NumShape aDirV,
const TopAbs_Orientation  orien 
)
virtual

Sets the PCurve for a new edge on a new face. The new edge and the new face were generated using aGenF, aGenE and aDirV.

Implements BRepSweep_Trsf.

◆ Vec()

gp_Vec BRepSweep_Translation::Vec ( ) const

Returns the Vector of the Prism, if it is an infinite prism the Vec is unitar.


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