public class SSphericalCapGeometry extends SDiskGeometry
Une calotte sphérique étant défini à l'aide d'un rayon de courbure respecte la convension de signe des dioptres sphériques suivante :
BTRIANGLE_CODE, CONE_CODE, CUBE_CODE, CYLINDER_CODE, DISK_CODE, LENS_CODE, PLANE_CODE, SPHERE_CODE, SPHERICAL_CAP_CODE, TRANSFORMABLE_CODE, TRIANGLE_CODE, TUBE_CODE| Constructor and Description |
|---|
SSphericalCapGeometry(SBufferedReader sbr,
SPrimitive parent)
...
|
SSphericalCapGeometry(SVector3d position,
SVector3d normal,
double R,
double radius_of_curvature)
...
|
SSphericalCapGeometry(SVector3d position,
SVector3d normal,
double R,
double radius_of_curvature,
SPrimitive parent)
...
|
| Modifier and Type | Method and Description |
|---|---|
double |
capSize()
Méthode pour avoir l'épaisseur de la calotte sphérique.
|
int |
getCodeName()
Méthode pour obtenir le numéro correspondant au nom de la géométrie.
|
java.lang.String |
getReadableName()
Méthode pour obtenir le nom de l'objet implémentant l'interface SReadable.
|
java.lang.String[] |
getReadableParameterName()
Méthode pour obtenir un tableau des mots clés permettant de définir les paramètres de l'objet implémentant l'interface SReadable lors de sa lecture.
|
SVector3d |
getRelativeSpherePosition()
Méthode pour obtenir la position relative à cette calotte sphérique.
|
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.
|
void |
write(java.io.BufferedWriter bw)
Méthode pour écrire un objet SWriteable dans un fichier txt en utilisant un BufferedWriter.
|
getRay, isClosedGeometry, isInsidegetNormal, getPositionequals, getID, getPrimitiveParent, hashCode, isTransparent, setPrimitiveParent, toStringwritereadpublic SSphericalCapGeometry(SVector3d position, SVector3d normal, double R, double radius_of_curvature) throws SConstructorException
position - normal - R - radius_of_curvature - SConstructorExceptionpublic SSphericalCapGeometry(SVector3d position, SVector3d normal, double R, double radius_of_curvature, SPrimitive parent) throws SConstructorException
position - normal - R - parent - SConstructorExceptionpublic SSphericalCapGeometry(SBufferedReader sbr, SPrimitive parent) throws java.io.IOException, SConstructorException
sbr - parent - java.io.IOExceptionSConstructorExceptionpublic int getCodeName()
SGeometrygetCodeName in interface SGeometrygetCodeName in class SDiskGeometrypublic SVector3d getRelativeSpherePosition()
public double capSize()
public SRay intersection(SRay ray) throws SRuntimeException
SGeometryintersection in interface SGeometryintersection in class SDiskGeometryray - - Le rayon à intersecter avec la géométrie.SRuntimeException - S'il y a déjà eu intersection avec ce rayon.public void write(java.io.BufferedWriter bw)
throws java.io.IOException
SWriteablewrite in interface SWriteablewrite in class SDiskGeometrybw - - Le buffer pour l'écriture.java.io.IOException - Si une erreur de type I/O a été lancée par l'objet BufferedWriter.BufferedWriterpublic java.lang.String getReadableName()
SReadablegetReadableName in interface SReadablegetReadableName in class SDiskGeometrypublic java.lang.String[] getReadableParameterName()
SReadablegetReadableParameterName in interface SReadablegetReadableParameterName in class SDiskGeometry