All Questions
4 questions
0
votes
2
answers
1k
views
How to calculate vertex normals on a mesh with non-planar polygons
If I have a mesh consisting of polygons that are not necessarily triangles and not necessarily planar. As answered in the previous question I asked, there's no correct answer to calculating normals ...
0
votes
1
answer
323
views
OpenGL Polygon Offset Fill implementation example code
I am working on a pure java implementation of OpenGL 1 called jGL.
I am missing glPolygonOffsetFill and am looking for an example implementation in java, c/c++ example of this GL function in order to ...
1
vote
1
answer
6k
views
Drawing a square using glDrawArrays with GL_TRIANGLES
I used a version of the following code to draw a triangle using glDrawArrays with GL_TRIANGLES, per Anton Gerdelan's very nice tutorial here:
Hello Triangle !
It draws a nice triangle.
I have modified ...
3
votes
0
answers
89
views
What is a good algorithm, and framework, to calculate centres of gravity or mass (cog)?
I'd like to take an photograph, subdivide it into a tesselation, either of squares, or (ideally), hexagons, and then find the centre of gravity (or, if you prefer, centre of mass) of each cell of the ...