Support for 3D part of IfcSurfaceCurve

This commit is contained in:
Thomas Krijnen
2020-03-17 15:13:36 +01:00
parent 0cfbde13b9
commit f24db3402f
2 changed files with 11 additions and 0 deletions
+8
View File
@@ -134,6 +134,14 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcEllipse* l, Handle(Geom_Curve)
curve = new Geom_Ellipse(ax, x, y);
return true;
}
#ifdef SCHEMA_HAS_IfcSurfaceCurve
bool IfcGeom::Kernel::convert(const IfcSchema::IfcSurfaceCurve* sc, Handle(Geom_Curve)& curve) {
// @todo take into account PCurves.
return convert_curve(sc->Curve3D(), curve);
}
#endif
bool IfcGeom::Kernel::convert(const IfcSchema::IfcLine* l, Handle(Geom_Curve)& curve) {
gp_Pnt pnt;gp_Vec vec;
convert(l->Pnt(),pnt);
+3
View File
@@ -146,6 +146,9 @@ CURVE(IfcLine);
// IfcRationalBSplineCurveWithKnots included
CURVE(IfcBSplineCurveWithKnots);
#endif
#ifdef SCHEMA_HAS_IfcSurfaceCurve
CURVE(IfcSurfaceCurve);
#endif
CLASS(IfcCartesianPoint,gp_Pnt);
CLASS(IfcDirection,gp_Dir);