Class Triangle
A triangle defined in 3D space.
|
|
Class Hierarchy for Triangle
|
constructor Triangle(): Creates an empty triangle.
constructor Triangle(iPoint1, iPoint2, iPoint3):
-
iPoint1 - First point of the triangle. (Vector3d)
-
iPoint2 - Second point of the triangle. (Vector3d)
-
iPoint3 - Third point of the triangle. (Vector3d)
constructor Triangle(iPoint1, iPoint2, iPoint3,
iDoubleSided):
-
iPoint1 - First point of the triangle. (Vector3d)
-
iPoint2 - Second point of the triangle. (Vector3d)
-
iPoint3 - Third point of the triangle. (Vector3d)
-
iDoubleSided - Determines if the triangle should be double
sided. (bool)
|
bool
|
isDoubleSided()
Returns True when the triangle is double sided. |
|
|
|
bool
|
isValid()
Returns True when the triangle is valid. |
|
|
|
Vector3d
|
normal()
Returns the normal of the triangle. |
|
|