mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-12 14:33:28 +00:00
Eliminate warning
This commit is contained in:
@@ -225,13 +225,13 @@ void SvgSerializer::write(path_object& p, const TopoDS_Wire& wire) {
|
|||||||
GCPnts_QuasiUniformDeflection tessellater(crv, settings().deflection_tolerance());
|
GCPnts_QuasiUniformDeflection tessellater(crv, settings().deflection_tolerance());
|
||||||
// NB: Start at 2: 1-based and skip the first point, assume it coincides with p1.
|
// NB: Start at 2: 1-based and skip the first point, assume it coincides with p1.
|
||||||
for (int i = 2; i <= tessellater.NbPoints(); ++i) {
|
for (int i = 2; i <= tessellater.NbPoints(); ++i) {
|
||||||
gp_Pnt p = tessellater.Value(i);
|
gp_Pnt pi = tessellater.Value(i);
|
||||||
path.add(" L");
|
path.add(" L");
|
||||||
xcoords.push_back(path.add(p.X()));
|
xcoords.push_back(path.add(pi.X()));
|
||||||
path.add(",");
|
path.add(",");
|
||||||
ycoords.push_back(path.add(p.Y()));
|
ycoords.push_back(path.add(pi.Y()));
|
||||||
|
|
||||||
growBoundingBox(p.X(), p.Y());
|
growBoundingBox(pi.X(), pi.Y());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Either a Geom_Line or something unimplemented,
|
// Either a Geom_Line or something unimplemented,
|
||||||
|
|||||||
Reference in New Issue
Block a user