Exemple #1
0
 public Substance(String id, double diffusionConstant, double degradationConstant) {
   this.id = id;
   this.diffusionConstant = diffusionConstant;
   this.degradationConstant = degradationConstant;
   if (!ECM.getInstance().getSubstanceTemplates().containsKey(this.id)) {
     ECM.getInstance().addNewSubstanceTemplate(this);
   }
 }
 @Override
 public void draw(Graphics g) {
   g.setColor(Color.black);
   if (ECM.getInstance().getArtificialWallForSpheres()
       || ECM.getInstance().getArtificialWallForCylinders()) {
     Cuboid c =
         new Cuboid(
             ECM.getInstance().getArtificialWalllMin(), ECM.getInstance().getArtificialWalllMax());
     ArrayList<Line> temp = c.getLines();
     for (Line l : temp) {
       drawLine(new Vector3d(l.getA()), new Vector3d(l.getB()));
     }
   }
 }