Code: Select all
var hatch = new RHatchData(false, 200, 0, "ANSI31");
var polylinie = new RPolyline(punkte, true);
hatch.addBoundary(polylinie);
Code: Select all
var hatch = new RHatchData(false, 200, 0, "ANSI31");
var polylinie = new RPolylineData();
for (var p = 0; p < punkte.length; p++) {
polylinie.appendVertex(punkte[p]);
}
polylinie.setClosed(true);
hatch.newLoop();
var segments = new RPolylineEntity(zeichnung.document, polylinie).getExploded();
for (i=0; i<segments.length; i++) {
var segment = segments[i];
hatch.addBoundary(segment);
}