Message 1 of 3
Vertex normal calculation sample errors

Not applicable
02-16-2018
07:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, I'm attempting to use the sample function at the bottom (ComputeVertexNormals) of this documentation. The sample has syntax errors which don't allow it to compile. I've managed to fix those errors, but it doesn't seem to work as described. Instead of using the VNormal class, I'm using the VertexNormal class which is defined in vertexnormal.h. When the code hits the constructor of VertexNormal, it simply crashes. I switched to using dynamically allocated VertexNormals, and it solved the crashing issue. Is there any reason why it shouldn't work as is?