|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RadiosityBasisFunctions
Basis functions representing radiosity distribution over a set of Brep
elements.
Elements are represented by integer handles (e.g. faces residing in external Brep
storage).
Outgoing radiosity distribution on each element is represented by a set of coefficients, neighbour
elements might share some coefficients.
There are two major objectives defined in this interface:
Method Summary | |
---|---|
int |
coefficientsFromElement(int elem,
int[] result)
Returns coefficient indexes defining the given element. |
java.util.BitSet |
coefficientsFromElements(java.util.BitSet elements,
java.util.BitSet result)
Returns set of coefficients defining the given set of elements. |
double[] |
distribute(int elem,
double[] coords,
double[] result)
Computes distribution coefficients for the single point of the element. |
int |
elementsFromCoefficient(int coeff,
int[] result)
Returns elements which are affected by the given single coefficient. |
java.util.BitSet |
elementsFromCoefficients(java.util.BitSet coefficients,
java.util.BitSet result)
Returns set of elements which are affected by the given set of coefficients. |
double |
formFactor(int from,
int to)
Computes single form-factor (F_{from,to}). |
int |
formFactorsFrom(int coeff,
int[] ind,
double[] ff)
Computes "shooting" form-factors (single source coefficient is fixed). |
int |
formFactorsTo(int coeff,
int[] ind,
double[] ff)
Computes "gathering" form-factors (single target coefficient is fixed). |
int |
getOrder()
Order of the approximation (for information purposes only). |
int |
totalCoefficients()
Total number of coefficients. |
int |
totalElements()
Total number of elements in the scene. |
Method Detail |
---|
int getOrder()
int coefficientsFromElement(int elem, int[] result)
elem
- Element handle.result
- Pre-allocated integer array to hold result (can be null
).
int elementsFromCoefficient(int coeff, int[] result)
coeff
- Coefficient index.result
- Pre-allocated integer array to hold result (can be null
).
java.util.BitSet coefficientsFromElements(java.util.BitSet elements, java.util.BitSet result)
elements
- Set of elements.result
- Non-mandatory object to be filled.
java.util.BitSet elementsFromCoefficients(java.util.BitSet coefficients, java.util.BitSet result)
coefficients
- Set of coefficients.result
- Non-mandatory object to be filled.
double[] distribute(int elem, double[] coords, double[] result)
elem
- Element handle.coords
- World-space (?) coordinates of the point lying on the given element.result
- Non-mandatory pre-allocated array to hold result.
coefficientsFromElement(int, int[])
).int totalElements()
int totalCoefficients()
int formFactorsFrom(int coeff, int[] ind, double[] ff)
coeff
- Source-coefficient index.ind
- Array to hold affected (lit) coefficient indices (can be null
).ff
- Array to hold respective form-factors (can be null
).
int formFactorsTo(int coeff, int[] ind, double[] ff)
coeff
- Target-coefficient index.ind
- Array to hold relevant (visible) coefficient indices (can be null
).ff
- Array to hold respective form-factors (can be null
).
double formFactor(int from, int to)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |