public interface SGeometry extends SWriteable
Modifier and Type | Method and Description |
---|---|
int |
getCodeName()
Méthode pour obtenir le numéro correspondant au nom de la géométrie.
|
long |
getID()
Méthode pour obtenir le numéro d'identification unique ID de la géométrie.
|
SPrimitive |
getPrimitiveParent()
Méthode pour obtenir la primitive parent dont cette géométrie fait partie.
|
SRay |
intersection(SRay ray)
Méthode permettant d'effectuer le calcul de l'intersection (s'il y a) entre un rayon et une géométrie.
|
boolean |
isClosedGeometry()
Méthode qui détermine si la géométrie est une surface fermée.
|
boolean |
isInside(SVector3d v)
Méthode qui détermine si un vecteur point à l'intérieur de la géométrie.
|
boolean |
isTransparent()
Méthode qui détermine si la géométrie est transparente.
|
void |
setPrimitiveParent(SPrimitive parent)
Méthode pour affecter primitive commet parent à la géométrie.
|
write
long getID()
int getCodeName()
SPrimitive getPrimitiveParent() throws SRuntimeException
SRuntimeException
- Si la géométrie ne possède pas de primitive comme parent.void setPrimitiveParent(SPrimitive parent) throws SRuntimeException
parent
- - La primitive parent de la géométrie.SRuntimeException
- Si la géométrie possède déjà un parent (n'est pas préalablement 'null').boolean isTransparent()
boolean isClosedGeometry()
boolean isInside(SVector3d v)
v
- - Le vecteur.SRay intersection(SRay ray) throws SRuntimeException
ray
- - Le rayon à intersecter avec la géométrie.SRuntimeException
- S'il y a déjà eu intersection avec ce rayon.