Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gendl
gendl
Commits
fe65e926
Commit
fe65e926
authored
Apr 24, 2013
by
Dave Cooper
Browse files
updated cylinder matrix example
parent
ed4bc62f
Changes
1
Hide whitespace changes
Inline
Side-by-side
documentation/tutorial/examples/sequence-matrix.lisp
View file @
fe65e926
(
in-package
:gdl-user
)
(
define-object
cyl-fields
(
base-object
)
:input-slots
((
number-of-layers
3
)
(
height
20
)
(
datum
(
the
(
face-center
:bottom
)))
(
pitch
(
/
(
the
height
)
(
1-
(
the
number-of-layers
))))
(
colors
(
list
:red
:orange
:yellow
:green
:blue
:indigo
:violet
)))
:objects
((
fields
:type
'cyl-field
:display-controls
(
list
:color
(
cyclic-nth
(
the-child
index
)
(
the
colors
)))
:sequence
(
:size
(
the
number-of-layers
))
:center
(
translate
(
the
datum
)
:up
(
*
(
the-child
index
)
(
the
pitch
))))))
(
define-object
cyl-field
(
base-object
)
:input-slots
((
number-of-rows
10
)
...
...
@@ -14,7 +36,6 @@
:objects
((
cylinders
:type
'cylinder
:sequence
(
:matrix
:lateral
(
the
number-of-rows
)
:longitudinal
(
the
number-of-columns
))
:display-controls
(
list
:color
"#9999FF"
)
:radius
(
the
cylinder-radius
)
:length
(
the
cylinder-length
)
:orientation
(
alignment
:rear
(
the
(
face-normal-vector
:top
)))
...
...
@@ -36,7 +57,6 @@
:objects
((
cyls
:type
'cylinder
:sequence
(
:matrix
:lateral
(
the
number-of-rows
)
:longitudinal
(
the
number-of-columns
))
:display-controls
(
list
:color
"#9999FF"
)
:radius
(
the
cylinder-radius
)
:length
(
the
cylinder-length
)
:center
(
translate
(
the
center
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment