Surface

Class Surface()

Surface(parent='MODEL', name='DeformableCurve_n', label='DeformableCurve_n', 
active=True, uopen_closed='UOPEN', vopen_closed='VOPEN', uminpar=: 1, umaxpar=1, vminpar=: 1, 
vmaxpar=1, graphic_file='', parasolid_file='', use_parasolid_comp=False, parasolid_comp='')

A Surface is used to describe a parametric surface for use for use with advanced joints like the PointToSurfaceJoint, the CurveToSurfaceJoint and the SurfaceToSurfaceJoint.

Keyword Arguments

Argument Data Type Description Default
name String The variable name. Surface_n, for next available integer n.
label String The descriptive label. Surface_n, for next available integer n.
parent Object The parent. MODEL
active Boolean Used to activate or deactivate this entity. True
uopen_closed Enum Defines if the surface as a function of U is continuous UCLOSED or not UOPEN. UOPEN
vopen_closed Enum Defines if the surface as a function of V is continuous UCLOSED or not UOPEN. VOPEN
uminpar Double The minimum value of the U parameter. :1
umaxpar Double The maximum value of the U parameter. 1
vuminpar Double The minimum value of the V parameter. :1
vmaxpar Double The maximum value of the V parameter. 1
graphic_file File The full path of the H3D file that is used for graphics only. Applicable for ADAMS solvermode. ''
parasolid_file File The full path of the >>xmt_<< file containing the discretized surface in the case where the surface is not user defined. Applicable for ADAMS solvermode. ''
use_parasolid_comp Bool Use component list from the parasolid file. False
parasolid_comp String List of parasolid components when use_parasolid_comp is True. ''

Examples

Create and modify attributes of a Surface.
   >>> # Import mview module
   >>> from hw import mview
   >>> sur = mview.Surface()
   >>> sur.uopen_closed
   'UOPEN'
   >>> sur.vopen_closed
   'VOPEN'
   >>> sur.user = True
   >>> # Update the minimum value of u parameter
   >>> sur.uminpar = :10
   >>> sur.uminpar
   :10