Open CASCADE Technology 6.6.0
|
Provides an algorithm to build object by
Rotation sweep.
#include <BRepSweep_Rotation.hxx>
Public Member Functions | |
BRepSweep_Rotation (const TopoDS_Shape &S, const Sweep_NumShape &N, const TopLoc_Location &L, const gp_Ax1 &A, const Quantity_PlaneAngle D, const Standard_Boolean C) | |
Creates a topology by rotating <S> around A with the angle D. | |
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. | |
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. | |
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. | |
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 . | |
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. | |
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 . | |
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 <br> a directing vertex" or "a generating edge and a <br> directing edge". | |
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. | |
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. | |
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. | |
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. | |
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). | |
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). | |
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 independant closed wires, in this case this function returns true. The only case in whitch the function may return true is a planar face in a closed revol. | |
virtual TopoDS_Shape | SplitShell (const TopoDS_Shape &aNewShape) const |
In some particular cases the topology of a generated Shell must be composed of independant closed Shells, in this case this function returns a Compound of independant Shells. | |
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. | |
Standard_Boolean | IsInvariant (const TopoDS_Shape &aGenS) const |
Returns true when the geometry of aGenS is not modified by the rotation. | |
gp_Ax1 | Axe () const |
returns the axis | |
Quantity_PlaneAngle | Angle () const |
returns the angle. |
BRepSweep_Rotation::BRepSweep_Rotation | ( | const TopoDS_Shape & | S, |
const Sweep_NumShape & | N, | ||
const TopLoc_Location & | L, | ||
const gp_Ax1 & | A, | ||
const Quantity_PlaneAngle | D, | ||
const Standard_Boolean | C | ||
) |
Quantity_PlaneAngle BRepSweep_Rotation::Angle | ( | ) | const |
gp_Ax1 BRepSweep_Rotation::Axe | ( | ) | const |
TopAbs_Orientation BRepSweep_Rotation::DirectSolid | ( | const TopoDS_Shape & | aGenS, |
const Sweep_NumShape & | aDirS | ||
) | [virtual] |
Implements BRepSweep_NumLinearRegularSweep.
Standard_Boolean BRepSweep_Rotation::GDDShapeIsToAdd | ( | const TopoDS_Shape & | aNewShape, |
const TopoDS_Shape & | aNewSubShape, | ||
const TopoDS_Shape & | aGenS, | ||
const Sweep_NumShape & | aDirS, | ||
const Sweep_NumShape & | aSubDirS | ||
) | const [virtual] |
Implements BRepSweep_Trsf.
Standard_Boolean BRepSweep_Rotation::GGDShapeIsToAdd | ( | const TopoDS_Shape & | aNewShape, |
const TopoDS_Shape & | aNewSubShape, | ||
const TopoDS_Shape & | aGenS, | ||
const TopoDS_Shape & | aSubGenS, | ||
const Sweep_NumShape & | aDirS | ||
) | const [virtual] |
Implements BRepSweep_Trsf.
Standard_Boolean BRepSweep_Rotation::HasShape | ( | const TopoDS_Shape & | aGenS, |
const Sweep_NumShape & | aDirS | ||
) | const [virtual] |
Implements BRepSweep_Trsf.
Standard_Boolean BRepSweep_Rotation::IsInvariant | ( | const TopoDS_Shape & | aGenS | ) | const [virtual] |
Implements BRepSweep_Trsf.
TopoDS_Shape BRepSweep_Rotation::MakeEmptyDirectingEdge | ( | const TopoDS_Shape & | aGenV, |
const Sweep_NumShape & | aDirE | ||
) | [virtual] |
Implements BRepSweep_Trsf.
TopoDS_Shape BRepSweep_Rotation::MakeEmptyFace | ( | const TopoDS_Shape & | aGenS, |
const Sweep_NumShape & | aDirS | ||
) | [virtual] |
Implements BRepSweep_Trsf.
TopoDS_Shape BRepSweep_Rotation::MakeEmptyGeneratingEdge | ( | const TopoDS_Shape & | aGenE, |
const Sweep_NumShape & | aDirV | ||
) | [virtual] |
Implements BRepSweep_Trsf.
TopoDS_Shape BRepSweep_Rotation::MakeEmptyVertex | ( | const TopoDS_Shape & | aGenV, |
const Sweep_NumShape & | aDirV | ||
) | [virtual] |
Implements BRepSweep_Trsf.
Standard_Boolean BRepSweep_Rotation::SeparatedWires | ( | const TopoDS_Shape & | aNewShape, |
const TopoDS_Shape & | aNewSubShape, | ||
const TopoDS_Shape & | aGenS, | ||
const TopoDS_Shape & | aSubGenS, | ||
const Sweep_NumShape & | aDirS | ||
) | const [virtual] |
Implements BRepSweep_Trsf.
void BRepSweep_Rotation::SetDirectingParameter | ( | const TopoDS_Shape & | aNewEdge, |
TopoDS_Shape & | aNewVertex, | ||
const TopoDS_Shape & | aGenV, | ||
const Sweep_NumShape & | aDirE, | ||
const Sweep_NumShape & | aDirV | ||
) | [virtual] |
Implements BRepSweep_Trsf.
void BRepSweep_Rotation::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] |
Implements BRepSweep_Trsf.
void BRepSweep_Rotation::SetGeneratingParameter | ( | const TopoDS_Shape & | aNewEdge, |
TopoDS_Shape & | aNewVertex, | ||
const TopoDS_Shape & | aGenE, | ||
const TopoDS_Shape & | aGenV, | ||
const Sweep_NumShape & | aDirV | ||
) | [virtual] |
Implements BRepSweep_Trsf.
void BRepSweep_Rotation::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] |
Implements BRepSweep_Trsf.
void BRepSweep_Rotation::SetParameters | ( | const TopoDS_Shape & | aNewFace, |
TopoDS_Shape & | aNewVertex, | ||
const TopoDS_Shape & | aGenF, | ||
const TopoDS_Shape & | aGenV, | ||
const Sweep_NumShape & | aDirV | ||
) | [virtual] |
Implements BRepSweep_Trsf.
void BRepSweep_Rotation::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] |
Implements BRepSweep_Trsf.
virtual TopoDS_Shape BRepSweep_Rotation::SplitShell | ( | const TopoDS_Shape & | aNewShape | ) | const [virtual] |
Reimplemented from BRepSweep_NumLinearRegularSweep.