JsonMesh


JsonMesh widget allows to add custom 3D geometry stored into simple JSON file to your application 3D view. There is no access to any properties representing 3D geometry from Form Builder's property editor. And thus there will be nothing rendered in the view. You can only set required geometry programmaticaly in your code by assigning file name to Filename property. The accepted JSON file format is as follows.

{
    "Polygons": [
        {
            "Vertices": [
                {
                    "Position": { "X":  0, "Y":  0, "Z":  0 },
                    "Normal":   { "Nx": 0, "Ny": 0, "Nz": 0 },
                    "Texture":  { "Tx": 0, "Ty": 0 }
                }
            ]
        }
    ]
}
JsonMesh widget

Interfaces

Classes