+ make API of InventorBuilder more flexible and add new methods

This commit is contained in:
wmayer
2015-11-26 15:27:40 +01:00
parent e0f3bb00b8
commit 898e0fb359
5 changed files with 214 additions and 115 deletions

View File

@@ -872,7 +872,13 @@ void TopoShape::exportFaceSet(double dev, double ca, std::ostream& str) const
indices[4*j] = N1; indices[4*j+1] = N2; indices[4*j+2] = N3; indices[4*j+3] = -1;
}
builder.addIndexedFaceSet(vertices, indices, (float)ca);
builder.beginSeparator();
builder.addShapeHints((float)ca);
builder.beginPoints();
builder.addPoints(vertices);
builder.endPoints();
builder.addIndexedFaceSet(indices);
builder.endSeparator();
} // end of face loop
}