*surface_patch

Creates surfaces using selected lines.

Syntax

*surface_patch line_mark=<mark_id> ?tangency=<value>? ?stitch=<value>? ?solid_stitch=<value>? ?dest_component=<value>?

Type

HyperMesh Tcl Modify Command

Description

Creates surfaces using selected lines. The input lines are grouped into sets of connected lines. One surface is created for each set. For the remaining lines that do not form a closed loop, the command tries to create a single surface. If some of the input lines are surface edges, tangency option can be used to control the tangency of the new surface to its neighboring surfaces.

Inputs

line_mark=<mark_id>
The ID of the mark containing the input lines. Valid values are 1 and 2.
tangency=<value>
Controls tangency to the neighboring surfaces if the input lines contain surface edges:
best_fit – The tangency condition is determined automatically for each surface depending on the neighbor surface positions.
tangent – New surfaces are made tangent to the neighbor surface at their boundary.
nontangent – Tangency constraint is not imposed on the creation of new surfaces. (default)
stitch=<value>
Controls whether new surfaces are stitched to their neighboring surfaces:
0 – Surfaces are not stitched.
1 – Surfaces are stitched. (default)
solid_stitch=<value>
Controls whether new surfaces can be stitched to a solid surface. This option is valid only for stitch set to 1.
0 – Surfaces are stitched to solids.
1 – Surfaces are stitched. (default)
dest_component=<value>
Specifies the destination component of the new surfaces:
original – Surfaces are created in the dominant component of their boundary lines. (default)
current – All surfaces are created in the current component.

Examples

To create surfaces from bounding lines ID 3, 4, 5, 6, 8, 9, 10, tangent to the neighbor surfaces and stitches to other surfaces, but if the neighbor surface belongs to a solid, do not stitch:

*createmark lines 1 3 4 5 6 8 9 10
*surface_patch line_mark=1 tangency=tangent stitch=1 solid_stitch=0 dest_component=current

Errors

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

Version History

2022