[Bprocessor-commit] model/src/net/sourceforge/bprocessor/model Surface.java,1.79,1.80 Project.java,1
Status: Pre-Alpha
Brought to you by:
henryml
|
From: Nikolaj B. <nbr...@us...> - 2006-03-08 14:22:54
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13314/src/net/sourceforge/bprocessor/model Modified Files: Surface.java Project.java Log Message: Materials are now working Index: Surface.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Surface.java,v retrieving revision 1.79 retrieving revision 1.80 diff -C2 -d -r1.79 -r1.80 *** Surface.java 7 Mar 2006 23:01:54 -0000 1.79 --- Surface.java 8 Mar 2006 14:22:51 -0000 1.80 *************** *** 951,964 **** if (getFrontDomain() != null) { res.add(new Attribute("Space", getFrontDomain(), false)); - //res.add(new Attribute("Material", getFrontMaterial())); } else { res.add(new Attribute("Space", "None", false)); } if (getBackDomain() != null) { res.add(new Attribute("Space", getBackDomain(), false)); - //res.add(new Attribute("Space", getBackMaterial())); } else { res.add(new Attribute("Space", "None", false)); } if (isInner()) { res.add(new Attribute("Exterior", getExterior(), false)); --- 951,964 ---- if (getFrontDomain() != null) { res.add(new Attribute("Space", getFrontDomain(), false)); } else { res.add(new Attribute("Space", "None", false)); } + res.add(new Attribute("Front Material", getId())); if (getBackDomain() != null) { res.add(new Attribute("Space", getBackDomain(), false)); } else { res.add(new Attribute("Space", "None", false)); } + res.add(new Attribute("Back Material", getId())); if (isInner()) { res.add(new Attribute("Exterior", getExterior(), false)); Index: Project.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Project.java,v retrieving revision 1.40 retrieving revision 1.41 diff -C2 -d -r1.40 -r1.41 *** Project.java 25 Feb 2006 09:04:53 -0000 1.40 --- Project.java 8 Mar 2006 14:22:51 -0000 1.41 *************** *** 413,416 **** --- 413,426 ---- /** + * Find Surface by id + * @param id The id + * @return The Surface + */ + public Surface findSurfaceById(long id) { + return (Surface)mesh.getSurface(id); + } + + + /** * Intern a vertex * @param vertex The vertex |