- Timestamp:
- Jun 5, 2012 12:08:41 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/nanovis2/packages/vizservers/nanovis/ConvexPolygon.h
r2877 r3023 39 39 40 40 // Clips the polygon, retaining the portion where ax + by + cz + d >= 0 41 voidclip(Plane& clipPlane, bool copyToTexcoords);41 bool clip(Plane& clipPlane, bool copyToTexcoords); 42 42 43 43 void emit(bool useTexture); … … 63 63 } 64 64 65 bool isRetained(const Vector4& point, const Vector4& plane)66 {67 return ((point * plane) >= 0);68 }69 70 65 VertexVector vertices; 71 66 TexVector texcoords;
Note: See TracChangeset
for help on using the changeset viewer.