*fetosurfs

Generates surfaces from shell elements.

Syntax

*fetosurfs mark_id_2d mark_id_1d options complexity tolerance reserved

Type

HyperMesh Tcl Modify Command

Description

Generates surfaces from shell elements.

Inputs

mark_id_2d
The mark ID that contains the input 2D shell elements, which are used to construct the surface.
mark_id_1d (optional)
The mark ID that contains edge/feature elements, which are used to split shell elements into separate surfaces.
options
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).
Bit0
0 - Use given tolerance to control accuracy.
1 - Use automatic calculation of approximation tolerance from input elements.
Bit1
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
0 - Ignore failure on some patches and calculate the remainder.
1 - Stop on failure
Bit3
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
0 - Ignore element component information.
1 - Use element component information to split shell and create surfaces in the same component as corresponding elements.
Bit5
0 - Do not associate nodes to created surfaces.
1 - Associate nodes to created surfaces.
Bit6
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.
complexity
A number controlling the maximum complexity of a single surface patch. This sets the maximum number of control points for a surface.
tolerance
Geometry simplification tolerance. Defines the maximum distance between original and simplified geometries.
reserved
Reserved for future use. Must be set to 0.

Example

To construct a surface from all quad4 elements, using a tolerance of 0.1, limiting the number of control points to 900, no automatic shell splitting, stop on failures, split surfaces by sharp features, split surfaces according to element components, associate nodes, and no automatic feature detection (options = 1*0 + 2*0 + 4*1 + 8*1 + 16*1 + 32*1 + 64*0 = 60):
*createmark elems 1 "by config" quad4
*fetosurfs 1 0 60 900 0.1 0

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}