Commit ce4f6fc9 authored by Bill Lorensen's avatar Bill Lorensen
Browse files

BUG: OBJImporter does not handle multiple groups using same material

The original code assumed that each material could only be used by one
actor (group). There is no mention of this restriction in the
Wavefront obj specification. The solution is to use a map of vectors
to map between material and actors.

BUG: vtkOBJImporter fails if vt are present but texture indices not present
Another bug was discovered while addressing the original issue. If
texture coordinates are present via "vt" command but texture indicies
are not defined for the faces, the actor was skipped. The solution is
to add a boolean variable that indicates whether texture indicies are
defined. If there are no texture indicies, do not add TCoords to the

 LocalWords:  PointData Oct OBJImporterBug gitlab indicies TCoords
parents 517aed2b e1fcad45
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment