Documentation
¶
Index ¶
- func ReadMaterials(in io.Reader) ([]modeling.Material, error)
- func Save(objPath string, meshToSave modeling.Mesh) error
- func SaveAll(objPath string, meshesToSave map[string]modeling.Mesh) error
- func WriteMaterial(mat modeling.Material, out io.Writer) (err error)
- func WriteMaterials(ms []modeling.MeshMaterial, out io.Writer) error
- func WriteMaterialsFromMesh(m modeling.Mesh, out io.Writer) error
- func WriteMesh(m modeling.Mesh, materialFile string, out io.Writer) error
- func WriteMeshes(meshes []ObjMesh, materialFile string, out io.Writer) error
- type ObjMesh
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Save ¶
Save writes the mesh to the path specified in OBJ format, optionally writing an additional MTL file with all materials that are found within the modeling.
func SaveAll ¶ added in v0.17.0
SaveAll writes all provided meshes to the path specified in OBJ format, optionally writing an additional MTL file with all materials that are found across all meshes.
func WriteMaterials ¶
func WriteMaterials(ms []modeling.MeshMaterial, out io.Writer) error
func WriteMaterialsFromMesh ¶ added in v0.17.0
Types ¶
Click to show internal directories.
Click to hide internal directories.