Cylinder3D
Canonical path: NemAll_Python_Geometry.Cylinder3D
3D cylinder
GetApex
GetApex() -> Point3D
GetApexParent
GetApexParent() -> Point3D
GetBottomCenter
GetBottomCenter() -> Point3D
GetHeight
Get Height of the Cylinder
Returns:
-
float
–Reference to Height of the Cylinder.
GetLocalPlacement
GetLocalPlacement() -> AxisPlacement3D
GetMajorRadius
Get Major Radius of the Cylinder
Returns:
-
float
–Reference to Major Radius.
GetMinMax
GetMinMax() -> MinMax3D
GetMinorRadius
Get Minor Radius of the Cylinder
Returns:
-
float
–Reference to Minor Radius.
GetSilhouetteLines
GetSilhouetteLines(viewMatrix: Matrix3D, bPerspective: bool) -> Line3DList
Get silhouette lines of cylinder
Parameters:
-
viewMatrix
(Matrix3D
) –View matrix
-
bPerspective
(bool
) –Flag if it is central projection or not (true / false)
Returns:
-
Line3DList
–silhouette lines
GetXAxis
GetXAxis() -> Vector3D
GetYAxis
GetYAxis() -> Vector3D
GetZAxis
GetZAxis() -> Vector3D
SetApex
SetApex(apex: Point3D)
SetApexParent
SetApexParent(apex: Point3D)
SetMajorRadius
Set Major Radius of the Cylinder
Parameters:
-
radius
–New major radius.
SetMinorRadius
Set Minor Radius of the Cylinder
Parameters:
-
radius
–New minor radius.
__eq__
__eq__(cylinder: Cylinder3D) -> object
Comparison of cylinders without tolerance.
Be careful, this method work without tolerance!
Parameters:
-
cylinder
(Cylinder3D
) –Compared cylinder.
Returns:
-
object
–True when cylinders are equal, otherwise false.
__init__
overloaded
Initialize
__init__(cylinder: Cylinder3D)
__init__(
refPlacement: AxisPlacement3D,
radiusMajor: float,
radiusMinor: float,
apex: Point3D,
)
Constructor.
Height of the cylinder is z-coordinate of the Apex.
Parameters:
-
refPlacement
(AxisPlacement3D
) –Local Placement of the cylinder.
-
radiusMajor
(float
) –Major radius of the cylinder.
-
radiusMinor
(float
) –Minor radius of the cylinder.
-
apex
(Point3D
) –Center of the Top Ellipse
__init__(radiusMajor: float, radiusMinor: float, apex: Point3D)
Constructor.
Height of the cylinder is z-coordinate of the Apex.
Parameters:
-
radiusMajor
(float
) –Major radius of the cylinder.
-
radiusMinor
(float
) –Minor radius of the cylinder.
-
apex
(Point3D
) –Center of the Top Ellipse