WeightMeshSpawnShapeValue.java | 14 private CumulativeDistribution<Triangle> distribution; field in class:WeightMeshSpawnShapeValue 18 distribution = new CumulativeDistribution<Triangle>(); 24 distribution = new CumulativeDistribution<Triangle>(); 36 distribution.clear(); 57 distribution.add(new Triangle(x1, y1, z1, x2, y2, z2, x3, y3, z3), area); 70 distribution.add(new Triangle(x1, y1, z1, x2, y2, z2, x3, y3, z3), area); 74 //Generate cumulative distribution 75 distribution.generateNormalized(); 80 Triangle t = distribution.value();
|