About vertex_positions / faces #610
-
Hello, Reading the docs about the shapes plugins (for example https://mitsuba.readthedocs.io/en/stable/src/generated/plugins_shapes.html#cube-cube ), several plugins support passing geometry directly by specifying vertex_positions + faces arrays. The docs specify these are type float[] and uint32[] respectively. But I cannot figure out how to specify those types in the XML. Even the docs about the scene XML format, in which other data types are described, doesn't mention how to specify an array of floats/integers. https://mitsuba.readthedocs.io/en/stable/src/key_topics/scene_format.html I have tried for example:
or
Can anyone give me some insight into this? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
This is not supported. In the documentation there is usually a separator between "Parameters" and "State parameters". The former can be used during the plugin construction, whereas the latter are exclusively available thought the Vertex positions are only available through |
Beta Was this translation helpful? Give feedback.
Hi @jsguay-haven
This is not supported.
In the documentation there is usually a separator between "Parameters" and "State parameters". The former can be used during the plugin construction, whereas the latter are exclusively available thought the
mi.traverse()
mechanism (see an example in this tutorial).Vertex positions are only available through
mi.traverse()
. Unfortunately, it looks like the documentation generator jumbled some of these tables, I'll fix that right away.