VisuTwin Canvas
C++ 3D Engine — Metal Backend
Loading...
Searching...
No Matches
visutwin::canvas::ObjParserConfig Struct Reference

Configuration options for OBJ loading. More...

#include <framework/parsers/objParser.h>

Public Attributes

bool flipWinding = false
 If true, reverse face winding order.
bool flipYZ = false
 If true, swap Y and Z axes (Z-up CAD -> Y-up engine) and negate new Z.
bool generateNormals = true
 Generate smooth normals when the OBJ file has no normals.
bool generateTangents = true
 Generate tangents for normal mapping.
std::string mtlSearchPath
 Override MTL search path (empty = same directory as .obj file).
float uniformScale = 1.0f
 Uniform scale applied to all vertex positions (e.g., 0.001 for mm -> m).

Detailed Description

Configuration options for OBJ loading.

Definition at line 25 of file objParser.h.

Member Data Documentation

◆ flipWinding

bool visutwin::canvas::ObjParserConfig::flipWinding = false

If true, reverse face winding order.

Definition at line 34 of file objParser.h.

Referenced by visutwin::canvas::ObjParser::parse().

◆ flipYZ

bool visutwin::canvas::ObjParserConfig::flipYZ = false

If true, swap Y and Z axes (Z-up CAD -> Y-up engine) and negate new Z.

Definition at line 31 of file objParser.h.

Referenced by visutwin::canvas::ObjParser::parse().

◆ generateNormals

bool visutwin::canvas::ObjParserConfig::generateNormals = true

Generate smooth normals when the OBJ file has no normals.

Definition at line 37 of file objParser.h.

Referenced by visutwin::canvas::ObjParser::parse().

◆ generateTangents

bool visutwin::canvas::ObjParserConfig::generateTangents = true

Generate tangents for normal mapping.

Definition at line 40 of file objParser.h.

Referenced by visutwin::canvas::ObjParser::parse().

◆ mtlSearchPath

std::string visutwin::canvas::ObjParserConfig::mtlSearchPath

Override MTL search path (empty = same directory as .obj file).

Definition at line 43 of file objParser.h.

Referenced by visutwin::canvas::ObjParser::parse().

◆ uniformScale

float visutwin::canvas::ObjParserConfig::uniformScale = 1.0f

Uniform scale applied to all vertex positions (e.g., 0.001 for mm -> m).

Definition at line 28 of file objParser.h.

Referenced by visutwin::canvas::ObjParser::parse().


The documentation for this struct was generated from the following file: