GeometryBuilder class

Helper for Shader independent Mesh creation. Supports Faces with 3 and 4 Nodes or point clouds. Use GeometryBuilderToMeshData() to create the Mesh for a specific Shader.

Constructors

GeometryBuilder([bool pointsOnly = false])

Properties

attributes Map<String, List>
final
faces3 List<Face3>
final
faces4 List<Face4>
final
hashCode int
The hash code for this object.
no setterinherited
pointsOnly bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
vertices List<Vector3>
final

Methods

AddAttributeDouble(String canonical, double v) → void
AddAttributesDouble(String canonical, List<double> lst) → void
AddAttributesUvec4(String canonical, List<List<int>> lst) → void
AddAttributesVector2(String canonical, List<Vector2> lst) → void
AddAttributesVector2TakeOwnership(String canonical, List<Vector2> lst) → void
AddAttributesVector3(String canonical, List<Vector3> lst) → void
AddAttributesVector3TakeOwnership(String canonical, List<Vector3> lst) → void
AddAttributesVector4(String canonical, List<Vector4> lst) → void
AddAttributesVector4TakeOwnership(String canonical, List<Vector4> lst) → void
AddAttributeVector2(String canonical, Vector2 v) → void
AddAttributeVector3(String canonical, Vector3 v) → void
AddAttributeVector4(String canonical, Vector4 v) → void
AddFace3(int a, int b, int c, [bool reverse = false]) → void
AddFace4(int a, int b, int c, int d, [bool reverse = false]) → void
AddFaces3(int n, [bool reverse = false]) → void
AddFaces4(int n, [bool reverse = false]) → void
AddFaces4Strip(List<Vector3> top, List<Vector3> bot, bool closed) → void
AddFaces4Strips(List<List<Vector3>> strips, bool closed, [bool flip = false]) → void
AddVertex(Vector3 v) → void
AddVertexTakeOwnership(Vector3 v) → void
AddVertices(List<Vector3> vs) → void
AddVerticesFace3(List<Vector3> vs) → void
AddVerticesFace3TakeOwnership(List<Vector3> vs) → void
AddVerticesFace4(List<Vector3> vs) → void
AddVerticesFace4TakeOwnership(List<Vector3> vs) → void
AddVerticesTakeOwnership(List<Vector3> vs) → void
EnableAttribute(String canonical) → void
GenerateAveragedNormalsAssumingTriangleMode() → void
GenerateFaceIndices() List<int>
GenerateLineIndices() List<int>
GenerateNormalsAssumingTriangleMode() → void
GenerateRadialNormals(Vector3 center) → void
GenerateRegularGridFaces(int w, int h, bool wrapped, [bool reverse = false]) → void
GenerateRegularGridUV(int w, int h) → void
w: num horizontal points h: num vertical points
GenerateWireframeCenters() → void
HasAttribute(String canonical) bool
IsOrientableManifoldWithBoundaries() bool
MergeAndTakeOwnership(GeometryBuilder other, [Matrix4? mat, Matrix3? matNormal]) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
SanityCheck() → void
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited