Cone3D
Canonical path: NemAll_Python_Geometry.Cone3D
3D cone
GetApex
GetApex() -> Point3D
GetApexParent
GetApexParent() -> Point3D
GetHeight
Get Height of the Cone
Returns:
-
float
–Reference to Height of the Cone.
GetLocalPlacement
GetLocalPlacement() -> AxisPlacement3D
GetMajorRadius
Get Major Radius of the Cone
Returns:
-
float
–Reference to MajorRadius.
GetMinMax
GetMinMax() -> MinMax3D
GetMinorRadius
Get Minor Radius of the Cone
Returns:
-
float
–Reference to MinorRadius.
GetXAxis
GetXAxis() -> Vector3D
GetZAxis
GetZAxis() -> Vector3D
SetApex
SetApex(apex: Point3D)
SetApexParent
SetApexParent(apex: Point3D)
SetLocalPlacement
SetLocalPlacement(placement: AxisPlacement3D)
SetMajorRadius
Set Major Radius of the Cone
Parameters:
-
radius
–New major radius.
SetMinorRadius
Set Minor Radius of the Cone
Parameters:
-
radius
–New minor radius.
__eq__
__eq__(cone: Cone3D) -> object
Comparison of cones without tolerance.
Be careful, this method work without tolerance!
Parameters:
-
cone
(Cone3D
) –Compared cone.
Returns:
-
object
–True when cones are equal, otherwise false.
__init__
overloaded
Initialize
__init__(cone: Cone3D)
__init__(
refPlacement: AxisPlacement3D,
radiusMajor: float,
radiusMinor: float,
apex: Point3D,
)
Constructor.
Height of the Cone is z-coordinate of the Apex.
Parameters:
-
refPlacement
(AxisPlacement3D
) –Local Placement of the Cone.
-
radiusMajor
(float
) –Major radius of the Cone.
-
radiusMinor
(float
) –Minor radius of the Cone.
-
apex
(Point3D
) –Apex of the Cone
__init__(radiusMajor: float, radiusMinor: float, apex: Point3D)
Constructor.
Height of the Cone is z-coordinate of the Apex.
Parameters:
-
radiusMajor
(float
) –Major radius of the Cone.
-
radiusMinor
(float
) –Minor radius of the Cone.
-
apex
(Point3D
) –Apex of the Cone