Class STLReader
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
name argument passed to IMeshBuilder.AppendMetaData
Declaration
public static string PerTriAttribMetadataName
Field Value
RebuildStrategy
Which algorithm is used to try to reconstruct mesh topology from STL triangle soup
Declaration
public STLReader.Strategy RebuildStrategy
Field Value
StrategyFlag
ReadOptions.CustomFlags flag for configuring .RebuildStrategy
Declaration
public const string StrategyFlag = "-stl-weld-strategy"
Field Value
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
WeldTolerance
Vertices within this distance are considered "the same" by welding strategies.
Declaration
public double WeldTolerance
Field Value
Methods
BuildMesh(STLReader.STLSolid, IMeshBuilder)
Declaration
protected virtual void BuildMesh(STLReader.STLSolid solid, IMeshBuilder builder)
Parameters
BuildMesh_Auto(STLReader.STLSolid)
Declaration
protected virtual DMesh3 BuildMesh_Auto(STLReader.STLSolid solid)
Parameters
Returns
BuildMesh_IdenticalWeld(STLReader.STLSolid)
Declaration
protected virtual DMesh3 BuildMesh_IdenticalWeld(STLReader.STLSolid solid)
Parameters
Returns
BuildMesh_NoMerge(STLReader.STLSolid, IMeshBuilder)
Declaration
protected virtual void BuildMesh_NoMerge(STLReader.STLSolid solid, IMeshBuilder builder)
Parameters
BuildMesh_TolerantWeld(STLReader.STLSolid, Double)
Declaration
protected virtual DMesh3 BuildMesh_TolerantWeld(STLReader.STLSolid solid, double weld_tolerance)
Parameters
Returns
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
Returns
count_boundary_edges(DMesh3)
Declaration
protected int count_boundary_edges(DMesh3 mesh)
Parameters
Type |
Name |
Description |
DMesh3 |
mesh |
|
Returns
Read(BinaryReader, ReadOptions, IMeshBuilder)
Declaration
public IOReadResult Read(BinaryReader reader, ReadOptions options, IMeshBuilder builder)
Parameters
Returns
Read(TextReader, ReadOptions, IMeshBuilder)
Declaration
public IOReadResult Read(TextReader reader, ReadOptions options, IMeshBuilder builder)
Parameters
Returns
Events
warningEvent
connect to this event to get warning messages
Declaration
public event ParsingMessagesHandler warningEvent
Event Type
Implements