Class SolidParser
Hierarchy
- SolidParser
Index
Constructors
constructor
Creates a new SolidParser
Parameters
materialToUse: string[]
defines the array to fill with the list of materials to use (it will be filled by the parse function)
babylonMeshesArray: Mesh[]
defines the array to fill with the list of loaded meshes (it will be filled by the parse function)
loadingOptions: OBJLoadingOptions
defines the loading options to use
Returns SolidParser
Properties
Static Face Pattern1Search playground for FacePattern1
Pattern used to detect a first kind of face (f vertex vertex vertex)
Static Face Pattern2Search playground for FacePattern2
Pattern used to detect a second kind of face (f vertex/uvs vertex/uvs vertex/uvs)
Static Face Pattern3Search playground for FacePattern3
Pattern used to detect a third kind of face (f vertex/uvs/normal vertex/uvs/normal vertex/uvs/normal)
Static Face Pattern4Search playground for FacePattern4
Pattern used to detect a fourth kind of face (f vertex//normal vertex//normal vertex//normal)
Static Face Pattern5Search playground for FacePattern5
Pattern used to detect a fifth kind of face (f -vertex/-uvs/-normal -vertex/-uvs/-normal -vertex/-uvs/-normal)
Static Group DescriptorSearch playground for GroupDescriptor
Group descriptor
Static Mtl Lib Group DescriptorSearch playground for MtlLibGroupDescriptor
Material lib descriptor
Static Normal PatternSearch playground for NormalPattern
Pattern used to detect a normal
Static Object DescriptorSearch playground for ObjectDescriptor
Object descriptor
Static Smooth DescriptorSearch playground for SmoothDescriptor
Smooth descriptor
Static UVPatternSearch playground for UVPattern
Pattern used to detect a UV set
Static Use Mtl DescriptorSearch playground for UseMtlDescriptor
Use a material descriptor
Static Vertex PatternSearch playground for VertexPattern
Pattern used to detect a vertex
Methods
parseSearch playground for parse
Function used to parse an OBJ string
Parameters
meshesNames: any
defines the list of meshes to load (all if not defined)
data: string
defines the OBJ string
scene: Scene
defines the hosting scene
assetContainer: Nullable<AssetContainer>
defines the asset container to load data in
onFileToLoadFound: ((fileToLoad: string) => void)
defines a callback that will be called if a MTL file is found
Parameters
fileToLoad: string
Returns void
Returns void
Class used to load mesh data from OBJ content