*change_edgedensities

Changes the densities of selected surface edges and remeshes the adjacent surfaces, according to the specified mode.

Syntax

*change_edgedensities mark_id mode density refedge

Type

HyperMesh Tcl Modify Command

Description

This command changes the densities of selected surface edges and remeshes the adjacent surfaces, according to the specified mode. This is an automesh function.

Inputs

mark_id
The ID of the mark containing surface edges.
mode
The method used to assign the density to the surface edges:
  • 1 - Set edge density to the density value.
  • 2 - Increment/decrement the edge density by the density value. A positive density will increment while a negative density will decrement.
  • 3 - Set edge density to be the same as on reference edge refedge.
density
The density value to assign to the surface edges on mark_id. Valid with mode 1 and 2.
refedge
ID of edge used when mode =3.

Examples

To set edge density to 10 on edge with ID 208:
*createmark lines 1 208
*change_edgedensities 1 1 10 0
To increment by 1 density on edge with ID 208:
*createmark lines 1 208
*change_edgedensities 1 2 1 0
To decrement by 2 densities on edges with ID 208 and 209:
*createmark lines 1 208 209
*change_edgedensities 1 2 -2 0
To set density on edges with ids 229, 222 and 219 same as on edge with ID 211, use the command:
*createmark lines 1 229 222 219
*change_edgedensities 1 3 0 211

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

9.0