Re: How to find the vertices of a 3D shape?

by enkonyito » Sat Nov 03, 2018 9:26 pm

For SH3D lights, the types of geometric constructions detected are:
- TriangleArray (like the opaque light panel)
- LineStripArray (like the unviewable light panel).

Using,

Code: Select all

GeometryInfo geometryInfo = new GeometryInfo (geometryArray);
with the type LineStripArray, I have the error message:

Code: Select all

java.lang.IllegalArgumentException: Unsupported geometry type
Sunflow only considers triangle-based meshes for TriangleMeshLight light sources.

Code: Select all

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
}