用opencascade写的齿面

Handle(Geom_BSplineSurface) aSurf = GeomAPI_PointsToBSplineSurface(array, 1, 1, 3, 0.00001).Surface();//B样条曲面

TopoDS_Face bcurve = BRepBuilderAPI_MakeFace(aSurf, 0.001).Face();
BRepGProp_Face(bcurve).Bounds(pxUmin, pxUmax, pxVmin, pxVmax);
ATopoShapePtr gear_surface_l = _NewShape(bcurve);
auto pNode = ATopoShapeConvert::ToEntityNode(gear_surface_l, 0.1);
int nodeID = 10001;
if (nodeID < 0)
    pNode->SetId(++gMaxIndex);
else
    pNode->SetId(nodeID);

g_pSceneManager->AddNode(pNode);

这里是类型没有转换对吗,还是pNode没有写对,下面是调试的时候齿面的值

img