Triangulator3¶
from panda3d.core import Triangulator3
-
class
Triangulator3
¶ Bases:
Triangulator
This is an extension of Triangulator to handle polygons with three- dimensional points. It assumes all of the points lie in a single plane, and internally projects the supplied points into 2-D for passing to the underlying Triangulator object.
Inheritance diagram
-
__init__
()¶
-
__init__
(param0: Triangulator3)
-
addVertex
(point: LPoint3d) → int¶ Adds a new vertex to the vertex pool. Returns the vertex index number.
-
addVertex
(x: float, y: float, z: float) → int Adds a new vertex to the vertex pool. Returns the vertex index number.
-
clear
() → None¶ Removes all vertices and polygon specifications from the Triangulator, and prepares it to start over.
-
getNumVertices
() → int¶ Returns the number of vertices in the pool. Note that the Triangulator might append new vertices, in addition to those added by the user, if any of the polygon is self-intersecting, or if any of the holes intersect some part of the polygon edges.
-
getPlane
() → LPlaned¶ Returns the plane of the polygon. This is only available after calling
triangulate()
.
-
property
plane
→ LPlaned¶ Returns the plane of the polygon. This is only available after calling
triangulate()
.
-