<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Dear Gmsh Members,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I was wondering if anyone can recommend a way for me to create Transfinite Surfaces with the OpenCASCADE kernel which then can be relocated in space (translated/rotated) while maintaining the Transfinite Mesh defined on original curves/surfaces or created through
 extrusion?</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
My reasons for using OCC is to piece together volumes (various pipe extrusions), then remove internal surfaces between them with BooleanUnion, and finally delete the Volume (and ends) to leave a surface shell.<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Here, a MWE:<span><br>
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span><br>
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span><span style="font-family: Consolas, Courier, monospace;">// UNITS mm</span><span><br>
</span>
<div><span style="font-family: Consolas, Courier, monospace;">SetFactory("OpenCASCADE");</span><br>
</div>
<div><span style="font-family: Consolas, Courier, monospace;">Geometry.CopyMeshingMethod=1;</span><br>
</div>
<div><span style="font-family: Consolas, Courier, monospace;">Mesh.CharacteristicLengthMin=0.1;</span><br>
</div>
<div><span style="font-family: Consolas, Courier, monospace;">Mesh.CharacteristicLengthMax=0.3;</span><br>
</div>
<div><span style="font-family: Consolas, Courier, monospace;"><br>
</span></div>
<div><span style="font-family: Consolas, Courier, monospace;">theta = Pi*30/180;</span><br>
</div>
<div><br>
</div>
<div><span style="font-family: Consolas, Courier, monospace;">// Create OCC disk, define circumference as Transfinite Curve and Extrude</span><br>
</div>
<div><span style="font-family: Consolas, Courier, monospace;">Disk(1) = {0, 0, 0, 0.5};</span><br>
</div>
<div><span style="font-family: Consolas, Courier, monospace;">Transfinite Curve{1} = 30;</span><br>
</div>
<div><span style="font-family: Consolas, Courier, monospace;">Extrude {{1, 0, 0}, {0, -10, 0}, theta} {</span><br>
</div>
<div><span style="font-family: Consolas, Courier, monospace;">  Surface{1}; Layers{20}; Recombine;</span><br>
</div>
<div><span style="font-family: Consolas, Courier, monospace;">}</span><br>
</div>
<div><span style="font-family: Consolas, Courier, monospace;">Extrude {{1, 0, 0}, {0, 10, 0}, theta} {</span><br>
</div>
<div><span style="font-family: Consolas, Courier, monospace;">  Surface{1}; Layers{20}; Recombine;</span><br>
</div>
<div><span style="font-family: Consolas, Courier, monospace;">}</span><br>
</div>
<div><br>
</div>
<div><span style="font-family: Consolas, Courier, monospace;">// Transfinite Cyclinder Surface Mesh is lost with Translate, Rotate or Affine,</span><span style="font-family: Consolas, Courier, monospace;"> despite Geometry.CopyMeshingMethod=1 being set, e.g.:</span><br>
</div>
<span style="font-family: Consolas, Courier, monospace;">Affine {Cos(theta),Sin(theta),0,0, -Sin(theta),Cos(theta),0,0, 0,0,1,0} {Volume{1,2};}</span></span></div>
<br>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Many Thanks,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Will.<br>
</div>
<div>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<p style="margin-top: 0px; margin-bottom: 0px;"><span style="background-color:white">--</span></p>
<p style="margin-top: 0px; margin-bottom: 0px;"><span style="background-color:white">William Logie<br>
PhD Candidate<br>
Research School of Engineering<br>
The Australian National University<br>
Canberra ACT 260<i>1</i> </span></p>
</div>
</div>
</div>
</body>
</html>