def GetEdgeMask(self, angle):
"""
Returns a mask of the points of a surface mesh that have a surface
angle greater than angle
Parameters
----------
angle : float
Angle to consider an edge.
"""
featureEdges = vtk.vtkFeatureEdges()
featureEdges.SetInputData(self)
featureEdges.FeatureEdgesOn()
featureEdges.BoundaryEdgesOff()
featureEdges.NonManifoldEdgesOff()
featureEdges.ManifoldEdgesOff()
featureEdges.SetFeatureAngle(angle)
featureEdges.Update()
edges = featureEdges.GetOutput()
origID = vtkInterface.GetPointScalars(edges, 'vtkOriginalPointIds')
return np.in1d(self.GetPointScalars('vtkOriginalPointIds'),
origID,
assume_unique=True)
评论列表
文章目录