Py::Int BezierCurve2dPy::getDegree(void)const{ Handle_Geom_BezierCurve curve = Handle_Geom_BezierCurve::DownCast (getGeometryPtr()->handle());returnPy::Int(curve->Degree()); } 开发者ID:jobermayr,项目名称:FreeCAD,代码行数:6,代码来源:BezierCurve2dPyImp.cpp 示例3: c ▲点赞 3▼ BSplin...
Py::Object BezierCurve2dPy::getEndPoint(void)const{ Handle_Geom_BezierCurve c = Handle_Geom_BezierCurve::DownCast (getGeometryPtr()->handle()); gp_Pnt pnt = c->EndPoint();returnPy::Vector(Base::Vector3d(pnt.X(), pnt.Y(), pnt.Z())); } 开发者ID:jobermayr,项目名称:FreeCAD,代码...
PyObject* BezierCurve2dPy::getResolution(PyObject* args) {doubletol;if(!PyArg_ParseTuple(args,"d", &tol))return0;try{ Handle_Geom_BezierCurve curve = Handle_Geom_BezierCurve::DownCast (getGeometryPtr()->handle());doubleutol; curve->Resolution(tol,utol);returnPy_BuildValue("d",utol); }...
aBSplineInterpolation->Perform();if(aBSplineInterpolation->IsDone()) {Handle_Geom2d_BSplineCurveaBSplineCurve(aBSplineInterpolation->Curve());this->getGeom2dBSplineCurvePtr()->setHandle(aBSplineCurve); Py_Return; }else{ Standard_Failure::Raise("failed to interpolate points");return0;// goes ...
(Handle(GEOM_Object) theShape,constGEOM_Parameter& theR) { SetErrorCode(GEOM_KO);#ifdefLOCAL_OPS_CREATE_NEW_OBJECT//Add a new Fillet objectHandle(GEOM_Object) aFillet = GetEngine()->AddObject(GetDocID(), GEOM_FILLET);#elseHandle(GEOM_Object) aFillet = theShape;#endifHandle(GEOM_Function...
IFCAnyHandle boundaryHnd = ExporterIFCUtils.CreateCurveFromCurveLoop(exporterIFC, boundary, runBoundaryPlane, runBoundaryProjDir);if(!IFCAnyHandleUtil.IsNullOrHasNoValue(boundaryHnd)) { HashSet<IFCAnyHandle> geomSelectSet =newHashSet<IFCAnyHandle>(); ...
Handle_Geom2d_BSplineCurve curve = Handle_Geom2d_BSplineCurve::DownCast (getGeometry2dPtr()->handle()); curve->Segment(u1,u2); Py_Return; }catch(Standard_Failure) {Handle_Standard_Failuree = Standard_Failure::Caught(); PyErr_SetString(PartExceptionOCCError, e->GetMessageString());return0...
开发者ID:jobermayr,项目名称:FreeCAD,代码行数:18,代码来源:BezierCurve2dPyImp.cpp 注:本文中的Handle_Geom_BezierCurve::SetWeight方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,...
在下文中一共展示了Handle_Geom_BezierCurve::Weight方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。 示例1: Py_BuildValue ▲ PyObject* BezierCurve2dPy::getWeight(PyObject * args) ...
The positive step curve "MG1-MG2" in the figure indicates that Microgrid 1 buys elec1t9riocf-22 ity from Microgrid 2, while the negative one indicates that Microgrid 1 sells electricity to Microgrid 2. As can be observed from Figure 11, the amount of electricity exchanged among mi- lc...