Version francaise Version Anglaise

Chat 3d - Alliun

Alliun: Alternative Life Univers

Nouveau monde virtuel intéractif gratuit

Class Polygone

The class Polygone represents a polygon of an object. A polygon is composed of multiples vertexes.
Alliun only draws polygons which have 3 or 4 vertexes. If you have more vertexes in you polygon, it will not be drawn.


Vertex Get_Vertex(int pos)
Parameters
pos The position of the vertex you want to get. It has to be between 0 and Nb_Vertex()

Returns
Vertex A Vertex object.

Description
This function take a vertex from the polygon. The vertex returned is not a copy of the old vertex but a reference.
All modification to the returned Vertex will affect the vertex in the polygon where it comes from.

void Add_Vertex(float x, float y, float z)
Parameters
x The x component of the new vertex
y The y component of the new vertex
z The z component of the new vertex

Returns
Nothing is returned

Description
This function add a vertex to the polygon. Alliun can only draw TRIANGLES and QUADS so make sure you never create polygones with more than 4 vertexes.

void Del_Vertex(int pos)
Parameters
pos The position of the polygone you want to delete. It has to be between 0 and Nb_Polygones()

Returns
Nothing is returned

Description
This function deletes a vertex from the polygon.

int Nb_Vertex()
Parameters
No Parameters

Returns
int the number of vertexes inside the polygon.

Description
This function returns the number of vertexes inside the polygon.

void Set_Image(string image)
Parameters
image The new image to draw on the polygon. It can be a local file or a http link

Returns
Nothing is returned

Description
This function replace the current image of the polygone with a new one. The new one can be a local file or a link to a web image file.

void Set_Color(float r, float g, float b)
Parameters
r The red component of the new color
g The green component of the new color
b The blue component of the new color

Returns
Nothing is returned

Description
This function replace the current color of the polygon.

void Set_Def_MapY()
Parameters
No parameters

Returns
Nothing is returned

Description
This function compute a default mapping for the texture.

Identification

S'indentifier || Inscrivez vous

Pas encore inscrit(e) ?
N'hésitez plus et inscrivez vous dès maintenant ! C'est totalement gratuit, et cela vous permettera de tester la totalité de fonctionnalités du chat 3d !

[ Inscrivez vous ]

Serveur

Serveur En Ligne !
0 Chatteur connecté

Dernières connexions
Liste des inscrits

Dernières Images

Image du chat 3d Image du chat 3d Image du chat 3d Image du chat 3d

Liens

Web3D-fr
Groupe Facebook
- - - - - - - - - - -
Chat 3d
Monde virtuel
- - - - - - - - - - -
Votre site ici

Tous droits réservés | chat-3d.net 2005-2008 | Contacter le webmaster