[Bprocessor-commit] model/src/net/sourceforge/bprocessor/model Surface.java, 1.118, 1.119
Status: Pre-Alpha
Brought to you by:
henryml
From: rimestad <rim...@us...> - 2006-10-30 10:43:35
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv28781/src/net/sourceforge/bprocessor/model Modified Files: Surface.java Log Message: Some surfaces cant genrerate a coordinatesystem, dont know why just made a cheeck for it Index: Surface.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Surface.java,v retrieving revision 1.118 retrieving revision 1.119 diff -C2 -d -r1.118 -r1.119 *** Surface.java 30 Oct 2006 06:49:24 -0000 1.118 --- Surface.java 30 Oct 2006 10:43:32 -0000 1.119 *************** *** 1435,1438 **** --- 1435,1442 ---- public boolean surrounds(Vertex v, double planePrecision) { CoordinateSystem cs = this.coordinateSystem(); + if (cs == null) { + log.warn("Surface " + this + " could not present a coordinatesystem"); + return false; + } Vertex lv = cs.translate(v); /* |