|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Solid
Elementary solid of 3D scene: it is able to compute ray-intersections (including normal vector, and 2D texture coordinate), manages bounding-volume and polyhedral representation.
BoundingVolume
,
Brep
,
CSGLeaf
,
MicroFacet
Field Summary |
---|
Fields inherited from interface cz.cuni.jagrlib.iface.Property |
---|
LOGGING, STATISTICS, TEXT_DESCRIPTION |
Method Summary | |
---|---|
int |
createPolyhedr(Brep b,
double smoothness)
Creates polyhedral representation of the solid (non-mandatory method). |
BoundingVolume |
getBoundingVolume(TrMatrix toWorld)
Returns bounding volume of the solid (non-mandatory method). |
java.util.List<MicroFacet> |
intersection(double[] P0,
double[] P1)
Computes intersection of the solid with the given ray. |
boolean |
isInside(double[] point)
Point vs. solid test ("inside-test"). |
Methods inherited from interface cz.cuni.jagrlib.iface.Property |
---|
commit, get, set |
Methods inherited from interface cz.cuni.jagrlib.IntersectionAttributes |
---|
assertAttributes |
Method Detail |
---|
int createPolyhedr(Brep b, double smoothness)
b
- Global B-rep data structure.smoothness
- Quality-factor of an approximation (0.0
for default
approximation).
NULL
if the method is not
implemented).Brep.NULL
java.util.List<MicroFacet> intersection(double[] P0, double[] P1)
P0
- Ray origin (double[3]
or double[4]
).P1
- Direction vector of the ray (double[3]
or double[4]
).
MicroFacet
s) sorted by t
(parametric distance from P0
). null
is returned in case
of bad arguments or if no intersection exists..MicroFacet
,
BoundingVolume
BoundingVolume getBoundingVolume(TrMatrix toWorld)
toWorld
- Transform from local (solid) coordinates to world coordinates
(where bounding volume will live).
null
if method is not implemented.intersection(double[], double[])
boolean isInside(double[] point)
point
- Coordinates of the 3D point (double[3]
or
double[4]
).
true
if the given point lies inside the solid.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |