This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void drawFaceNormals() | |
| { | |
| glColor3f(0,0,1); // The colour we will be drawing is white (red = 1, green = 1, blue = 1). | |
| vector<vec3> verts = trig.Vertices(); | |
| vector<vec3> fnorms = trig.FaceNormals(); | |
| vec3 fnorm, pos, from, to; | |
| glBegin(GL_LINES); | |
| for(int i = 0; i < fnorms.size(); i++){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .grid .tick { | |
| stroke: lightgrey; | |
| opacity: 0.3; | |
| shape-rendering: crispEdges; | |
| } | |
| .grid path { | |
| stroke-width: 0; | |
| } | |
| #tag { |
OlderNewer