HInts, Tips and Solutions

Q. How can I Crop and Slice using a non-convex mask during the export?

Non-Convex Mask Polygons

Previous Victory Process releases have supported convex polygon cropping, slicing and mirroring support. It is also now possible to use non-convex polygons for either cropping or slicing.

In Figure 1 an example of a non-convex polygon crop and slice in the cell mode victory (delaunay) export is given. Note that the deck syntax is identical to the convex case.

Figure 1. Victory (delaunay) crop and slice mask with a non-convex polygon mask.

 

Syntax:

specifymaskpoly maskid=1  istransparent=false p=”5.0,4.75”  p=”5.75,3.25”

p=”7.25,2.25” p=”5.75,1.75”  p=”5.0,0.25” p=”4.25,1.75”  p=”2.75,2.5” p=”4.25,3.25”

export victory(delaunay) structure=delaunay_crop_star.str  crop.maskid=1

max.size=0.5

export victory(delaunay)  structure=delaunay_slice_star.str  slice.maskid=1

max.size=0.5

 

In Figure 2 another example of a non-convex crop and slice in the victory(delaunay) export is given.

Figure 2. Victory (delaunay) crop and slice mask with a non-convex polygon mask.

 

Syntax:

specifymaskpoly maskid=1   istransparent=false p=”5.0,0.5”   p=”6.0,0.5” p=”6.0,1.0”

p=”8.0,1.0” p=”8.0,2.0” p=”6.0,2.0” ? p=”6.0,3.0” p=”8.0,3.0” p=”8.0,4.0”

p=”6.0,4.0” p=”6.0,4.5” p=”5.0,4.5”

export victory(delaunay) structure=delaunay_crop_block.str  crop.maskid=1

max.size=0.25

export victory(delaunay) structure=delaunay_slice_block.strslice.maskid=1

max.size=0.25

 

2D Crop, Slice and Mirror

It is possible to perform the crop, slice and mirror (process and/or device) in the 2D exports.

An example of this functionality is given in Figure 3, where a crop and slice is shown. It should be noted that the coordinates specified in the polygon mask are those in the 2D export and not the 3D grid that the export is taken from (i.e., only X/Y need to be specified even though this cutplane is XZ).

Figure 3. Export 2D in process mode.

 

Syntax:

specifymaskpoly maskid=1   istransparent=false p=”5.0,4.75”   p=”5.75,3.25”

p=”7.25,2.25” p=”5.75,1.75” p=”5.0,0.25”  p=”4.25,1.75” p=”2.75,2.5” p=”4.25,3.25”

export 2D Y=3 structure=star_crop_2d.str crop.maskid=1

export 2D Y=3 structure=star_slice_2d.str slice.maskid=1

 

Conclusions

The export cropping and slicing operations provide a further level of control over the final structure exported from Victory Process. A standard export will retain the entire simulated structure. The cropping operation allows the extraction of a sub-section of this structure, either as a smaller cuboid (box crop), or a convex polygon (mask crop). This generalizes the exports to dump any output shape.

The slicing operation is similar to cropping, yet the part of the structure outside the slicing box or mask is also kept. The part outside is relabeled with unique region numbers to the part inside, and the entire structure is still dumped by the export. This allows for simple visualization of the internal parts of a structure in TonyPlot. In addition, multiple regions can now exist within the same material, allowing different properties to be set for different regions.