Search Results for

    Show / Hide Table of Contents

    Class STLReader

    Inheritance
    Object
    STLReader
    Implements
    IMeshReader
    Inherited Members
    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 STLReader : IMeshReader

    Fields

    PerTriAttribFlag

    ReadOptions.CustomFlags flag for configuring .WantPerTriAttribs

    Declaration
    public const string PerTriAttribFlag = "-want-tri-attrib"
    Field Value
    Type Description
    String

    PerTriAttribMetadataName

    name argument passed to IMeshBuilder.AppendMetaData

    Declaration
    public static string PerTriAttribMetadataName
    Field Value
    Type Description
    String

    RebuildStrategy

    Which algorithm is used to try to reconstruct mesh topology from STL triangle soup

    Declaration
    public STLReader.Strategy RebuildStrategy
    Field Value
    Type Description
    STLReader.Strategy

    StrategyFlag

    ReadOptions.CustomFlags flag for configuring .RebuildStrategy

    Declaration
    public const string StrategyFlag = "-stl-weld-strategy"
    Field Value
    Type Description
    String

    WantPerTriAttribs

    Binary STL supports per-triangle integer attribute, which is often used to store face colors. If this flag is true, we will attach these face colors to the returned mesh via IMeshBuilder.AppendMetaData

    Declaration
    public bool WantPerTriAttribs
    Field Value
    Type Description
    Boolean

    WeldTolerance

    Vertices within this distance are considered "the same" by welding strategies.

    Declaration
    public double WeldTolerance
    Field Value
    Type Description
    Double

    Methods

    BuildMesh(STLReader.STLSolid, IMeshBuilder)

    Declaration
    protected virtual void BuildMesh(STLReader.STLSolid solid, IMeshBuilder builder)
    Parameters
    Type Name Description
    STLReader.STLSolid solid
    IMeshBuilder builder

    BuildMesh_Auto(STLReader.STLSolid)

    Declaration
    protected virtual DMesh3 BuildMesh_Auto(STLReader.STLSolid solid)
    Parameters
    Type Name Description
    STLReader.STLSolid solid
    Returns
    Type Description
    DMesh3

    BuildMesh_IdenticalWeld(STLReader.STLSolid)

    Declaration
    protected virtual DMesh3 BuildMesh_IdenticalWeld(STLReader.STLSolid solid)
    Parameters
    Type Name Description
    STLReader.STLSolid solid
    Returns
    Type Description
    DMesh3

    BuildMesh_NoMerge(STLReader.STLSolid, IMeshBuilder)

    Declaration
    protected virtual void BuildMesh_NoMerge(STLReader.STLSolid solid, IMeshBuilder builder)
    Parameters
    Type Name Description
    STLReader.STLSolid solid
    IMeshBuilder builder

    BuildMesh_TolerantWeld(STLReader.STLSolid, Double)

    Declaration
    protected virtual DMesh3 BuildMesh_TolerantWeld(STLReader.STLSolid solid, double weld_tolerance)
    Parameters
    Type Name Description
    STLReader.STLSolid solid
    Double weld_tolerance
    Returns
    Type Description
    DMesh3

    check_for_cracks(DMesh3, out Int32, Double)

    Declaration
    protected bool check_for_cracks(DMesh3 mesh, out int boundary_edge_count, double crack_tol = 9.9999999747524271E-07)
    Parameters
    Type Name Description
    DMesh3 mesh
    Int32 boundary_edge_count
    Double crack_tol
    Returns
    Type Description
    Boolean

    count_boundary_edges(DMesh3)

    Declaration
    protected int count_boundary_edges(DMesh3 mesh)
    Parameters
    Type Name Description
    DMesh3 mesh
    Returns
    Type Description
    Int32

    Read(BinaryReader, ReadOptions, IMeshBuilder)

    Declaration
    public IOReadResult Read(BinaryReader reader, ReadOptions options, IMeshBuilder builder)
    Parameters
    Type Name Description
    BinaryReader reader
    ReadOptions options
    IMeshBuilder builder
    Returns
    Type Description
    IOReadResult

    Read(TextReader, ReadOptions, IMeshBuilder)

    Declaration
    public IOReadResult Read(TextReader reader, ReadOptions options, IMeshBuilder builder)
    Parameters
    Type Name Description
    TextReader reader
    ReadOptions options
    IMeshBuilder builder
    Returns
    Type Description
    IOReadResult

    Events

    warningEvent

    connect to this event to get warning messages

    Declaration
    public event ParsingMessagesHandler warningEvent
    Event Type
    Type Description
    ParsingMessagesHandler

    Implements

    IMeshReader
    In This Article
    Back to top ViRGIS VR GIS