Print at Sep 28, 2020, 7:30:27 AM

Posted by enkonyito at Nov 3, 2018, 9:26:08 PM
Re: How to find the vertices of a 3D shape?
For SH3D lights, the types of geometric constructions detected are:
- TriangleArray (like the opaque light panel)
- LineStripArray (like the unviewable light panel).

Using,
GeometryInfo geometryInfo = new GeometryInfo (geometryArray);
with the type LineStripArray, I have the error message:
java.lang.IllegalArgumentException: Unsupported geometry type


Sunflow only considers triangle-based meshes for TriangleMeshLight light sources.
light {
type meshlight
name meshLamp
emit { "sRGB nonlinear" 1.000 1.000 1.000 }
radiance 100.0
samples 16
points 4
0.6 0.1 6.0
0.3 1.0 6.0
1.0 1.0 5.5
1.0 0.3 5.5
triangles 2
0 1 2
0 2 3
}

----------------------------------------
EnkoNyito gallery