DeformableSurface

Class DeformableSurface()

DeformableSurface(parent='MODEL', name='DeformableCurve_n', label='DeformableCurve_n', 
active=True, itype='MARKER', markers=None, bodies=None, points=None, end_type='NATURAL', uspan=1, vspan=1)

Three dimensional deformable surface.

Keyword Arguments

Argument Data Type Description Default
name String The variable name. DeformableSurface_n, for next available integer n.
label String The descriptive label. DeformableSurface_n, for next available integer n.
parent Object The parent. MODEL
active Boolean Used to activate or deactivate this entity. True
itype Enum The type of deformable surface. One of BODYPT or MARKER. MARKER
markers Marker The ordered list of markers that form the surface in 3D space when itype is MARKER. None
bodies Body The ordered list of bodies that form the surface in 3D space when itype is BODYPT. None
points Point The ordered list of points that form the surface in 3D space when itype is BODYPT. None
end_type Enum The type of end condition. One of NATURAL, PARABOLIC, PERIODIC, CANTILEVER. NATURAL
uspan Double The span for the u direction of the surface. 1
vspan Double The span for the v direction of the surface. 1
numrows Int Number of rows of MARKER/BODYPT in DeformableSurface. 3
numcols Int Number of columns of MARKER/BODYPT in DeformableSurface. 3

Examples

Create and modify attributes of a DeformableSurface.
   >>> # Import mview module
   >>> from hw import mview
   >>> #Create a body and get values
   >>> d1 = mview.DeformableSurface(name='defs_1',label='defs_1')
   >>> d1.end_type
   'NATURAL'
   >>> d1.itype
   'MARKER'
   >>> # Check all the markers assigned are global frame
   >>> d1.markers[0].name
   >>> 'Global_Frame'
   >>> # Create a marker
   >>> mrkr2 = mview.Marker(name= 'Marker_2', body=mview.Body(), origin=mview.Point(x=1, y=1, z=2))
   >>> mrkr2.name
   'Marker_2'
   >>> Change first two markers to marker 2
   >>> d1.markers = [mrkr2, mrkr2]
   >>> d1.markers[1].name
   'Marker_2'
   >>> #Change the end type to Parabolic
   >>> d1.end_type = 'PARABOLIC'
   >>> d1.end_type
   'PARABOLIC'
   >>> #Change the type to body point
   >>> d1.itype = 'BODYPT'
   'BODYPT'