Particles system
Principes
A dynamic particles system may be defined.
Note: Requires yes particle active.
particle brush
particle alea brush(id)
Returns the density of the particles of brush id.
particle alea brush(id)=c
Changes this density.
Notes
The brush id will be displayed as random (reproductible) particles.
0 <= c < 1: 0: no particle, 1: full.
particle rand brush(id)
Returns the density of the particles of brush id.
particle rand brush(id)=c
Changes this density.
Notes
The brush id will be displayed as random (not reproductible) particles.
0 <= c < 1: 0: no particle, 1: full.
particle envelope
particle envelope vol(id)
Returns the particles coefficients of the envelope of the volume id.
particle envelope vol n=dens,c
Changes thesecoefficients.
particle fac
particle fac(f) vol(id)
Returns the particles coefficients of the facet f of volume id.
particle fac(f) vol(id)=dens,coe,fact,alea,max1,max2
Changes these coefficient.
particle genetic
particle(p) genetic(id)
Returns particle p of genetic id.
particle(p) genetic(id)=valeurs
Changes values of particle p of genetic ied.
particle(0) genetic(id)=valeurs
Adds a particle at genetic id.
Notes:
1) values may be:
a list of floats
a string
2) All particles must be of the same type (char o float)
3) All particles must the same size
4) See also: genetic
particle segment
particle segment vol(id)
Returns property particle segment vol of volume id.
particle segment vol(id)=dens,dis,alea,ext,coe,flag
Changes this property
Notes:
1) Edges of facts of volume id are displayed with particle
2) dens=density (between 0 and 1) of particles
3) dis=distance to the edges (between 0 and 1)
4) alea=1: reproductible random
5) ext,coe,flag = parameters of extension.
particle vol
particle vol(id)
Returns the coefficients of property particle of volume id.
particle vol(id)=dens,coe,fact,alea,max1,max2
Changes those coefficients (see particle fac vol).
dens = density of particles on this facet;
0: empty facet, 1: facette remplie
coe = coefficient of random position which mesure is
coe * edge of the facet
0: particles are on the facet
1: move away no more than the size of the facet
fact = density multiplier of a particle
alea = random type:
0: no reproductible
1: reproductible (for animation)
max1 = maximum number of particles (100000 default)
max2 = maximum number of particlesdans generated in a cloud
(100 default)
Notes:
1) if alea != 0: reproductible
2) when the projection of a particle is greater than the pixel, a particles
cloud is generated
3) when the projection of a particle is smaller than the pixel, the
density of particles is adjusted at its projection
4) if fact>1, chaque particule is a cloud size the fact
5) max1 foe close eye
6) max2 = maximum number of particles generated in a clou (100 default)
7) if volume id has a property motif vertex, put motif
in place of each particle
Voir aussi: