Cuboid3D
Canonical path: NemAll_Python_Geometry.Cuboid3D
3D cuboid
Methods:
-
GetBottomFacePolygon–Get the boundary polygon of bottom face of the cuboid
-
GetGroundPlane–Get ground plane ( ref point + Z-vector ).
-
GetHeight–Get height.
-
GetLength–Get length.
-
GetRefPoint–Get reference point.
-
GetRelStartPoint–Get start point in relative coordinates.
-
GetStartPoint–Get start point in world coordinates.
-
GetTopFacePolygon–Get the boundary polygon of top face of the cuboid
-
GetVector–Get given vector.
-
GetWidth–Get width.
-
Set–Overloaded function. See individual overloads.
-
SetHeight–Set height.
-
SetLength–Set length.
-
SetRefPoint–Set reference point.
-
SetStartPoint–Set start point.
-
SetVector–Set the vector.
-
SetWidth–Set width.
-
__eq__–Comparison of cuboids without tolerance.
-
__init__–Overloaded function. See individual overloads.
-
__repr__–Convert the list to a string
Attributes:
-
HeightVector(None) –Get and set the height vector property
-
LengthVector(None) –Get and set the length vector property
-
RefPoint(None) –Get and set the ref point property
-
StartPoint(None) –Get and set the start point property
-
WidthVector(None) –Get and set the width vector property
GetBottomFacePolygon
GetBottomFacePolygon() -> Polygon3D
Get the boundary polygon of bottom face of the cuboid
Returns:
-
Polygon3D–Bottom face boundary polygon
GetGroundPlane
GetGroundPlane() -> Plane3D
GetRelStartPoint
GetRelStartPoint() -> Point3D
GetStartPoint
GetStartPoint() -> Point3D
GetTopFacePolygon
GetTopFacePolygon() -> Polygon3D
GetVector
GetVector(index: int) -> Vector3D
SetHeight
Set height.
Parameters:
-
height(float) –New size of Z-vector ( vector3 ).
SetLength
Set length.
Parameters:
-
length(float) –New size of X-vector ( vector1 ).
SetRefPoint
SetRefPoint(refPoint: Point3D)
SetStartPoint
SetStartPoint(startPoint: Point3D)
SetVector
SetVector(vec: Vector3D, index: int)
SetWidth
Set width.
Parameters:
-
width(float) –New size of Y-vector ( vector2 ).
__eq__
__eq__(cuboid: Cuboid3D) -> object
Comparison of cuboids without tolerance.
Be careful, this method work without tolerance!
Parameters:
-
cuboid(Cuboid3D) –Compared cuboid.
Returns:
-
object–True when cuboids are equal, otherwise false.