Skip to main content

static CollapseParams.set_default(feature_type=None, collapse_ratio=None, preserve_quality=None, target_skewness=None, keep_edge_connectivity=None)

Set the default values of the CollapseParams object. Parameters: feature_type: SurfaceFeatureType, optional Feature type to be preserved when performing collapse. collapse_ratio: float, optional Maximum ratio of shortest face edge length to longest face edge length. preserve_quality: bool, optional Option to preserve quality of neighboring triangles when performing collapse.Collapse may lead to quality deterioration beyond target skewness. Such collapse is prevented, when the option is enabled. target_skewness: float, optional Skewness limit used as target to preserve quality. Better quality elements are skipped for collapse. keep_edge_connectivity: bool, optional Option to keep edge connectivity. The default value is false. When keep edge connectivity is true, edges that were connected to collapsed triangles will be connected to different triangles. Otherwise, edges will be disconnected from faces.