Jump to content

[SOLVED] where is getNormal?


photo

Recommended Posts

Posted

hi I saw the getNormal is removed from the objectmeshdynamic. So how to workaround to get the normal? 

thanks

Posted

hi Silent:

    Could you send me a sample how to use getTangent for the normal?

also any reason remove the getnormal?

Posted

Hi,

You can use the following piece of code as an example:
 

forloop(int i = 0; mesh.getNumVertex()) {
   quat q = mesh.getTangent(i);
   log.message("%s\n",typeinfo(q.normal));
  }

 
Also, we'll add getNormal function in future releases.

  • 2 months later...
Posted

Is that possible to do setNormal as well?

Posted

Hi,

 

According to the Migration guide setNormal() was replaced with setTangent().

 

Thanks!

yes. i know the setTangent function. Could you send me a sample how to convert a normal to tangent so I could use setTangent in my case? I only know the normal the vertex.

thanks

×
×
  • Create New...