offsetsurf

 

Offsets triangulated surfaces in the direction of the surface outward normal, i.e., normal surface motion. For each node a 'synthetic' unit outward normal N is computed based on the weighted average angle of the normals of the triangles shared by that node.

Format

offsetsurf / new_cmo / old_cmo

offsetsurf Parameters

Parameters

Type/Value

Description/Default

new_cmo

char*32

The name of the new surface.

old_cmo

char*32

The surface to be used in generating the offset surface.

Additional Information

To add the nodes in the new surface to the main mesh object use the copypts command. To add the new surface to the main mesh object use a surface command with new_cmo as the sheet name (e.g. surface/s2d/bndy_typedist is given in user coordinates (i.e. whatever units the old_cmo mesh object was defined in.) The new node coordinates, R_new, are computed using the formula:

r_new = r_old + dist * r_node

Examples

offsetsurf / cmo_out / cmo_in / d

offset a triangulated surface a distance d

 

offsetsurf / cmo_out / cmo_in / d / [xy, xz, yx, yz, zx, zy]

offset a line cmo a distance d in a direction parallel to the specified plane.

 

offsetsurf / cmo_out / cmo_in / d / x y z

offset a line cmo a distance d in the direction specified by the vector (x,y,z)