Part: remove uIso and vIso methods. Methods from base class GeomSurface will be used instead
This commit is contained in:
@@ -668,16 +668,6 @@
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="uIso" Const="true">
|
||||
<Documentation>
|
||||
<UserDocu>Builds the U isoparametric B-Spline curve of this B-Spline surface</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="vIso" Const="true">
|
||||
<Documentation>
|
||||
<UserDocu>Builds the V isoparametric B-Spline curve of this B-Spline surface</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="reparametrize" Const="true">
|
||||
<Documentation>
|
||||
<UserDocu>Returns a reparametrized copy of this surface</UserDocu>
|
||||
|
||||
@@ -1109,42 +1109,6 @@ PyObject* BSplineSurfacePy::exchangeUV(PyObject *args)
|
||||
Py_Return;
|
||||
}
|
||||
|
||||
PyObject* BSplineSurfacePy::uIso(PyObject * args)
|
||||
{
|
||||
double u;
|
||||
if (!PyArg_ParseTuple(args, "d", &u))
|
||||
return 0;
|
||||
|
||||
try {
|
||||
Handle(Geom_BSplineSurface) surf = Handle(Geom_BSplineSurface)::DownCast
|
||||
(getGeometryPtr()->handle());
|
||||
Handle(Geom_Curve) c = surf->UIso(u);
|
||||
return new BSplineCurvePy(new GeomBSplineCurve(Handle(Geom_BSplineCurve)::DownCast(c)));
|
||||
}
|
||||
catch (Standard_Failure& e) {
|
||||
PyErr_SetString(PartExceptionOCCError, e.GetMessageString());
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
PyObject* BSplineSurfacePy::vIso(PyObject * args)
|
||||
{
|
||||
double v;
|
||||
if (!PyArg_ParseTuple(args, "d", &v))
|
||||
return 0;
|
||||
|
||||
try {
|
||||
Handle(Geom_BSplineSurface) surf = Handle(Geom_BSplineSurface)::DownCast
|
||||
(getGeometryPtr()->handle());
|
||||
Handle(Geom_Curve) c = surf->VIso(v);
|
||||
return new BSplineCurvePy(new GeomBSplineCurve(Handle(Geom_BSplineCurve)::DownCast(c)));
|
||||
}
|
||||
catch (Standard_Failure& e) {
|
||||
PyErr_SetString(PartExceptionOCCError, e.GetMessageString());
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
PyObject* BSplineSurfacePy::reparametrize(PyObject * args)
|
||||
{
|
||||
int u,v;
|
||||
|
||||
@@ -308,15 +308,5 @@
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="uIso" Const="true">
|
||||
<Documentation>
|
||||
<UserDocu>Builds the U isoparametric Bezier curve of this Bezier surface</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="vIso" Const="true">
|
||||
<Documentation>
|
||||
<UserDocu>Builds the V isoparametric Bezier curve of this Bezier surface</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
|
||||
@@ -672,41 +672,6 @@ PyObject* BezierSurfacePy::exchangeUV(PyObject *args)
|
||||
}
|
||||
}
|
||||
|
||||
PyObject* BezierSurfacePy::uIso(PyObject * args)
|
||||
{
|
||||
double u;
|
||||
if (!PyArg_ParseTuple(args, "d", &u))
|
||||
return 0;
|
||||
|
||||
try {
|
||||
Handle(Geom_BezierSurface) surf = Handle(Geom_BezierSurface)::DownCast
|
||||
(getGeometryPtr()->handle());
|
||||
Handle(Geom_Curve) c = surf->UIso(u);
|
||||
return new BezierCurvePy(new GeomBezierCurve(Handle(Geom_BezierCurve)::DownCast(c)));
|
||||
}
|
||||
catch (Standard_Failure& e) {
|
||||
PyErr_SetString(PartExceptionOCCError, e.GetMessageString());
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
PyObject* BezierSurfacePy::vIso(PyObject * args)
|
||||
{
|
||||
double v;
|
||||
if (!PyArg_ParseTuple(args, "d", &v))
|
||||
return 0;
|
||||
|
||||
try {
|
||||
Handle(Geom_BezierSurface) surf = Handle(Geom_BezierSurface)::DownCast
|
||||
(getGeometryPtr()->handle());
|
||||
Handle(Geom_Curve) c = surf->VIso(v);
|
||||
return new BezierCurvePy(new GeomBezierCurve(Handle(Geom_BezierCurve)::DownCast(c)));
|
||||
}
|
||||
catch (Standard_Failure& e) {
|
||||
PyErr_SetString(PartExceptionOCCError, e.GetMessageString());
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
Py::Long BezierSurfacePy::getUDegree(void) const
|
||||
{
|
||||
Handle(Geom_BezierSurface) surf = Handle(Geom_BezierSurface)::DownCast
|
||||
|
||||
@@ -71,15 +71,5 @@
|
||||
</Documentation>
|
||||
<Parameter Name="Axis" Type="Object"/>
|
||||
</Attribute>
|
||||
<Methode Name="uIso" Const="true">
|
||||
<Documentation>
|
||||
<UserDocu>Builds the U isoparametric circle of this cone</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="vIso" Const="true">
|
||||
<Documentation>
|
||||
<UserDocu>Builds the V isoparametric circle of this cone</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
|
||||
@@ -151,46 +151,6 @@ int ConePy::PyInit(PyObject* args, PyObject* kwds)
|
||||
return -1;
|
||||
}
|
||||
|
||||
PyObject* ConePy::uIso(PyObject * args)
|
||||
{
|
||||
double u;
|
||||
if (!PyArg_ParseTuple(args, "d", &u))
|
||||
return 0;
|
||||
|
||||
try {
|
||||
Handle(Geom_ConicalSurface) cone = Handle(Geom_ConicalSurface)::DownCast
|
||||
(getGeomConePtr()->handle());
|
||||
Handle(Geom_Line) c = Handle(Geom_Line)::DownCast(cone->UIso(u));
|
||||
GeomLine* line = new GeomLine();
|
||||
Handle(Geom_Line) this_curv = Handle(Geom_Line)::DownCast
|
||||
(line->handle());
|
||||
this_curv->SetLin(c->Lin());
|
||||
return new LinePy(line);
|
||||
}
|
||||
catch (Standard_Failure& e) {
|
||||
PyErr_SetString(PartExceptionOCCError, e.GetMessageString());
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
PyObject* ConePy::vIso(PyObject * args)
|
||||
{
|
||||
double v;
|
||||
if (!PyArg_ParseTuple(args, "d", &v))
|
||||
return 0;
|
||||
|
||||
try {
|
||||
Handle(Geom_ConicalSurface) cone = Handle(Geom_ConicalSurface)::DownCast
|
||||
(getGeomConePtr()->handle());
|
||||
Handle(Geom_Curve) c = cone->VIso(v);
|
||||
return new CirclePy(new GeomCircle(Handle(Geom_Circle)::DownCast(c)));
|
||||
}
|
||||
catch (Standard_Failure& e) {
|
||||
PyErr_SetString(PartExceptionOCCError, e.GetMessageString());
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
Py::Object ConePy::getApex(void) const
|
||||
{
|
||||
Handle(Geom_ConicalSurface) s = Handle(Geom_ConicalSurface)::DownCast
|
||||
|
||||
@@ -49,15 +49,5 @@
|
||||
</Documentation>
|
||||
<Parameter Name="Axis" Type="Object"/>
|
||||
</Attribute>
|
||||
<Methode Name="uIso" Const="true">
|
||||
<Documentation>
|
||||
<UserDocu>Builds the U isoparametric circle of this cylinder</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="vIso" Const="true">
|
||||
<Documentation>
|
||||
<UserDocu>Builds the V isoparametric circle of this cylinder</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
|
||||
@@ -157,59 +157,6 @@ int CylinderPy::PyInit(PyObject* args, PyObject* kwds)
|
||||
return -1;
|
||||
}
|
||||
|
||||
PyObject* CylinderPy::uIso(PyObject * args)
|
||||
{
|
||||
double v;
|
||||
if (!PyArg_ParseTuple(args, "d", &v))
|
||||
return 0;
|
||||
|
||||
try {
|
||||
Handle(Geom_CylindricalSurface) cyl = Handle(Geom_CylindricalSurface)::DownCast
|
||||
(getGeomCylinderPtr()->handle());
|
||||
Handle(Geom_Curve) c = cyl->UIso(v);
|
||||
if (!Handle(Geom_Line)::DownCast(c).IsNull()) {
|
||||
GeomLine* line = new GeomLine();
|
||||
Handle(Geom_Line) this_curv = Handle(Geom_Line)::DownCast
|
||||
(line->handle());
|
||||
this_curv->SetLin(Handle(Geom_Line)::DownCast(c)->Lin());
|
||||
return new LinePy(line);
|
||||
}
|
||||
|
||||
PyErr_SetString(PyExc_NotImplementedError, "this type of conical curve is not implemented");
|
||||
return 0;
|
||||
}
|
||||
catch (Standard_Failure& e) {
|
||||
PyErr_SetString(PartExceptionOCCError, e.GetMessageString());
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
PyObject* CylinderPy::vIso(PyObject * args)
|
||||
{
|
||||
double v;
|
||||
if (!PyArg_ParseTuple(args, "d", &v))
|
||||
return 0;
|
||||
|
||||
try {
|
||||
Handle(Geom_CylindricalSurface) cyl = Handle(Geom_CylindricalSurface)::DownCast
|
||||
(getGeomCylinderPtr()->handle());
|
||||
Handle(Geom_Curve) c = cyl->VIso(v);
|
||||
if (!Handle(Geom_Circle)::DownCast(c).IsNull()) {
|
||||
return new CirclePy(new GeomCircle(Handle(Geom_Circle)::DownCast(c)));
|
||||
}
|
||||
if (!Handle(Geom_Ellipse)::DownCast(c).IsNull()) {
|
||||
return new EllipsePy(new GeomEllipse(Handle(Geom_Ellipse)::DownCast(c)));
|
||||
}
|
||||
|
||||
PyErr_SetString(PyExc_NotImplementedError, "this type of conical curve is not implemented");
|
||||
return 0;
|
||||
}
|
||||
catch (Standard_Failure& e) {
|
||||
PyErr_SetString(PartExceptionOCCError, e.GetMessageString());
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
Py::Float CylinderPy::getRadius(void) const
|
||||
{
|
||||
Handle(Geom_CylindricalSurface) cyl = Handle(Geom_CylindricalSurface)::DownCast
|
||||
|
||||
@@ -47,15 +47,5 @@ Part.Plane(A,B,C,D)
|
||||
</Documentation>
|
||||
<Parameter Name="Axis" Type="Object"/>
|
||||
</Attribute>
|
||||
<Methode Name="uIso" Const="true">
|
||||
<Documentation>
|
||||
<UserDocu>Builds the U isoparametric line of this plane</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="vIso" Const="true">
|
||||
<Documentation>
|
||||
<UserDocu>Builds the V isoparametric line of this plane</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
|
||||
@@ -255,50 +255,6 @@ void PlanePy::setAxis(Py::Object arg)
|
||||
}
|
||||
}
|
||||
|
||||
PyObject* PlanePy::uIso(PyObject * args)
|
||||
{
|
||||
double u;
|
||||
if (!PyArg_ParseTuple(args, "d", &u))
|
||||
return 0;
|
||||
|
||||
try {
|
||||
Handle(Geom_Plane) plane = Handle(Geom_Plane)::DownCast
|
||||
(getGeomPlanePtr()->handle());
|
||||
Handle(Geom_Line) c = Handle(Geom_Line)::DownCast(plane->UIso(u));
|
||||
GeomLine* line = new GeomLine();
|
||||
Handle(Geom_Line) this_curv = Handle(Geom_Line)::DownCast
|
||||
(line->handle());
|
||||
this_curv->SetLin(c->Lin());
|
||||
return new LinePy(line);
|
||||
}
|
||||
catch (Standard_Failure& e) {
|
||||
PyErr_SetString(PartExceptionOCCError, e.GetMessageString());
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
PyObject* PlanePy::vIso(PyObject * args)
|
||||
{
|
||||
double v;
|
||||
if (!PyArg_ParseTuple(args, "d", &v))
|
||||
return 0;
|
||||
|
||||
try {
|
||||
Handle(Geom_Plane) plane = Handle(Geom_Plane)::DownCast
|
||||
(getGeomPlanePtr()->handle());
|
||||
Handle(Geom_Line) c = Handle(Geom_Line)::DownCast(plane->VIso(v));
|
||||
GeomLine* line = new GeomLine();
|
||||
Handle(Geom_Line) this_curv = Handle(Geom_Line)::DownCast
|
||||
(line->handle());
|
||||
this_curv->SetLin(c->Lin());
|
||||
return new LinePy(line);
|
||||
}
|
||||
catch (Standard_Failure& e) {
|
||||
PyErr_SetString(PartExceptionOCCError, e.GetMessageString());
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
PyObject *PlanePy::getCustomAttributes(const char* /*attr*/) const
|
||||
{
|
||||
return 0;
|
||||
|
||||
@@ -45,18 +45,5 @@
|
||||
</Documentation>
|
||||
<Parameter Name="Axis" Type="Object"/>
|
||||
</Attribute>
|
||||
<Methode Name="uIso" Const="true">
|
||||
<Documentation>
|
||||
<UserDocu>
|
||||
Builds the U isoparametric circle of this sphere
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="vIso" Const="true">
|
||||
<Documentation>
|
||||
<UserDocu>Builds the V isoparametric circle of this sphere
|
||||
where V must be in the range [-Pi/2,Pi/2]</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
|
||||
@@ -181,16 +181,6 @@ void SpherePy::setAxis(Py::Object arg)
|
||||
}
|
||||
}
|
||||
|
||||
PyObject *SpherePy::uIso(PyObject *args)
|
||||
{
|
||||
return GeometrySurfacePy::uIso(args);
|
||||
}
|
||||
|
||||
PyObject *SpherePy::vIso(PyObject *args)
|
||||
{
|
||||
return GeometrySurfacePy::vIso(args);
|
||||
}
|
||||
|
||||
PyObject *SpherePy::getCustomAttributes(const char* /*attr*/) const
|
||||
{
|
||||
return 0;
|
||||
|
||||
@@ -51,15 +51,5 @@
|
||||
</Documentation>
|
||||
<Parameter Name="Volume" Type="Float"/>
|
||||
</Attribute>
|
||||
<Methode Name="uIso" Const="true">
|
||||
<Documentation>
|
||||
<UserDocu>Builds the U isoparametric circle of this toroid</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="vIso" Const="true">
|
||||
<Documentation>
|
||||
<UserDocu>Builds the V isoparametric circle of this toroid</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
|
||||
@@ -66,44 +66,6 @@ int ToroidPy::PyInit(PyObject* args, PyObject* /*kwd*/)
|
||||
return -1;
|
||||
}
|
||||
|
||||
PyObject* ToroidPy::uIso(PyObject * args)
|
||||
{
|
||||
double u;
|
||||
if (!PyArg_ParseTuple(args, "d", &u))
|
||||
return 0;
|
||||
|
||||
try {
|
||||
Handle(Geom_ToroidalSurface) torus = Handle(Geom_ToroidalSurface)::DownCast
|
||||
(getGeomToroidPtr()->handle());
|
||||
Handle(Geom_Circle) c = Handle(Geom_Circle)::DownCast(torus->UIso(u));
|
||||
return new CirclePy(new GeomCircle(c));
|
||||
}
|
||||
catch (Standard_Failure& e) {
|
||||
|
||||
PyErr_SetString(PartExceptionOCCError, e.GetMessageString());
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
PyObject* ToroidPy::vIso(PyObject * args)
|
||||
{
|
||||
double v;
|
||||
if (!PyArg_ParseTuple(args, "d", &v))
|
||||
return 0;
|
||||
|
||||
try {
|
||||
Handle(Geom_ToroidalSurface) torus = Handle(Geom_ToroidalSurface)::DownCast
|
||||
(getGeomToroidPtr()->handle());
|
||||
Handle(Geom_Circle) c = Handle(Geom_Circle)::DownCast(torus->VIso(v));
|
||||
return new CirclePy(new GeomCircle(c));
|
||||
}
|
||||
catch (Standard_Failure& e) {
|
||||
|
||||
PyErr_SetString(PartExceptionOCCError, e.GetMessageString());
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
Py::Float ToroidPy::getMajorRadius(void) const
|
||||
{
|
||||
Handle(Geom_ToroidalSurface) torus = Handle(Geom_ToroidalSurface)::DownCast
|
||||
|
||||
Reference in New Issue
Block a user