Base: start of refactoring of InventorBuilder

This commit is contained in:
wmayer
2022-11-27 16:45:16 +01:00
parent dafe5f11fb
commit f0e22410db
6 changed files with 186 additions and 214 deletions

View File

@@ -1091,7 +1091,7 @@ void TopoShape::exportFaceSet(double dev, double ca,
builder.addShapeHints((float)ca);
if (supportFaceColors) {
App::Color c = colors[index];
builder.addMaterial(c.r, c.g, c.b, c.a);
builder.addMaterial(Base::ColorRGB{c.r, c.g, c.b}, c.a);
}
builder.beginPoints();
@@ -1133,7 +1133,9 @@ void TopoShape::exportLineSet(std::ostream& str) const
vertices.push_back(Base::convertTo<Base::Vector3f>(p));
});
builder.addLineSet(vertices, 2, 0, 0, 0);
Base::DrawStyle drawStyle;
drawStyle.lineWidth = 2.0F;
builder.addLineSet(vertices, drawStyle, Base::ColorRGB{0, 0, 0});
}
}