Describes functions to build cones or portions of cones. A MakeCone object provides a framework for:
More...
#include <BRepPrimAPI_MakeCone.hxx>
|
| | BRepPrimAPI_MakeCone (const double R1, const double R2, const double H) |
| | Make a cone.
|
| | BRepPrimAPI_MakeCone (const double R1, const double R2, const double H, const double angle) |
| | Make a cone.
|
| | BRepPrimAPI_MakeCone (const gp_Ax2 &Axes, const double R1, const double R2, const double H) |
| | Make a cone.
|
| | BRepPrimAPI_MakeCone (const gp_Ax2 &Axes, const double R1, const double R2, const double H, const double angle) |
| | Make a cone of height H radius R1 in the plane z = 0, R2 in the plane Z = H. R1 and R2 may be null. Take a section of <angle> Constructs a cone, or a portion of a cone, of height H, and radius R1 in the plane z = 0 and R2 in the plane z = H. The result is a sharp cone if R1 or R2 is equal to 0. The cone is constructed about the "Z Axis" of either:
|
| void * | OneAxis () override |
| | Returns the algorithm.
|
| BRepPrim_Cone & | Cone () |
| | Returns the algorithm.
|
| void | Build (const Message_ProgressRange &theRange=Message_ProgressRange()) override |
| | Stores the solid in myShape.
|
| const TopoDS_Face & | Face () |
| | Returns the lateral face of the rotational primitive.
|
| | operator TopoDS_Face () |
| const TopoDS_Shell & | Shell () |
| | Returns the constructed rotational primitive as a shell.
|
| | operator TopoDS_Shell () |
| const TopoDS_Solid & | Solid () |
| | Returns the constructed rotational primitive as a solid.
|
| | operator TopoDS_Solid () |
| virtual const TopoDS_Shape & | Shape () |
| | Returns a shape built by the shape construction algorithm. Raises exception StdFail_NotDone if the shape was not built.
|
| | operator TopoDS_Shape () |
| virtual const NCollection_List< TopoDS_Shape > & | Generated (const TopoDS_Shape &S) |
| | Returns the list of shapes generated from the shape .
|
| virtual const NCollection_List< TopoDS_Shape > & | Modified (const TopoDS_Shape &S) |
| | Returns the list of shapes modified from the shape .
|
| virtual bool | IsDeleted (const TopoDS_Shape &S) |
| | Returns true if the shape S has been deleted.
|
| Public Member Functions inherited from BRepBuilderAPI_Command |
| virtual | ~BRepBuilderAPI_Command () |
| virtual bool | IsDone () const |
| void | Check () const |
| | Raises NotDone if done is false.
|
Describes functions to build cones or portions of cones. A MakeCone object provides a framework for:
- defining the construction of a cone,
- implementing the construction algorithm, and
- consulting the result.
◆ BRepPrimAPI_MakeCone() [1/4]
| BRepPrimAPI_MakeCone::BRepPrimAPI_MakeCone |
( |
const double | R1, |
|
|
const double | R2, |
|
|
const double | H ) |
Make a cone.
- Parameters
-
| [in] | R1 | cone bottom radius, may be null (z = 0) |
| [in] | R2 | cone top radius, may be null (z = H) |
| [in] | H | cone height |
◆ BRepPrimAPI_MakeCone() [2/4]
| BRepPrimAPI_MakeCone::BRepPrimAPI_MakeCone |
( |
const double | R1, |
|
|
const double | R2, |
|
|
const double | H, |
|
|
const double | angle ) |
Make a cone.
- Parameters
-
| [in] | R1 | cone bottom radius, may be null (z = 0) |
| [in] | R2 | cone top radius, may be null (z = H) |
| [in] | H | cone height |
| [in] | angle | angle to create a part cone |
◆ BRepPrimAPI_MakeCone() [3/4]
| BRepPrimAPI_MakeCone::BRepPrimAPI_MakeCone |
( |
const gp_Ax2 & | Axes, |
|
|
const double | R1, |
|
|
const double | R2, |
|
|
const double | H ) |
Make a cone.
- Parameters
-
| [in] | axes | coordinate system for the construction of the cone |
| [in] | R1 | cone bottom radius, may be null (z = 0) |
| [in] | R2 | cone top radius, may be null (z = H) |
| [in] | H | cone height |
◆ BRepPrimAPI_MakeCone() [4/4]
| BRepPrimAPI_MakeCone::BRepPrimAPI_MakeCone |
( |
const gp_Ax2 & | Axes, |
|
|
const double | R1, |
|
|
const double | R2, |
|
|
const double | H, |
|
|
const double | angle ) |
Make a cone of height H radius R1 in the plane z = 0, R2 in the plane Z = H. R1 and R2 may be null. Take a section of <angle> Constructs a cone, or a portion of a cone, of height H, and radius R1 in the plane z = 0 and R2 in the plane z = H. The result is a sharp cone if R1 or R2 is equal to 0. The cone is constructed about the "Z Axis" of either:
- the global coordinate system, or
- the local coordinate system Axes. It is limited in these coordinate systems as follows:
- in the v parametric direction (the Z coordinate), by the two parameter values 0 and H,
- and in the u parametric direction (defined by the angle of rotation around the Z axis), in the case of a portion of a cone, by the two parameter values 0 and angle. Angle is given in radians. The resulting shape is composed of:
- a lateral conical face
- two planar faces in the planes z = 0 and z = H, or only one planar face in one of these two planes if a radius value is null (in the case of a complete cone, these faces are circles), and
- and in the case of a portion of a cone, two planar faces to close the shape. (either two parallelograms or two triangles, in the planes u = 0 and u = angle). Exceptions Standard_DomainError if:
- H is less than or equal to Precision::Confusion(), or
- the half-angle at the apex of the cone, defined by R1, R2 and H, is less than Precision::Confusion()/H, or greater than (Pi/2)-Precision::Confusion()/H.f
◆ Cone()
◆ OneAxis()
| void * BRepPrimAPI_MakeCone::OneAxis |
( |
| ) |
|
|
overridevirtual |
The documentation for this class was generated from the following file: