|
Action:
|
Gets the number of mesh polygons used to render the deformable shape of a deformable model.
|
|
|
Filename:
|
adm/ds_scm/dsscm.cxx
|
|
|
APIs:
|
api_dm_get_attrib_dm2acis
|
|
|
Syntax:
|
(ds:get-draw-grid owner [target=1])
|
|
|
Arg Types:
|
owner
|
entity
|
|
target
|
integer
|
|
|
Returns:
|
integer | integer ...
|
|
|
Description:
|
Gets the number of polygons in the mesh used to render the deformable shape of a
target deformable model, where:
|
|
|
nu
|
= number of grid polygons in the v parametric direction
|
|
nv
|
= number of grid polygons in the v parametric direction
|
|
|
The
target argument specifies which deformable model to use in a patch hierarchy. Valid values for
target are:
|
|
|
1
|
= active deformable model
|
|
2
|
= root deformable model
|
|
-1
|
= active deformable model and offspring
|
|
-2
|
= root deformable model and offspring
|
|
|
Otherwise, the
target is the deformable model whose tag identifier equals
target.
|
|
|
For deformable surfaces returns (nu nv) and for deformable curves returns (nu).
|
|
|
owner ACIS face or edge on which the deformable model lives.
|
|
|
target specifies which deformable model to use in a patch hierarchy.
|
|
|
Example:
|
; ds:get-draw-grid
|
|
; Add to a square test face a parabolic crv-load
|
|
; and use it.
|
|
; Build a test square spline face.
|
|
; (6x6 control points, x and y side length = 36)
|
|
(define dsmodel1 (ds:test-face 6 6 36 36 0))
|
|
;; dsmodel1
|
|
; Don't display entity / ds test face exists.
|
|
(define erase (entity:erase dsmodel1))
|
|
;; erase
|
|
; Render the loads and constraints.
|
|
(ds:set-draw-state dsmodel1 1
|
|
|
(+ ds-draw-cstrns ds-draw-loads))
|
|
;; ()
|
|
(ds:set-draw-grid dsmodel1 1 3 3)
|
|
;; ()
|
|
(ds:get-draw-grid dsmodel1 1)
|
|
;; (3 3)
|