hello,
I'm currently reading an stl file with:
m_kernelCAD.ModelPath = strPath;
In my each face is described by points and a normal:
facet normal 0.000000e+00 -0.000000e+00 -1.000000e+00
outer loop
vertex 1.238308e-03 4.185656e-02 -9.566067e-02
vertex 1.238923e-03 3.156301e-02 -9.566067e-02
vertex 1.237746e-03 3.232011e-02 -9.486067e-02
endloop
endfacet
How can I access the normals of each triangle also?
Getting normals from stl
-
- Posts: 4
- Joined: Thu Nov 28, 2013 8:06 am
Re: Getting normals from stl
Once the mesh is loaded you can get face normals via ISimplex.GetFacetNormal(). See Morph sample for accessing the mesh and simplexes
Cheers
Cheers