SHAPER
9.12.0
|
Allows to create extrusion of objects along a path. More...
Public Types | |
enum | BuilderType { Unknown , OCCT_BRepBuilderAPI_MakeShape , OCCT_BOPAlgo_Builder } |
Builder type enum. More... | |
Public Member Functions | |
GeomAlgoAPI_Pipe (const GeomShapePtr theBaseShape, const GeomShapePtr thePathShape) | |
Creates extrusion for the given shape along a path. More... | |
GeomAlgoAPI_Pipe (const GeomShapePtr theBaseShape, const GeomShapePtr thePathShape, const GeomShapePtr theBiNormal) | |
Creates extrusion for the given shape along a path. More... | |
GeomAlgoAPI_Pipe (const ListOfShape &theBaseShapes, const ListOfShape &theLocations, const GeomShapePtr thePathShape) | |
Creates extrusion for the given shape along a path. More... | |
void | generated (const GeomShapePtr theShape, ListOfShape &theHistory) |
GEOMALGOAPI_EXPORT const ListOfShape & | fromShapes () const |
GEOMALGOAPI_EXPORT const ListOfShape & | toShapes () const |
GEOMALGOAPI_EXPORT void | addFromShape (const std::shared_ptr< GeomAPI_Shape > theShape) |
Adds a shape to list of from shape. More... | |
GEOMALGOAPI_EXPORT void | setFromShapes (const ListOfShape &theListOfShapes) |
Sets from shapes. More... | |
GEOMALGOAPI_EXPORT void | addToShape (const std::shared_ptr< GeomAPI_Shape > theShape) |
Adds a face to list of to shape. More... | |
GEOMALGOAPI_EXPORT void | setToShapes (const ListOfShape &theListOfShapes) |
Sets to shapes. More... | |
GEOMALGOAPI_EXPORT void | init (const ListOfMakeShape &theMakeShapeList) |
Initializes a class with new list of algorithms. More... | |
GEOMALGOAPI_EXPORT const ListOfMakeShape & | list () const |
GEOMALGOAPI_EXPORT void | appendAlgo (const GeomMakeShapePtr theMakeShape) |
Adds algo to the end of list. More... | |
virtual GEOMALGOAPI_EXPORT const GeomShapePtr | shape () const |
virtual GEOMALGOAPI_EXPORT void | modified (const GeomShapePtr theShape, ListOfShape &theHistory) |
virtual GEOMALGOAPI_EXPORT bool | isDeleted (const GeomShapePtr theShape) |
template<class T > | |
void | initialize (T *theBuilder, const BuilderType theBuilderType=OCCT_BRepBuilderAPI_MakeShape) |
Initializes internals. More... | |
virtual GEOMALGOAPI_EXPORT void | build () |
Execute the algorithm. More... | |
GEOMALGOAPI_EXPORT bool | isDone () const |
GEOMALGOAPI_EXPORT bool | isValid () const |
GEOMALGOAPI_EXPORT std::shared_ptr< GeomAPI_DataMapOfShapeShape > | mapOfSubShapes () const |
virtual GEOMALGOAPI_EXPORT bool | check () |
virtual GEOMALGOAPI_EXPORT void | prepareNamingFaces () |
Prepare the naming of faces. More... | |
GEOMALGOAPI_EXPORT std::map< std::string, GeomShapePtr > | getCreatedFaces () |
GEOMALGOAPI_EXPORT std::string | getError () |
GEOMALGOAPI_EXPORT bool | checkValid (std::string theMessage) |
Check the validity of the produced shape. More... | |
GEOMALGOAPI_EXPORT bool | isNewShapesCollected (GeomShapePtr theWholeOld, const int theShapeType) |
Optimization of access the new shapes by old shapes for the limited set of needed new shapes. More... | |
GEOMALGOAPI_EXPORT void | collectNewShapes (GeomShapePtr theWholeOld, const int theShapeType) |
Optimization of access the new shapes by old shapes for the limited set of needed new shapes. More... | |
GEOMALGOAPI_EXPORT GeomShapePtr | oldShapesForNew (GeomShapePtr theWholeOld, GeomShapePtr theNewShape, const int theShapeType) |
Optimization of access the new shapes by old shapes for the limited set of needed new shapes. More... | |
GEOMALGOAPI_EXPORT void | fixOrientation (GeomShapePtr &theShape) |
Replaces theShape with shape from myMap. More... | |
template<class T > | |
T * | implPtr () |
Returns the pointer to the impl. More... | |
template<class T > | |
const T * | implPtr () const |
Returns the pointer to the impl. More... | |
template<class T > | |
const T & | impl () const |
Returns the reference object of the impl. More... | |
template<class T > | |
void | setImpl (T *theImpl) |
Updates the impl (deletes the old one) More... | |
GEOMAPI_EXPORT bool | empty () const |
Returns true if the impl is empty. More... | |
Protected Member Functions | |
GEOMALGOAPI_EXPORT void | setBuilderType (const BuilderType theBuilderType) |
Sets builder type. More... | |
GEOMALGOAPI_EXPORT void | setDone (const bool theFlag) |
Sets status of builder. More... | |
GEOMALGOAPI_EXPORT void | setShape (const GeomShapePtr theShape) |
Sets result shape. More... | |
bool | isValidForHistory (const GeomShapePtr theShape) |
Protected Attributes | |
ListOfMakeShape | myListOfMakeShape |
List of make shape algos. More... | |
std::shared_ptr< GeomAPI_DataMapOfShapeShape > | myMap |
Data map to keep correct orientation of sub-shapes. More... | |
std::string | myError |
Error occurred during the execution of an algorithm. More... | |
std::map< std::string, GeomShapePtr > | myCreatedFaces |
Map of created faces with their name for naming. More... | |
Allows to create extrusion of objects along a path.
It produces the following results from objects:
Vertex -> Edge
Edge -> Face
Wire -> Shell
Face -> Solid
|
inherited |
Builder type enum.
GeomAlgoAPI_Pipe::GeomAlgoAPI_Pipe | ( | const GeomShapePtr | theBaseShape, |
const GeomShapePtr | thePathShape | ||
) |
Creates extrusion for the given shape along a path.
[in] | theBaseShape | base shape(vertex, edge, wire of face). |
[in] | thePathShape | path shape(edge or wire). |
GeomAlgoAPI_Pipe::GeomAlgoAPI_Pipe | ( | const GeomShapePtr | theBaseShape, |
const GeomShapePtr | thePathShape, | ||
const GeomShapePtr | theBiNormal | ||
) |
Creates extrusion for the given shape along a path.
[in] | theBaseShape | base shape(vertex, edge, wire of face). |
[in] | thePathShape | path shape(edge or wire). |
[in] | theBiNormal | edge or wire to preserve the constant angle between the normal vector to the base object and the BiNormal vector. |
GeomAlgoAPI_Pipe::GeomAlgoAPI_Pipe | ( | const ListOfShape & | theBaseShapes, |
const ListOfShape & | theLocations, | ||
const GeomShapePtr | thePathShape | ||
) |
Creates extrusion for the given shape along a path.
[in] | theBaseShapes | base shape(vertex, edge, wire of face). |
[in] | theLocations | vertexes on the path. Should be empty or same size as theBaseShapes. |
[in] | thePathShape | path shape(edge or wire). to the base object and the BiNormal vector. |
|
virtual |
[in] | theShape | base shape. |
[out] | theHistory | generated shapes. |
Reimplemented from GeomAlgoAPI_MakeShapeList.
|
inherited |
|
inherited |
|
inherited |
Adds a shape to list of from shape.
[in] | theShape | a shape to add. |
|
inherited |
Sets from shapes.
[in] | theListOfShapes | list of from shapes. |
|
inherited |
Adds a face to list of to shape.
[in] | theShape | a face to add. |
|
inherited |
Sets to shapes.
[in] | theListOfShapes | list of to shapes. |
|
inherited |
Initializes a class with new list of algorithms.
[in] | theMakeShapeList | list of algorithms. |
|
inherited |
|
inherited |
Adds algo to the end of list.
[in] | theMakeShape | algo to be added. |
|
virtualinherited |
Reimplemented from GeomAlgoAPI_MakeShape.
|
virtualinherited |
Reimplemented from GeomAlgoAPI_MakeShape.
Reimplemented in GeomAlgoAPI_MakeShapeSet.
|
virtualinherited |
Reimplemented from GeomAlgoAPI_MakeShape.
|
inlineinherited |
Initializes internals.
[in] | theBuilder | pointer to the builder. |
[in] | theBuilderType | builder type. |
|
inlinevirtualinherited |
Execute the algorithm.
Reimplemented in GeomAlgoAPI_Tube, GeomAlgoAPI_Torus, GeomAlgoAPI_Sphere, GeomAlgoAPI_Ellipsoid, GeomAlgoAPI_Cylinder, GeomAlgoAPI_ConeSegment, GeomAlgoAPI_Cone, and GeomAlgoAPI_Box.
|
inherited |
|
inherited |
|
inherited |
|
inlinevirtualinherited |
Reimplemented in GeomAlgoAPI_Tube, GeomAlgoAPI_Torus, GeomAlgoAPI_Sphere, GeomAlgoAPI_Ellipsoid, GeomAlgoAPI_Cylinder, GeomAlgoAPI_ConeSegment, GeomAlgoAPI_Cone, and GeomAlgoAPI_Box.
|
virtualinherited |
Prepare the naming of faces.
Reimplemented in GeomAlgoAPI_Box.
|
inlineinherited |
|
inlineinherited |
|
inherited |
Check the validity of the produced shape.
|
inherited |
Optimization of access the new shapes by old shapes for the limited set of needed new shapes.
theWholeOld | the whole old shape |
theShapeType | type of the sub-shapes that is used for optimization |
|
inherited |
Optimization of access the new shapes by old shapes for the limited set of needed new shapes.
theWholeOld | the whole old shape |
theShapeType | type of the sub-shapes that is used for optimization |
|
inherited |
Optimization of access the new shapes by old shapes for the limited set of needed new shapes.
theWholeOld | the whole old shape |
theNewShape | the whole new shape |
theShapeType | type of the old sub-shapes |
|
inherited |
Replaces theShape with shape from myMap.
|
protectedinherited |
Sets builder type.
[in] | theBuilderType | new builder type. |
|
protectedinherited |
Sets status of builder.
[in] | theFlag | new status. |
|
protectedinherited |
Sets result shape.
[in] | theShape | new shape. |
|
protectedinherited |
|
inlineinherited |
Returns the pointer to the impl.
|
inlineinherited |
Returns the pointer to the impl.
|
inlineinherited |
Returns the reference object of the impl.
|
inlineinherited |
Updates the impl (deletes the old one)
|
inherited |
Returns true if the impl is empty.
|
protectedinherited |
List of make shape algos.
|
protectedinherited |
Data map to keep correct orientation of sub-shapes.
|
protectedinherited |
Error occurred during the execution of an algorithm.
|
protectedinherited |
Map of created faces with their name for naming.