Cached normals?

JarelJarel Posts: 18

Hi. I'm updating some code from 3.x that exports scene geometry.

DzObject.getCachedGeom() used to return DzPolyMesh* and now returns DzVertexMesh*. Easy enough to get the vertex positions from this, but I can't see how to get the transformed normals. Is there still a way to do this please?

Comments

  • dtammdtamm Posts: 126
    edited December 1969

    Jarel said:
    Hi. I'm updating some code from 3.x that exports scene geometry.

    DzObject.getCachedGeom() used to return DzPolyMesh* and now returns DzVertexMesh*. Easy enough to get the vertex positions from this, but I can't see how to get the transformed normals. Is there still a way to do this please?

    Cast it to a DzFacetMesh with qobject_cast(your_pointer)

  • JarelJarel Posts: 18
    edited December 1969

    That worked. Thanks very much.

Sign In or Register to comment.