Cone3D
Canonical path: NemAll_Python_Geometry.Cone3D
3D cone
Methods:
-
GetApex
–Get Apex of the Cone in the local coordinate system
-
GetApexParent
–Get Apex of the Cone in the parent coordinate system
-
GetCenter
–Get Center of the Cone
-
GetHeight
–Get Height of the Cone
-
GetLocalPlacement
–Get Local Placement
-
GetMajorRadius
–Get Major Radius of the Cone
-
GetMinMax
–Get MinMax of the Cone
-
GetMinorRadius
–Get Minor Radius of the Cone
-
GetXAxis
–Get X-Axis of the placement of the Cone
-
GetZAxis
–Get Z - axis of the placement of the Cone
-
IsCircular
–Circularity check for the Cone
-
IsOblique
–Perpendicularity check for the Cone
-
IsValid
–Validity check for the Cone
-
SetApex
–Set Apex in the local coordinate system
-
SetApexParent
–Set Apex in the parent coordinate system
-
SetCenter
–Set center
-
SetHeight
–Set Height of the Cone
-
SetLocalPlacement
–Set Local Placement.
-
SetMajorRadius
–Set Major Radius of the Cone
-
SetMinorRadius
–Set Minor Radius of the Cone
-
__eq__
–Comparison of cones without tolerance.
-
__init__
–Overloaded function. See individual overloads.
-
__repr__
–Convert the list to a string
Attributes:
-
Apex
(None
) –Get and set the apex property
-
LocalPlacement
(None
) –Get and set the local placement property
-
MajorRadius
(None
) –Get and set the major radius property
-
MinorRadius
(None
) –Get and set the minor radius property
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