Changeset 2902 for trunk/packages/vizservers/nanovis
- Timestamp:
- Apr 1, 2012, 11:19:58 AM (12 years ago)
- Location:
- trunk/packages/vizservers/nanovis
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/nanovis/ConvexPolygon.cpp
r2877 r2902 43 43 44 44 Vector4 p1 = pt1; 45 p1.perspective _divide();45 p1.perspectiveDivide(); 46 46 float x1 = p1.x; 47 47 float y1 = p1.y; … … 49 49 50 50 Vector4 p2 = pt2; 51 p2.perspective _divide();51 p2.perspectiveDivide(); 52 52 float x2 = p2.x; 53 53 float y2 = p2.y; … … 121 121 122 122 Vector4 intersect; 123 Vector4 plane = clipPlane.get _coeffs();123 Vector4 plane = clipPlane.getCoeffs(); 124 124 125 125 bool prevRetained = isRetained(vertices[0], plane); -
trunk/packages/vizservers/nanovis/Plane.h
r2822 r2902 14 14 * ====================================================================== 15 15 */ 16 #ifndef _PLANE_H_17 #define _PLANE_H_16 #ifndef PLANE_H 17 #define PLANE_H 18 18 19 19 #include "Vector3.h" … … 32 32 {} 33 33 34 void get _point(Vector3& point);34 void getPoint(Vector3& point); 35 35 36 36 //bool clips(float point[3]) const { return !retains(point); } … … 49 49 } 50 50 51 Vector4 get _coeffs() const51 Vector4 getCoeffs() const 52 52 { 53 53 return Vector4(a, b, c, d); 54 54 } 55 55 56 void set _coeffs(float a_val, float b_val, float c_val, float d_val)56 void setCoeffs(float a_val, float b_val, float c_val, float d_val) 57 57 { 58 58 a = a_val, b = b_val, c = c_val, d = d_val; 59 59 } 60 60 61 void get _normal(Vector3& normal) const61 void getNormal(Vector3& normal) const 62 62 { 63 63 normal.x = a; -
trunk/packages/vizservers/nanovis/Vector3.h
r2877 r2902 111 111 } 112 112 113 Vector3 rot _x(float degree) const113 Vector3 rotX(float degree) const 114 114 { 115 115 float rad = radians(degree); … … 119 119 } 120 120 121 Vector3 rot _y(float degree) const121 Vector3 rotY(float degree) const 122 122 { 123 123 float rad = radians(degree); … … 127 127 } 128 128 129 Vector3 rot _z(float degree) const129 Vector3 rotZ(float degree) const 130 130 { 131 131 float rad = radians(degree); -
trunk/packages/vizservers/nanovis/Vector4.h
r2827 r2902 39 39 } 40 40 41 void perspective _divide()41 void perspectiveDivide() 42 42 { 43 43 /* Divide vector by w */
Note: See TracChangeset
for help on using the changeset viewer.