C# Class TressFXLib.Formats.WavefrontObjFormat

Wavefront OBJ importer Important Note: The Wavefront obj File Format does not specify hairsimulation parameters, so after importing the ase data the simulation parameters must get prepared manually in order to do a correct import! TODO: Re-implement! (ATM just Quick'n'Dirty code)
Inheritance: IHairFormat
Mostrar archivo Open project: kennux/TressFXUnity

Public Methods

Method Description
Export ( BinaryWriter writer, string path, Hair hair ) : void
Import ( BinaryReader reader, string path, Hair hair, HairImportSettings importSettings ) : HairMesh[]

Private Methods

Method Description
SafeParse ( string input ) : float

Safe float parsing that accepts . and ,.

Method Details

Export() public method

public Export ( BinaryWriter writer, string path, Hair hair ) : void
writer System.IO.BinaryWriter
path string
hair Hair
return void

Import() public method

public Import ( BinaryReader reader, string path, Hair hair, HairImportSettings importSettings ) : HairMesh[]
reader System.IO.BinaryReader
path string
hair Hair
importSettings HairImportSettings
return HairMesh[]