Search Results for

    Show / Hide Table of Contents

    Class TubeGenerator

    Sweep a 2D Profile Polygon along a 3D Path. Supports closed and open paths, and capping open paths. However caps are triangulated using a fan around a center vertex (which you can set using CapCenter). If Polygon is non-convex, this will have foldovers. In that case, you have to triangulate and append it yourself.

    If your profile curve does not contain the polygon bbox center, set OverrideCapCenter=true and set CapCenter to a suitable center point.

    The output normals are currently set to those for a circular profile. Call MeshNormals.QuickCompute() on the output DMesh to estimate proper vertex normals

    Inheritance
    Object
    MeshGenerator
    TubeGenerator
    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 TubeGenerator : MeshGenerator

    Constructors

    TubeGenerator()

    Declaration
    public TubeGenerator()

    TubeGenerator(DCurve3, Polygon2d)

    Declaration
    public TubeGenerator(DCurve3 tubePath, Polygon2d tubeShape)
    Parameters
    Type Name Description
    DCurve3 tubePath
    Polygon2d tubeShape

    TubeGenerator(Polygon2d, Frame3f, Polygon2d, Int32)

    Declaration
    public TubeGenerator(Polygon2d tubePath, Frame3f pathPlane, Polygon2d tubeShape, int nPlaneNormal = 2)
    Parameters
    Type Name Description
    Polygon2d tubePath
    Frame3f pathPlane
    Polygon2d tubeShape
    Int32 nPlaneNormal

    TubeGenerator(PolyLine2d, Frame3f, Polygon2d, Int32)

    Declaration
    public TubeGenerator(PolyLine2d tubePath, Frame3f pathPlane, Polygon2d tubeShape, int nPlaneNormal = 2)
    Parameters
    Type Name Description
    PolyLine2d tubePath
    Frame3f pathPlane
    Polygon2d tubeShape
    Int32 nPlaneNormal

    Fields

    CapCenter

    Declaration
    public Vector2d CapCenter
    Field Value
    Type Description
    Vector2d

    Capped

    Declaration
    public bool Capped
    Field Value
    Type Description
    Boolean

    ClosedLoop

    Declaration
    public bool ClosedLoop
    Field Value
    Type Description
    Boolean

    endCapCenterIndex

    Declaration
    public int endCapCenterIndex
    Field Value
    Type Description
    Int32

    Frame

    Declaration
    public Frame3f Frame
    Field Value
    Type Description
    Frame3f

    NoSharedVertices

    Declaration
    public bool NoSharedVertices
    Field Value
    Type Description
    Boolean

    OverrideCapCenter

    Declaration
    public bool OverrideCapCenter
    Field Value
    Type Description
    Boolean

    Polygon

    Declaration
    public Polygon2d Polygon
    Field Value
    Type Description
    Polygon2d

    startCapCenterIndex

    Declaration
    public int startCapCenterIndex
    Field Value
    Type Description
    Int32

    Vertices

    Declaration
    public List<Vector3d> Vertices
    Field Value
    Type Description
    List<Vector3d>

    Methods

    Generate()

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