Principle

Geometric transformations

Examples

Associated transformations

Virtual laser

matrix

The coordinates of the object id are changed from their previous positions:

Default transformations are from the previous position.

`rotx(PI/4)vol(1);`

rotates volume 1 of angle PI/4 around x axis.
`rotx(PI/4)vol(1);roty(PI/3)vol(1)`

: rotates volume 1 of angle PI/4 around x axis
then rotate the result of PI / 3 about the y axis.
`rotx(PI/4)vol(1)ini;roty(PI/3)vol(1)`

: Doing the same thing, but from a copy of the original points.
`rotx(PI/4)vol(1)ini;roty(PI/3)vol(1)validate`

: Doing the same thing, but transforming the original copy points.
To validate the copy points can be also: validate(1)poi vol(id).

See an example in using the function

`set_PAR()`

du fichier corps_simple.func.
Only the matrix of object

This transformation will be sent to all the followers of the object

The boxes and ball are not affected by these changes, however attach

Options

Transformation applied to some vertices

Any object can be changed by one of the transformations:

adjust: adjustement.

alea: reproductible random.

alex: x random.

aley: y random.

alez: z random.

tran: displacement (translation).

dila: dilatation.

dilx: x dilatation.

dily: y dilatation.

dilz: z dilatation.

hom: homothety.

rand: no reproductible random

rota: rotation.

rotx: x rotation.

roty: y rotation.

rotz: z rotations.

sphere: spherical deformation

syma: symétries.

symx: symmetry x.

symy: symmetry y.

symz: symmetry z.

s is a multiplier of the mouse.

Réalise

Realizes

Realizes

Displays frame (x1,y1,x2,y2) and addresses only the points inside this frameet.

In this case the options allow to vary the parameters

acc: accelerated;

dec: decelerated

pend: pendular

law(w)

`dila(.5,.5,.5,2,2,2)vertex[1,12]vol(1)pend;`

Expands the vertices 1-12 of volume number 1 in a pendular manner between 0.5 and 2.0.

Moves the volume number 1 by (200,100,0)

Applies the tool sphere center (0,100,0) and radius 100 atvolume number 3.

transf object(id) abs

Processes only meaningful points on anchored volumes.

`roty(-P/2,PI/2)vol(1)rotz(-PI,PI)vol(2)`

The volume 1 rotates between -PI/2 and PI/2 around axis y when the volume 2 rotates between -PI and PI around axis z.

`tran(-200,0,0, 200,0,0)vol(1)rotz(-PI,PI)vol(2)`

Volume 1 is translated between (-200,0,0) and (200,0,0) when volume 2 rotates between -PI and PI around axis y.

`attach(0)rotz(a1,a2)vol(a)rotz(b1,b2)vol(b);`

With yes attach active, volume

The simulation has no reason to limit the movement of the beam, it can be from any source and target another point located on the axis and in the plane perpendicular to the axis passing through the source. For example, the target point can explore concavities of the object scanned.

The set of sources is not necessarily a cylinder but may be generalized box (generated by parametric curves around to better volume).

Similarly, the set of points of view is not necessarily an axis but may be a curve (eg all secy CG of the box).

Command envelope vol allows to control by program such a virtual laser.