[Bprocessor-commit] model/src/net/sourceforge/bprocessor/model Edge.java,1.14,1.15 Surface.java,1.37
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2005-10-13 01:17:38
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32007/src/net/sourceforge/bprocessor/model Modified Files: Edge.java Surface.java Log Message: Added definition of Edge.split and Surface.direction Index: Surface.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Surface.java,v retrieving revision 1.37 retrieving revision 1.38 diff -C2 -d -r1.37 -r1.38 *** Surface.java 6 Oct 2005 11:11:07 -0000 1.37 --- Surface.java 10 Oct 2005 12:13:42 -0000 1.38 *************** *** 52,55 **** --- 52,63 ---- private Domain backDomain; + /** Surface is clockwise */ + + public static final int CLOCKWISE = 1; + + /** Surface is counter clock wise **/ + + public static final int COUNTER_CLOCKWISE = 2; + /** * Constructor for persistence layer *************** *** 251,254 **** --- 259,275 ---- } } + + /** + * Calculate the turn direction of the vertices of this + * surface. Return values are CLOCKWISE or COUNTER_CLOCKWISE. + * @return The turn direction. + */ + public int direction() { + /* + * TODO To Calculate direction + */ + return 0; + } + /** * Get the inner surfaces Index: Edge.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Edge.java,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** Edge.java 6 Oct 2005 11:11:07 -0000 1.14 --- Edge.java 10 Oct 2005 12:13:42 -0000 1.15 *************** *** 274,277 **** --- 274,288 ---- return new Edge("intersection", pa, pb); } + + /** + * Split this edge and update all surfaces + * accordingly. + * @param vertex The vertex + */ + public void split(Vertex vertex) { + /* + * TODO to split this edge by the vertex + */ + } /** |