Changeset 33305 in project
- Timestamp:
- 04/25/16 04:25:24 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
wiki/eggref/4/gl-utils
r32194 r33305 238 238 Creates a fresh copy of {{MESH}}. 239 239 240 <procedure> (mesh-append MESH . MESHES)</procedure>241 242 Creates a new mesh resulting from appending the vertices of the given meshes together. The indices are also appended and modified so they point to the same vertices. The attributes of all the meshes are assumed to be the same, otherwise bad things will probably happen. If only one argument is passed to {{mesh-append}} it is assumed that it is a list of meshes.243 244 <procedure> (mesh-transform! POSITION-NAME MESH TRANSFORM)</procedure>245 246 Destructively modifies the {{POSITION-NAME}} attribute of {{MESH}} by the [[http://wiki.call-cc.org/eggref/4/gl-math|gl-math]] matrix {{TRANSFORM}}. {{POSITION-NAME}} must be the name of a three element float attribute of {{MESH}}.247 248 <procedure> (mesh-transform-append POSITION-NAME MESH-TRANSFORM-PAIR . MESH-TRANSFORM-PAIRS)</procedure>249 250 Creates a new mesh resulting by appending all the given meshes together, then transforming the attribute named by {{POSITION-NAME}} by the given [[http://wiki.call-cc.org/eggref/4/gl-math|gl-math]] transform matrices. {{MESH-TRANSFORM-PAIR }} and {{MESH-TRANSFORM-PAIRS}} are {{(MESH . TRANFORM)}} pairs. {{POSITION-NAME}} must be the name of a three element float attribute of {{MESH}}. The attributes of all the meshes are assumed to be the same, otherwise bad things will probably happen. If only two arguments are passed to {{mesh-transform-append}} it is assumed that the second is a list of mesh/transform pairs.240 <procedure> (mesh-append MESHES)</procedure> 241 242 Creates a new mesh resulting from appending the vertices of the given meshes together. The indices are also appended and modified so they point to the same vertices. The attributes of all the meshes are assumed to be the same, otherwise bad things will probably happen. 243 244 <procedure> (mesh-transform! MESH TRANSFORM [start: START] [end: END] [position-name: POSITION-NAME] [normal-name: NORMAL-NAME] [normal-transform: NORMAL-TRANSFORM])</procedure> 245 246 Destructively modifies the {{POSITION-NAME}} attribute of {{MESH}} by the [[http://wiki.call-cc.org/eggref/4/gl-math|gl-math]] matrix {{TRANSFORM}}. {{POSITION-NAME}} defaults to {{'position}} and must be the name of a three element float attribute of {{MESH}}. If {{NORMAL-NAME}} (defaulting to {{'normal}}) is the name of an attribute in the given mesh, this attribute will be transformed by the inverse-transpose of the transform matrix. If {{NORMAL-TRANSFORM}} is present, it will be used instead of the {{TRANSFORM}} matrix for normal transformations. 247 248 <procedure> (mesh-transform-append MESH-TRANSFORM-PAIRS [position-name: POSITION-NAME] [normal-name: NORMAL-NAME])</procedure> 249 250 Creates a new mesh resulting by appending all the given meshes together, then transforming the attribute named by {{POSITION-NAME}} by the given [[http://wiki.call-cc.org/eggref/4/gl-math|gl-math]] transform matrices. {{MESH-TRANSFORM-PAIRS}} are {{(MESH TRANSFORM [NORMAL-TRANSFORM])}} tuples. {{POSITION-NAME}} defaults to {{'position}} and must be the name of a three element float attribute of {{MESH}}. If {{NORMAL-NAME}} (defaulting to {{'normal}}) is the name of an attribute in the given mesh, this attribute will be transformed by the inverse-transpose of the transform matrices. If {{NORMAL-TRANSFORM}} is present, it will be used instead of the {{TRANSFORM}} matrix for normal transformations. The attributes of all the meshes are assumed to be the same, otherwise bad things will probably happen. 251 251 252 252 <procedure> (usage->gl USAGE)</procedure> … … 431 431 === Version history 432 432 433 ==== Version 0.7.0 434 24 April 2016 435 436 * Make {{mesh-transform!}} and {{mesh-transform-append}} aware of normals 437 438 433 439 ==== Version 0.6.0 434 440 16 January 2014 … … 485 491 === License 486 492 BSD 487
Note: See TracChangeset
for help on using the changeset viewer.