Affine transformations and the Duplicata{..} command
- It would be useful to reflect in the manual that current version of OCC changes entity's IDs during affine transformations.
- Also, it would be useful to add additional explanation concerning the Duplicata command. Namely, if we apply the Duplicata (Occ) for more than one object with common low order entities. In this case the Duplicata will create extra copies of such elements. Extra copies would be deleted by the BooleanFragments command for arguments of the Duplicata command.
An example for Duplicata.
SetFactory("OpenCASCADE");
Point(1)={0,0,0};
Point(2)={1,0,0};
Point(3)={2,0,0};
Point(4)={2,1,0};
Point(5)={1,1,0};
Point(6)={0,1,0};
Line(1)={1,2};
Line(2)={2,3};
Line(3)={3,4};
Line(4)={4,5};
Line(5)={5,6};
Line(6)={6,1};
Line(7)={2,5};
Curve Loop(1)={1,7,5,6};
Curve Loop(2)={2,3,4,7};
Surface(1)={1};
Surface(2)={2};
Translate{0,0,1}{Surface{1,2};} // case 1
//Translate{0,0,1}{Duplicata{Surface{1,2};}} // case 2
Next picture shows geometries for case 1
for case 2
and after case 2 + BooleanFragments{Surface{3};Delete;}{Surface{4};Delete;}
Thank you.
Edited by Michael Ermakov