Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4358/src/net/sourceforge/bprocessor/gl/view
Modified Files:
AbstractView.java
Log Message:
Uses normal() instead of CoordinateSystem to draw spacenames
Index: AbstractView.java
===================================================================
RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view/AbstractView.java,v
retrieving revision 1.36
retrieving revision 1.37
diff -C2 -d -r1.36 -r1.37
*** AbstractView.java 26 Sep 2005 13:17:38 -0000 1.36
--- AbstractView.java 29 Sep 2005 11:26:57 -0000 1.37
***************
*** 391,396 ****
void labelSurface(Surface surface) {
Vertex from = surface.center();
! CoordinateSystem system = surface.coordinateSystem();
! Vertex n = system.getN();
Vertex spot = from.add(n);
Transformation transformation = transformation();
--- 391,398 ----
void labelSurface(Surface surface) {
Vertex from = surface.center();
! //CoordinateSystem system = surface.coordinateSystem();
! //Vertex n = system.getN();
! Vertex n = surface.normal();
! n.scale(1/n.length());
Vertex spot = from.add(n);
Transformation transformation = transformation();
|