|
Open CASCADE Technology
6.7.1
|
Implement the cone primitive.
More...
#include <BRepPrim_Cone.hxx>

Public Member Functions | |
| BRepPrim_Cone (const Standard_Real Angle, const gp_Ax2 &Position, const Standard_Real Height, const Standard_Real Radius=0) | |
the STEP definition <br>
Angle = semi-angle of the cone <br>
Position : the coordinate system <br>
Height : height of the cone. <br>
Radius : radius of truncated face at z = 0 <br>
| |
| BRepPrim_Cone (const Standard_Real Angle) | |
| infinite cone at origin on Z negative More... | |
| BRepPrim_Cone (const Standard_Real Angle, const gp_Pnt &Apex) | |
| infinite cone at Apex on Z negative More... | |
| BRepPrim_Cone (const Standard_Real Angle, const gp_Ax2 &Axes) | |
| infinite cone with Axes More... | |
| BRepPrim_Cone (const Standard_Real R1, const Standard_Real R2, const Standard_Real H) | |
create a Cone at origin on Z axis, of height H, <br>
radius R1 at Z = 0, R2 at Z = H, X is the origin <br>
of angles. If R1 or R2 is 0 there is an apex. <br>
Otherwise, it is a truncated cone. <br>
| |
| BRepPrim_Cone (const gp_Pnt &Center, const Standard_Real R1, const Standard_Real R2, const Standard_Real H) | |
| same as above but at a given point More... | |
| BRepPrim_Cone (const gp_Ax2 &Axes, const Standard_Real R1, const Standard_Real R2, const Standard_Real H) | |
| same as above with given axes system. More... | |
| virtual TopoDS_Face | MakeEmptyLateralFace () const |
| The surface normal should be directed towards the outside. More... | |
Public Member Functions inherited from BRepPrim_Revolution | |
| BRepPrim_Revolution (const gp_Ax2 &A, const Standard_Real VMin, const Standard_Real VMax, const Handle< Geom_Curve > &M, const Handle< Geom2d_Curve > &PM) | |
| Create a revolution body <M> is the meridian nd must be in the XZ plane of . <PM> is the meridian in the XZ plane. More... | |
| virtual TopoDS_Edge | MakeEmptyMeridianEdge (const Standard_Real Ang) const |
| Returns an edge with a 3D curve made from the meridian in the XZ plane rotated by <Ang> around the Z-axis. Ang may be 0 or myAngle. More... | |
| virtual gp_Pnt2d | MeridianValue (const Standard_Real V) const |
| Returns the meridian point at parameter <V> in the plane XZ. More... | |
| virtual void | SetMeridianPCurve (TopoDS_Edge &E, const TopoDS_Face &F) const |
| Sets the parametric urve of the edge <E> in the face <F> to be the 2d representation of the meridian. More... | |
Public Member Functions inherited from BRepPrim_OneAxis | |
| virtual void | Delete () |
| virtual | ~BRepPrim_OneAxis () |
| void | SetMeridianOffset (const Standard_Real MeridianOffset=0) |
| const gp_Ax2 & | Axes () const |
| void | Axes (const gp_Ax2 &A) |
| Standard_Real | Angle () const |
| void | Angle (const Standard_Real A) |
| Standard_Real | VMin () const |
| void | VMin (const Standard_Real V) |
| Standard_Real | VMax () const |
| void | VMax (const Standard_Real V) |
| virtual Standard_Boolean | MeridianOnAxis (const Standard_Real V) const |
| virtual Standard_Boolean | MeridianClosed () const |
| virtual Standard_Boolean | VMaxInfinite () const |
| virtual Standard_Boolean | VMinInfinite () const |
| virtual Standard_Boolean | HasTop () const |
| virtual Standard_Boolean | HasBottom () const |
| virtual Standard_Boolean | HasSides () const |
| const TopoDS_Shell & | Shell () |
| const TopoDS_Face & | LateralFace () |
| const TopoDS_Face & | TopFace () |
| const TopoDS_Face & | BottomFace () |
| const TopoDS_Face & | StartFace () |
| const TopoDS_Face & | EndFace () |
| const TopoDS_Wire & | LateralWire () |
| const TopoDS_Wire & | LateralStartWire () |
| const TopoDS_Wire & | LateralEndWire () |
| const TopoDS_Wire & | TopWire () |
| const TopoDS_Wire & | BottomWire () |
| const TopoDS_Wire & | StartWire () |
| const TopoDS_Wire & | AxisStartWire () |
| const TopoDS_Wire & | EndWire () |
| const TopoDS_Wire & | AxisEndWire () |
| const TopoDS_Edge & | AxisEdge () |
| const TopoDS_Edge & | StartEdge () |
| const TopoDS_Edge & | EndEdge () |
| const TopoDS_Edge & | StartTopEdge () |
| const TopoDS_Edge & | StartBottomEdge () |
| const TopoDS_Edge & | EndTopEdge () |
| const TopoDS_Edge & | EndBottomEdge () |
| const TopoDS_Edge & | TopEdge () |
| const TopoDS_Edge & | BottomEdge () |
| const TopoDS_Vertex & | AxisTopVertex () |
| const TopoDS_Vertex & | AxisBottomVertex () |
| const TopoDS_Vertex & | TopStartVertex () |
| const TopoDS_Vertex & | TopEndVertex () |
| const TopoDS_Vertex & | BottomStartVertex () |
| const TopoDS_Vertex & | BottomEndVertex () |
Additional Inherited Members | |
Protected Member Functions inherited from BRepPrim_Revolution | |
| BRepPrim_Revolution (const gp_Ax2 &A, const Standard_Real VMin, const Standard_Real VMax) | |
| Create a revolution body. The meridian is set later. Reserved for derivated classes. More... | |
| void | Meridian (const Handle< Geom_Curve > &M, const Handle< Geom2d_Curve > &PM) |
Protected Member Functions inherited from BRepPrim_OneAxis | |
| BRepPrim_OneAxis (const BRepPrim_Builder &B, const gp_Ax2 &A, const Standard_Real VMin, const Standard_Real VMax) | |
Protected Attributes inherited from BRepPrim_OneAxis | |
| BRepPrim_Builder | myBuilder |
Implement the cone primitive.
| BRepPrim_Cone::BRepPrim_Cone | ( | const Standard_Real | Angle, |
| const gp_Ax2 & | Position, | ||
| const Standard_Real | Height, | ||
| const Standard_Real | Radius = 0 |
||
| ) |
the STEP definition <br>
Angle = semi-angle of the cone <br>
Position : the coordinate system <br>
Height : height of the cone. <br>
Radius : radius of truncated face at z = 0 <br>
The apex is on z < 0
Errors : Height < Resolution
Angle < Resolution / Height
Angle > PI/2 - Resolution / Height
| BRepPrim_Cone::BRepPrim_Cone | ( | const Standard_Real | Angle | ) |
infinite cone at origin on Z negative
| BRepPrim_Cone::BRepPrim_Cone | ( | const Standard_Real | Angle, |
| const gp_Pnt & | Apex | ||
| ) |
infinite cone at Apex on Z negative
| BRepPrim_Cone::BRepPrim_Cone | ( | const Standard_Real | Angle, |
| const gp_Ax2 & | Axes | ||
| ) |
infinite cone with Axes
| BRepPrim_Cone::BRepPrim_Cone | ( | const Standard_Real | R1, |
| const Standard_Real | R2, | ||
| const Standard_Real | H | ||
| ) |
create a Cone at origin on Z axis, of height H, <br>
radius R1 at Z = 0, R2 at Z = H, X is the origin <br>
of angles. If R1 or R2 is 0 there is an apex. <br>
Otherwise, it is a truncated cone. <br>
Error : R1 and R2 < Resolution
R1 or R2 negative
Abs(R1-R2) < Resolution
H < Resolution
H negative
| BRepPrim_Cone::BRepPrim_Cone | ( | const gp_Pnt & | Center, |
| const Standard_Real | R1, | ||
| const Standard_Real | R2, | ||
| const Standard_Real | H | ||
| ) |
same as above but at a given point
| BRepPrim_Cone::BRepPrim_Cone | ( | const gp_Ax2 & | Axes, |
| const Standard_Real | R1, | ||
| const Standard_Real | R2, | ||
| const Standard_Real | H | ||
| ) |
same as above with given axes system.
|
virtual |
The surface normal should be directed towards the
outside.
Reimplemented from BRepPrim_Revolution.
1.8.5