|
Action:
|
Gets the number of points (columns) in the
u-direction of a spline surface grid.
|
|
|
Filename:
|
cstr/cstr_scm/sgrd_scm.cxx
|
|
|
Syntax:
|
(splgrid:u-points grid)
|
|
|
Arg Types:
|
grid
|
splgrid
|
|
|
Returns:
|
integer
|
|
|
grid is an input grid.
|
|
|
Example:
|
; splgrid:u-points
|
|
; Define a spline grid.
|
|
(define grid1 (splgrid))
|
|
;; grid1
|
|
; Define a list of points.
|
|
(define points1 (list
|
|
|
(position -50 -50 0) (position 0 -50 50)
|
|
|
(position 50 -50 0) (position -50 0 50)
|
|
|
(position 0 0 100) (position 50 0 50)
|
|
|
(position -50 50 0) (position 0 50 50)
|
|
|
(position 50 50 0)))
|
|
;; points1
|
|
; Set a list of points that define the splgrid.
|
|
(define gridlist
|
|
|
(splgrid:set-point-list grid1 points1 3 3))
|
|
;; gridlist
|
|
; Get number of points in u of a spline grid.
|
|
(splgrid:u-points grid1)
|
|
;; 3
|
|
; To view what was entered.
|
|
(splgrid:print grid1)
|
|
; Num_u 3, Num_v 3
|
|
; Tolerance: 0.000001
|
|
; Grid Array:
|
|
;
|
-50.000000
|
|
-50.000000
|
|
0.000000
|
|
;
|
0.000000
|
|
-50.000000
|
|
50.000000
|
|
;
|
50.000000
|
|
-50.000000
|
|
0.000000
|
|
;
|
-50.000000
|
|
0.000000
|
|
50.000000
|
|
;
|
0.000000
|
|
0.000000
|
|
100.000000
|
|
;
|
50.000000
|
|
0.000000
|
|
50.000000
|
|
;
|
-50.000000
|
|
50.000000
|
|
0.000000
|
|
;
|
0.000000
|
|
50.000000
|
|
50.000000
|
|
;
|
50.000000
|
|
50.000000
|
|
0.000000
|
|
; Tangent Vectors u-start:
|
|
; Vector list has not been established
|
|
; Tangent Vectors u-end:
|
|
; Vector list has not been established
|
|
; Tangent Vectors v-start:
|
|
; Vector list has not been established
|
|
; Tangent Vectors v-end:
|
|
; Vector list has not been established
|
|
;; #[splgrid 40210350]
|