Open CASCADE Technology
7.3.0

Describes functions to build linear swept topologies, called prisms. A prism is defined by: More...
#include <BRepPrimAPI_MakePrism.hxx>
Public Member Functions  
BRepPrimAPI_MakePrism (const TopoDS_Shape &S, const gp_Vec &V, const Standard_Boolean Copy=Standard_False, const Standard_Boolean Canonize=Standard_True)  
Builds the prism of base S and vector V. If C is true, S is copied. If Canonize is true then generated surfaces are attempted to be canonized in simple types. More...  
BRepPrimAPI_MakePrism (const TopoDS_Shape &S, const gp_Dir &D, const Standard_Boolean Inf=Standard_True, const Standard_Boolean Copy=Standard_False, const Standard_Boolean Canonize=Standard_True)  
Builds a semiinfinite or an infinite prism of base S. If Inf is true the prism is infinite, if Inf is false the prism is semiinfinite (in the direction D). If C is true S is copied (for semiinfinite prisms). If Canonize is true then generated surfaces are attempted to be canonized in simple types. More...  
const BRepSweep_Prism &  Prism () const 
Returns the internal sweeping algorithm. More...  
virtual void  Build () override 
Builds the resulting shape (redefined from MakeShape). More...  
TopoDS_Shape  FirstShape () override 
Returns the TopoDS Shape of the bottom of the prism. More...  
TopoDS_Shape  LastShape () override 
Returns the TopoDS Shape of the top of the prism. In the case of a finite prism, FirstShape returns the basis of the prism, in other words, S if Copy is false; otherwise, the copy of S belonging to the prism. LastShape returns the copy of S translated by V at the time of construction. More...  
virtual const TopTools_ListOfShape &  Generated (const TopoDS_Shape &S) override 
Returns ListOfShape from TopTools. More...  
TopoDS_Shape  FirstShape (const TopoDS_Shape &theShape) 
Returns the TopoDS Shape of the bottom of the prism. generated with theShape (subShape of the generating shape). More...  
TopoDS_Shape  LastShape (const TopoDS_Shape &theShape) 
Returns the TopoDS Shape of the top of the prism. generated with theShape (subShape of the generating shape). More...  
Public Member Functions inherited from BRepBuilderAPI_MakeShape  
virtual const TopoDS_Shape &  Shape () 
Returns a shape built by the shape construction algorithm. Raises exception StdFail_NotDone if the shape was not built. More...  
operator TopoDS_Shape ()  
virtual const TopTools_ListOfShape &  Modified (const TopoDS_Shape &S) 
Returns the list of shapes modified from the shape <S>. More...  
virtual Standard_Boolean  IsDeleted (const TopoDS_Shape &S) 
Returns true if the shape S has been deleted. More...  
Public Member Functions inherited from BRepBuilderAPI_Command  
virtual  ~BRepBuilderAPI_Command () 
virtual Standard_Boolean  IsDone () const 
void  Check () const 
Raises NotDone if done is false. More...  
Additional Inherited Members  
Protected Member Functions inherited from BRepBuilderAPI_MakeShape  
BRepBuilderAPI_MakeShape ()  
Protected Member Functions inherited from BRepBuilderAPI_Command  
BRepBuilderAPI_Command ()  
Set done to False. More...  
void  Done () 
Set done to true. More...  
void  NotDone () 
Set done to false. More...  
Protected Attributes inherited from BRepBuilderAPI_MakeShape  
TopoDS_Shape  myShape 
TopTools_ListOfShape  myGenerated 
Describes functions to build linear swept topologies, called prisms. A prism is defined by:
BRepPrimAPI_MakePrism::BRepPrimAPI_MakePrism  (  const TopoDS_Shape &  S, 
const gp_Vec &  V,  
const Standard_Boolean  Copy = Standard_False , 

const Standard_Boolean  Canonize = Standard_True 

) 
Builds the prism of base S and vector V. If C is true, S is copied. If Canonize is true then generated surfaces are attempted to be canonized in simple types.
BRepPrimAPI_MakePrism::BRepPrimAPI_MakePrism  (  const TopoDS_Shape &  S, 
const gp_Dir &  D,  
const Standard_Boolean  Inf = Standard_True , 

const Standard_Boolean  Copy = Standard_False , 

const Standard_Boolean  Canonize = Standard_True 

) 
Builds a semiinfinite or an infinite prism of base S. If Inf is true the prism is infinite, if Inf is false the prism is semiinfinite (in the direction D). If C is true S is copied (for semiinfinite prisms). If Canonize is true then generated surfaces are attempted to be canonized in simple types.

overridevirtual 
Builds the resulting shape (redefined from MakeShape).
Reimplemented from BRepBuilderAPI_MakeShape.

overridevirtual 
Returns the TopoDS Shape of the bottom of the prism.
Implements BRepPrimAPI_MakeSweep.
TopoDS_Shape BRepPrimAPI_MakePrism::FirstShape  (  const TopoDS_Shape &  theShape  ) 
Returns the TopoDS Shape of the bottom of the prism. generated with theShape (subShape of the generating shape).

overridevirtual 
Returns ListOfShape from TopTools.
Reimplemented from BRepBuilderAPI_MakeShape.

overridevirtual 
Returns the TopoDS Shape of the top of the prism. In the case of a finite prism, FirstShape returns the basis of the prism, in other words, S if Copy is false; otherwise, the copy of S belonging to the prism. LastShape returns the copy of S translated by V at the time of construction.
Implements BRepPrimAPI_MakeSweep.
TopoDS_Shape BRepPrimAPI_MakePrism::LastShape  (  const TopoDS_Shape &  theShape  ) 
Returns the TopoDS Shape of the top of the prism. generated with theShape (subShape of the generating shape).
const BRepSweep_Prism& BRepPrimAPI_MakePrism::Prism  (  )  const 
Returns the internal sweeping algorithm.