cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Translate the entire conversation x

WriteSTL_Improve.cpp

Tezza2010
1-Visitor

WriteSTL_Improve.cpp

1 REPLY 1
jsheehan
12-Amethyst
(To:Tezza2010)

Hi Tezza2010

What is improved in this version ?

I see you add a normal, but your do not calculate the normal

you simply repeat a vertex.

 

fprintf(fp,

"facet normal %f %f %f\n"

,mat->hReal[0][i],mat->hReal[1][i],mat->hReal[2][i]));

Anyways, I have created a normals function, now saving normals to the STL file as you suggest above and to be frank I can not tell the difference in Creo.. which I believe Creo computes the normals in the rendering engine

Normals Left no-Normals Right.png

Announcements

Top Tags