About Store Forum Documentation Contact



Post Reply 
problems with MeshBase.tri.nrm
Author Message
krokodilcapa Offline
Member

Post: #1
problems with MeshBase.tri.nrm
Hi!

I have a problem, I can't get selected triangle's normal from meshbase. I've found only one topic, where somebody talked about this, but no answer for that specific question.

The topic is: this, with the question:

Quote:I bet there will be a more optimized version for it code-wise but i can't get "base.tri.nrm(triangle_Index)" to work since it always crashes.
01-11-2016 05:38 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: problems with MeshBase.tri.nrm
Hi,

This is because face normals are not always available.
They will be available only if you call MeshBase.setFaceNormals method.
This method is currently unavailable however (it is private), I will make it public for the next release.

Thanks
01-12-2016 05:09 AM
Find all posts by this user Quote this message in a reply
krokodilcapa Offline
Member

Post: #3
RE: problems with MeshBase.tri.nrm
Thanks, it make sense now. I've read about the function .setFaceNormals in a topic, but I though it was removed/changed for some reason.
01-13-2016 02:02 AM
Find all posts by this user Quote this message in a reply
Post Reply