mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 07:09:22 +00:00
Support for 3D part of IfcSurfaceCurve
This commit is contained in:
@@ -134,6 +134,14 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcEllipse* l, Handle(Geom_Curve)
|
|||||||
curve = new Geom_Ellipse(ax, x, y);
|
curve = new Geom_Ellipse(ax, x, y);
|
||||||
return true;
|
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) {
|
bool IfcGeom::Kernel::convert(const IfcSchema::IfcLine* l, Handle(Geom_Curve)& curve) {
|
||||||
gp_Pnt pnt;gp_Vec vec;
|
gp_Pnt pnt;gp_Vec vec;
|
||||||
convert(l->Pnt(),pnt);
|
convert(l->Pnt(),pnt);
|
||||||
|
|||||||
@@ -146,6 +146,9 @@ CURVE(IfcLine);
|
|||||||
// IfcRationalBSplineCurveWithKnots included
|
// IfcRationalBSplineCurveWithKnots included
|
||||||
CURVE(IfcBSplineCurveWithKnots);
|
CURVE(IfcBSplineCurveWithKnots);
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef SCHEMA_HAS_IfcSurfaceCurve
|
||||||
|
CURVE(IfcSurfaceCurve);
|
||||||
|
#endif
|
||||||
|
|
||||||
CLASS(IfcCartesianPoint,gp_Pnt);
|
CLASS(IfcCartesianPoint,gp_Pnt);
|
||||||
CLASS(IfcDirection,gp_Dir);
|
CLASS(IfcDirection,gp_Dir);
|
||||||
|
|||||||
Reference in New Issue
Block a user