[Bprocessor-commit] model/src/net/sourceforge/bprocessor/model Surface.java,1.88,1.89
Status: Pre-Alpha
Brought to you by:
henryml
From: rimestad <rim...@us...> - 2006-04-10 07:14:38
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11723/src/net/sourceforge/bprocessor/model Modified Files: Surface.java Log Message: Changed the addHole method to flip the hole so that the normal of the hole is the same as the normal of the surface it is inserted into Index: Surface.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Surface.java,v retrieving revision 1.88 retrieving revision 1.89 diff -C2 -d -r1.88 -r1.89 *** Surface.java 5 Apr 2006 14:10:15 -0000 1.88 --- Surface.java 10 Apr 2006 07:14:35 -0000 1.89 *************** *** 533,550 **** Space front = getFrontDomain(); Space back = getBackDomain(); ! if (dot > 0) { ! if (hole.getFrontDomain() == null) { ! hole.setFrontDomain(front); ! } ! if (hole.getBackDomain() == null) { ! hole.setBackDomain(back); ! } ! } else { ! if (hole.getFrontDomain() == null) { ! hole.setFrontDomain(back); ! } ! if (hole.getBackDomain() == null) { ! hole.setBackDomain(front); ! } } changed(); --- 533,545 ---- Space front = getFrontDomain(); Space back = getBackDomain(); ! if (dot < 0) { ! /* If the normal of the hole is not the same the hole is reversed */ ! hole.flip(); ! } ! if (hole.getFrontDomain() == null) { ! hole.setFrontDomain(front); ! } ! if (hole.getBackDomain() == null) { ! hole.setBackDomain(back); } changed(); |