Open user27182 opened 1 year ago
this reminds me that I've always wished extract_feature_edges
had a shortcut form so you could do something like .extract_feature_edges('boundary')
and not need to set all the other type to False
. Same goes here.
What about making extract_feature_edges
default to False
for everything and only keep feature_edges=True
?
That way, extract_feature_edges
, at least by default, only extracts the actual feature edges (as defined by the filter). Then we could add new methods extract_boundary_edges
, extract_manifold_edges
, and extract_non_manifold_edges
. This would complement the existing extract_all_edges
filter and I think be clearer, since each filter (by default) only extracts one type of edge.
Describe the feature you would like to be added.
This is somewhat related to #4736.
I propose adding a new
plot_feature_edges
method. Code is included below. This method could be considered a replacement for plot_boundaries.The method plots any/all types of feature edges as desired. Each edge type is computed separately and added to a
MultiBlock
for plotting and legend labelling.Links to VTK Documentation, Examples, or Class Definitions.
No response
Pseudocode or Screenshots
Sample code for this feature. The colors of the different edge types can be set with the
color_cycler
parameter.Sample output: