Next: Introduction, Previous: (dir), Up: (dir) [Contents][Index]
This is the marching-cubes Reference Manual, version 1.0, generated automatically by Declt version 3.0 "Montgomery Scott" on Mon Apr 19 17:00:55 2021 GMT+0.
• Introduction | What marching-cubes is all about | |
• Systems | The systems documentation | |
• Modules | The modules documentation | |
• Files | The files documentation | |
• Packages | The packages documentation | |
• Definitions | The symbols documentation | |
• Indexes | Concepts, functions, variables and data types |
A marching cubes algorithm implementation in Common Lisp based on Paul Bourke's (http://paulbourke.net/geometry/polygonise/)
MARCHING-CUBES density-function min-position max-position delta isolevel => triangles
Extracts a surface from density field represented with density-function
and returns triangles
which is a list of triangles. density-function
is a function that takes three arguments representing the position of a point and returns density as a scalar at the point. min-position
and max-position
are vec3
values and specify the minimun point and the maximun point of a grid to be processed. delta
is a scalar that specifies the size of a cell in a grid to be processed. isolevel
is a scalar that specifies the threshold of mesh construction.
MARCHING-CUBES-SMOOTH density-function normal-function min-position max-position delta isolevel => smooth-triangles
Same as marching-cubes
except that marching-cubes-smooth
returns a list of smooth triangles which have normal vectors at each vertex. normal-function
is a function that takes three arguments representing the position of a point and returns a normal vector at the point. Other arguments are same as marching-cubes
's.
See example/ directory.
Copyright (c) 2012 Masayuki Takagi (kamonama@gmail.com)
Licensed under the LLGPL License.
Next: Modules, Previous: Introduction, Up: Top [Contents][Index]
The main system appears first, followed by any subsystem dependency.
• The marching-cubes system |
Masayuki Takagi
LLGPL
A marching cubes algorithm implementation in Common Lisp based on Paul Bourke’s (http://paulbourke.net/geometry/polygonise/)
# Marching-Cubes
A marching cubes algorithm implementation in Common Lisp based on Paul Bourke’s (http://paulbourke.net/geometry/polygonise/)
## API
### [Function] marching-cubes
MARCHING-CUBES density-function min-position max-position delta isolevel => triangles
Extracts a surface from density field represented with ‘density-function‘ and returns ‘triangles‘ which is a list of triangles. ‘density-function‘ is a function that takes three arguments representing the position of a point and returns density as a scalar at the point. ‘min-position‘ and ‘max-position‘ are ‘vec3‘ values and specify the minimun point and the maximun point of a grid to be processed. ‘delta‘ is a scalar that specifies the size of a cell in a grid to be processed. ‘isolevel‘ is a scalar that specifies the threshold of mesh construction.
### [Function] marching-cubes-smooth
MARCHING-CUBES-SMOOTH density-function normal-function min-position max-position delta isolevel => smooth-triangles
Same as ‘marching-cubes‘ except that ‘marching-cubes-smooth‘ returns a list of smooth triangles which have normal vectors at each vertex. ‘normal-function‘ is a function that takes three arguments representing the position of a point and returns a normal vector at the point. Other arguments are same as ‘marching-cubes‘’s.
## Example
See example/ directory.
## Author
* Masayuki Takagi (kamonama@gmail.com)
## Copyright
Copyright (c) 2012 Masayuki Takagi (kamonama@gmail.com)
## License
Licensed under the LLGPL License.
1.0
marching-cubes.asd (file)
src (module)
Modules are listed depth-first from the system components tree.
• The marching-cubes/src module |
marching-cubes (system)
src/
Files are sorted by type and then listed depth-first from the systems components trees.
• Lisp files |
• The marching-cubes.asd file | ||
• The marching-cubes/src/package.lisp file | ||
• The marching-cubes/src/tables.lisp file | ||
• The marching-cubes/src/marching-cubes.lisp file |
Next: The marching-cubes/src/package․lisp file, Previous: Lisp files, Up: Lisp files [Contents][Index]
marching-cubes.asd
marching-cubes (system)
Next: The marching-cubes/src/tables․lisp file, Previous: The marching-cubes․asd file, Up: Lisp files [Contents][Index]
src (module)
src/package.lisp
Next: The marching-cubes/src/marching-cubes․lisp file, Previous: The marching-cubes/src/package․lisp file, Up: Lisp files [Contents][Index]
package.lisp (file)
src (module)
src/tables.lisp
Previous: The marching-cubes/src/tables․lisp file, Up: Lisp files [Contents][Index]
tables.lisp (file)
src (module)
src/marching-cubes.lisp
Next: Definitions, Previous: Files, Up: Top [Contents][Index]
Packages are listed by definition order.
• The marching-cubes-asd package | ||
• The marching-cubes package |
Next: The marching-cubes package, Previous: Packages, Up: Packages [Contents][Index]
marching-cubes.asd
Previous: The marching-cubes-asd package, Up: Packages [Contents][Index]
package.lisp (file)
common-lisp
Definitions are sorted by export status, category, package, and then by lexicographic order.
• Exported definitions | ||
• Internal definitions |
Next: Internal definitions, Previous: Definitions, Up: Definitions [Contents][Index]
• Exported macros | ||
• Exported functions |
Next: Exported functions, Previous: Exported definitions, Up: Exported definitions [Contents][Index]
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
Previous: Exported macros, Up: Exported definitions [Contents][Index]
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
Previous: Exported definitions, Up: Definitions [Contents][Index]
• Internal special variables | ||
• Internal macros | ||
• Internal functions | ||
• Internal structures |
Next: Internal macros, Previous: Internal definitions, Up: Internal definitions [Contents][Index]
marching-cubes.lisp (file)
tables.lisp (file)
tables.lisp (file)
Next: Internal functions, Previous: Internal special variables, Up: Internal definitions [Contents][Index]
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
Next: Internal structures, Previous: Internal macros, Up: Internal definitions [Contents][Index]
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
marching-cubes.lisp (file)
Previous: Internal functions, Up: Internal definitions [Contents][Index]
marching-cubes.lisp (file)
structure-object (structure)
grid-min (function)
(setf grid-min) (function)
grid-max (function)
(setf grid-max) (function)
grid-size-x (function)
(setf grid-size-x) (function)
grid-size-y (function)
(setf grid-size-y) (function)
grid-size-z (function)
(setf grid-size-z) (function)
grid-delta (function)
(setf grid-delta) (function)
grid-values% (function)
(setf grid-values%) (function)
marching-cubes.lisp (file)
structure-object (structure)
grid-cell-vertices% (function)
(setf grid-cell-vertices%) (function)
grid-cell-values% (function)
(setf grid-cell-values%) (function)
marching-cubes.lisp (file)
structure-object (structure)
smooth-triangle-vertex-0 (function)
(setf smooth-triangle-vertex-0) (function)
smooth-triangle-normal-0 (function)
(setf smooth-triangle-normal-0) (function)
smooth-triangle-vertex-1 (function)
(setf smooth-triangle-vertex-1) (function)
smooth-triangle-normal-1 (function)
(setf smooth-triangle-normal-1) (function)
smooth-triangle-vertex-2 (function)
(setf smooth-triangle-vertex-2) (function)
smooth-triangle-normal-2 (function)
(setf smooth-triangle-normal-2) (function)
marching-cubes.lisp (file)
structure-object (structure)
triangle-vertex-0 (function)
(setf triangle-vertex-0) (function)
triangle-vertex-1 (function)
(setf triangle-vertex-1) (function)
triangle-vertex-2 (function)
(setf triangle-vertex-2) (function)
marching-cubes.lisp (file)
structure-object (structure)
0
vec3-x (function)
(setf vec3-x) (function)
0
vec3-y (function)
(setf vec3-y) (function)
0
vec3-z (function)
(setf vec3-z) (function)
Previous: Definitions, Up: Top [Contents][Index]
• Concept index | ||
• Function index | ||
• Variable index | ||
• Data type index |
Next: Function index, Previous: Indexes, Up: Indexes [Contents][Index]
Jump to: | F L M |
---|
Jump to: | F L M |
---|
Next: Variable index, Previous: Concept index, Up: Indexes [Contents][Index]
Jump to: | (
C D F G I M N P R S T V |
---|
Jump to: | (
C D F G I M N P R S T V |
---|
Next: Data type index, Previous: Function index, Up: Indexes [Contents][Index]
Jump to: | *
+
D M N S V X Y Z |
---|
Jump to: | *
+
D M N S V X Y Z |
---|
Previous: Variable index, Up: Indexes [Contents][Index]
Jump to: | G M P S T V |
---|
Jump to: | G M P S T V |
---|