How to change the number of segments within an single arc? #6656
-
|
Hello to everyone, I am making a band in Maxwell. for the inner arc I would need a high number of segments, but the other sides should remain intact. xsection_num_seg does not work. Is there any other method than defining two coaxial circles, subtracting the inner cirlece and splitting the remining ring to a given lenght? BR, points_for_region=[ |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Hi @HarriVihriaelae, Here an example that contains a bunch of polylines with 2 angular arcs: When you want to create a geometry out of a group of ploylines you define a list of PolylineSegments in the segment_type argument of the create_polyline method. Hope this helps. |
Beta Was this translation helpful? Give feedback.
-
|
Hello Anur, Thank you very much for yout input. I expressed myself unclear. I wanted to make an inner angular arc a given no. of segments, here haned as "segments" . I came up myself with this code: from pyaedt.modeler.cad.polylines import PolylineSegment start_point = ["(r_o+5mm)cos(2pi/partm)", "(r_o+5mm)sin(2pi/partm)", "0mm"] band_id=m2d.modeler.create_polyline( |
Beta Was this translation helpful? Give feedback.
Hi @HarriVihriaelae,
Here an example that contains a bunch of polylines with 2 angular arcs: