code/utils/vtklib.py
def extractfeatureedges(surface, boundary_edges=True,
                        feature_edges=False, feature_angle=30):
    """Extract feature edges of a surface mesh. Defaults to extracting boundary
    edges."""
    edge = vtk.vtkFeatureEdges()
    edge.SetInputData(surface)
    edge.BoundaryEdgesOn() if boundary_edges else edge.BoundaryEdgesOff()
    edge.FeatureEdgesOn() if feature_edges else edge.FeatureEdgesOff()
    edge.SetFeatureAngle(feature_angle)
    edge.Update()
    return edge.GetOutput()
Extract feature edges of a surface mesh. Defaults to extracting boundary
    edges.
Extract feature edges of a surface mesh. Defaults to extracting boundary
edges.
Extract feature edges of a surface mesh . Defaults to extracting boundary edges .
def extractfeatureedges(surface, boundary_edges=True,
                        feature_edges=False, feature_angle=30):
    edge = vtk.vtkFeatureEdges()
    edge.SetInputData(surface)
    edge.BoundaryEdgesOn() if boundary_edges else edge.BoundaryEdgesOff()
    edge.FeatureEdgesOn() if feature_edges else edge.FeatureEdgesOff()
    edge.SetFeatureAngle(feature_angle)
    edge.Update()
    return edge.GetOutput()
def extractfeatureedges ( surface , boundary_edges = True , feature_edges = False , feature_angle = 30 ) : edge = vtk . vtkFeatureEdges ( ) edge . SetInputData ( surface ) edge . BoundaryEdgesOn ( ) if boundary_edges else edge . BoundaryEdgesOff ( ) edge . FeatureEdgesOn ( ) if feature_edges else edge . FeatureEdgesOff ( ) edge . SetFeatureAngle ( feature_angle ) edge . Update ( ) return edge . GetOutput ( )
Extract feature edges of a surface mesh.
Extract feature edges of a surface mesh .
"""Extract feature edges of a surface mesh. Defaults to extracting boundary
    edges."""
surface
boundary_edges
feature_edges
feature_angle