implement Line class
This commit is contained in:
@@ -169,11 +169,9 @@ PyObject* SurfaceOfExtrusionPy::uIso(PyObject * args)
|
||||
}
|
||||
if (c->IsKind(STANDARD_TYPE(Geom_Line))) {
|
||||
Handle_Geom_Line aLine = Handle_Geom_Line::DownCast(c);
|
||||
GeomLineSegment* line = new GeomLineSegment();
|
||||
Handle_Geom_TrimmedCurve this_curv = Handle_Geom_TrimmedCurve::DownCast
|
||||
(line->handle());
|
||||
GeomLine* line = new GeomLine();
|
||||
Handle_Geom_Line this_line = Handle_Geom_Line::DownCast
|
||||
(this_curv->BasisCurve());
|
||||
(line->handle());
|
||||
this_line->SetLin(aLine->Lin());
|
||||
return new LinePy(line);
|
||||
}
|
||||
@@ -212,12 +210,10 @@ PyObject* SurfaceOfExtrusionPy::vIso(PyObject * args)
|
||||
}
|
||||
if (c->IsKind(STANDARD_TYPE(Geom_Line))) {
|
||||
Handle_Geom_Line aLine = Handle_Geom_Line::DownCast(c);
|
||||
GeomLineSegment* line = new GeomLineSegment();
|
||||
Handle_Geom_TrimmedCurve this_curv = Handle_Geom_TrimmedCurve::DownCast
|
||||
GeomLine* line = new GeomLine();
|
||||
Handle_Geom_Line this_curv = Handle_Geom_Line::DownCast
|
||||
(line->handle());
|
||||
Handle_Geom_Line this_line = Handle_Geom_Line::DownCast
|
||||
(this_curv->BasisCurve());
|
||||
this_line->SetLin(aLine->Lin());
|
||||
this_curv->SetLin(aLine->Lin());
|
||||
return new LinePy(line);
|
||||
}
|
||||
PyErr_Format(PyExc_NotImplementedError, "Iso curve is of type '%s'",
|
||||
|
||||
Reference in New Issue
Block a user