Search Results for

    Show / Hide Table of Contents

    Class TriangulatedPolygonGenerator

    Triangulate a 2D polygon-with-holes by inserting it's edges into a meshed rectangle and then removing the triangles outside the polygon.

    Inheritance
    Object
    MeshGenerator
    TriangulatedPolygonGenerator
    Inherited Members
    MeshGenerator.vertices
    MeshGenerator.uv
    MeshGenerator.normals
    MeshGenerator.triangles
    MeshGenerator.groups
    MeshGenerator.WantUVs
    MeshGenerator.WantNormals
    MeshGenerator.WantGroups
    MeshGenerator.Clockwise
    MeshGenerator.MakeMesh(SimpleMesh)
    MeshGenerator.MakeSimpleMesh()
    MeshGenerator.MakeMesh(DMesh3)
    MeshGenerator.MakeDMesh()
    MeshGenerator.MakeMesh(NTMesh3)
    MeshGenerator.MakeNTMesh()
    MeshGenerator.duplicate_vertex_span(Int32, Int32)
    MeshGenerator.append_disc(Int32, Int32, Int32, Boolean, Boolean, Int32, Int32)
    MeshGenerator.append_rectangle(Int32, Int32, Int32, Int32, Boolean, Int32, Int32)
    MeshGenerator.append_2d_disc_segment(Int32, Int32, Int32, Int32, Boolean, Int32, Int32, Int32, Double)
    MeshGenerator.estimate_normal(Int32, Int32, Int32)
    MeshGenerator.bilerp(Vector3d, Vector3d, Vector3d, Vector3d, Double, Double)
    MeshGenerator.bilerp(Vector2d, Vector2d, Vector2d, Vector2d, Double, Double)
    MeshGenerator.bilerp(Vector2f, Vector2f, Vector2f, Vector2f, Single, Single)
    MeshGenerator.bilerp(Vector3i, Vector3i, Vector3i, Vector3i, Double, Double)
    MeshGenerator.lerp(Vector3i, Vector3i, Double)
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: g3
    Assembly: cs.temp.dll.dll
    Syntax
    public class TriangulatedPolygonGenerator : MeshGenerator

    Fields

    FixedNormal

    Declaration
    public Vector3f FixedNormal
    Field Value
    Type Description
    Vector3f

    Polygon

    Declaration
    public GeneralPolygon2d Polygon
    Field Value
    Type Description
    GeneralPolygon2d

    Subdivisions

    Declaration
    public int Subdivisions
    Field Value
    Type Description
    Int32

    UVMode

    Declaration
    public TrivialRectGenerator.UVModes UVMode
    Field Value
    Type Description
    TrivialRectGenerator.UVModes

    Methods

    ComputeResult(out MeshInsertPolygon)

    Actually computes the insertion. In some cases we would like more info coming back than we get by using Generate() api. Note that resulting mesh is not compacted.

    Declaration
    public DMesh3 ComputeResult(out MeshInsertPolygon insertion)
    Parameters
    Type Name Description
    MeshInsertPolygon insertion
    Returns
    Type Description
    DMesh3

    Generate()

    Declaration
    public override MeshGenerator Generate()
    Returns
    Type Description
    MeshGenerator
    Overrides
    MeshGenerator.Generate()
    In This Article
    Back to top ViRGIS VR GIS