Model.ossmooth_createsurf_auto#
- Model.ossmooth_createsurf_auto(feature_angle, options, complexity, tolerance, reserved)#
Creates surfaces from OSSmooth isosurface and autobead results.
- Parameters:
feature_angle (double) – The feature angle to use for feature edges detection.
options (int) –
Specifies options for creating the surfaces.
Bit values are used and the value is calculated as (Bit0 + 2*Bit1 + 4*Bit2 + 8*Bit3 + 16*Bit4 + 32*Bit5 + 64*Bit6). Valid Bit options are:
Bit0
Automatic calculation of approximation tolerance. Valid values are:
0 - Use given tolerance to control accuracy.
1 - Use automatic calculation of approximation tolerance from input elements.
Bit1
Automatic shell splitting. Valid values are:
0 - Do not attempt automatic shell splitting in cases where surface approximation could not be calculated for given tolerance and complexity limit.
1 - Split shell in cases where surface approximation could not be calculated for given tolerance and complexity limit.
Bit2
Stop on failure. Valid values are:
0 - Ignore failure on some patches and calculate the remainder.
1 - Stop on failure.
Bit3
Automatically split shell along sharp features. Valid values are:
0 - Ignore sharp features unless specified by input feature edges.
1 - Automatically split shell along sharp features even if not specified by input feature edges.
Bit4
Element component information to split shell and create surfaces in the same component as corresponding elements. Valid values are:
0 - Ignore element component information.
1 - Use element component information to split shell and create surfaces in the same component as corresponding elements.
Bit5
Associate nodes to created surfaces. Valid values are:
0 - Do not associate nodes to created surfaces.
1 - Associate nodes to created surfaces.
Bit6
Automatic feature detection. Valid values are:
0 - Do not use automatic feature detection.
1 - Use automatic feature detection, based on twice the value defined in the feature angle setting of the Options panel.
Show Bit value calculator
Radio Button Table Option Name Value Automatic calculation of approximation tolerance (Bit0) Automatic shell splitting (Bit1) Stop on failure (Bit2) Automatically split shell along sharp features (Bit3) Element component information to split shell and create surfaces in the same component as corresponding elements (Bit4) Associate nodes to created surfaces (Bit5) Automatic feature detection (Bit6) Calculated argument value: 0 complexity (int) – A number controlling the maximum complexity of a single surface patch. This sets the maximum number of control points for a surface.
tolerance (double) – Geometry simplification tolerance. Defines the maximum distance between original and simplified geometries.
reserved (int) – Reserve for future use. Must be set to 0
Example#
Execute OSSmooth to construct surfaces from shell elements , use 30.0 degree feature angle to create feature edges , use a tolerance of 0.1 , limit the number of control points to 1200#import hm import hm.entities as ent model = hm.Model() model.ossmooth_createsurf_auto( feature_angle=30.0, options=42, complexity=1200, tolerance=0.1, reserved=0 )