其他分享
首页 > 其他分享> > vtk面积

vtk面积

作者:互联网

vtkSmartPointer<vtkTriangle> triangle = vtkSmartPointer<vtkTriangle>::New();
triangle->GetPointIds()->SetId(0, numPts + elem[0]);
triangle->GetPointIds()->SetId(1, numPts + elem[1]);
triangle->GetPointIds()->SetId(2, numPts + elem[2]);
cells->InsertNextCell(triangle);

triangle->GetPoints()->DeepCopy(pts);
double area = triangle->ComputeArea();

标签:triangle,GetPointIds,numPts,vtk,面积,elem,vtkSmartPointer,SetId
来源: https://www.cnblogs.com/deep-wj/p/16351134.html