ds:get-gamma
List of: Scheme Extensions
Subjects: Deformable Surfaces
Contents: ACIS Deformable Modeling

Action: Gets the owner's deformable model's resistance to bending rate of change parameter for the deformable model.

Filename: adm/ds_scm/dsscm.cxx

APIs: api_dm_get_attrib_dm2acis

Syntax: (ds:get-gamma owner [target=1])

Arg Types: owner entity

target integer

Returns: real

Description: Returns the owner's deformable model's resistance to bending rate of change parameter value for the target deformable model. The gamma term is to be used in conjunction with curvature constraints and C2 seams used to connect parent and child patches together with C2 continuity. The curvature constraint affects the curvature of the deformable model only at the point at which it is applied. The gamma weighted resistance to bending changes will blend the curvature constraint effect in with the rest of the deformable modeling constraint. When gamma is zero, it has no effect on the system.


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.


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-gamma

; Define some helpful globals

; Build a test square face with a constraint point.

; (6x6 control points, x and y side length = 36)

(define dsmodel1 (ds:test-face 20 20 36 36 0))

;; dsmodel1

; Don't render the face.

(define c1 (ds:add-pt-cstrn dsmodel1 1


"position" (par-pos .5 .5)))

;; c1

(ds:set-pt-xyz dsmodel1 c1 0


(position 18 18 20))

;; 8

; Solve for the shape with and with default-shape.

(ds:set-gamma dsmodel1 2 0.0)

;; ()

(ds:solve dsmodel1 2 1)

;; ()

; The surface deforms.

(ds:set-gamma dsmodel1 2 40)

;; ()

(ds:get-gamma dsmodel1)

;; 40

(ds:solve dsmodel1 2 1)

;; ()


PDF/ADM/05SCD.PDF
HTM/DATA/ADM/ADM/05SCD/0023.HTM