-
Notifications
You must be signed in to change notification settings - Fork 22
Description
🔍 Before submitting the issue
- I have searched among the existing issues
- I am using a Python virtual environment
🐞 Description of the bug
Running the below codes causes a seg failure. It happens whenever this part of the test runs against a Dockerized version of the service, meaning that something is wrong (maybe missing DLLs in the container, different versions between local and remote etc.)
📝 Steps to reproduce
modeler = Modeler(host="127.0.0.1", port=50051, timeout=10)
sketch = Sketch()
p1 = Point2D([0, 0])
p2 = Point2D([10, 0])
p3 = Point2D([10, 5])
p4 = Point2D([0, 5])
sketch.segment(p1, p2)
sketch.segment(p2, p3)
sketch.segment(p3, p4)
sketch.segment(p4, p1)
design = modeler.create_design("SimpleFaceDesign")
surface = design.create_surface("SimpleFace", sketch)
grpc_client = modeler.client
geometry_commands = GeometryCommands(grpc_client, _internal_use=True)
Failing to extrude single face
circle_sketch = Sketch()
circle_sketch.circle(Point2D([20, 20]), 5.0)
circle_surface = design.create_surface("CircleSurface", circle_sketch)
The square surface needs to be rotate to make some of the extrustion not valid
surface.rotate(Point3D([0, 0, 0]), UnitVector3D([0, 1, 0]), np.pi / 2)
modeler.geometry_commands.revolve_faces_by_helix(
circle_surface.faces[0],
Line([0.5, 0.5, 0], [0, 0, 1]), # Axis line
UnitVector3D([1, 0, 0]), # direction
5, # height
1, # pitch
np.pi / 4, # taper_angle
True, # right_handed
True, # both_sides
)
💻 Which operating system are you using?
Windows
📀 Which ANSYS version are you using?
261
🐍 Which Python version are you using?
3.13
📦 Installed packages
from ansys.geometry.core.modeler import Modeler
from ansys.geometry.core import *
from ansys.geometry.core.designer.geometry_commands import GeometryCommands
from ansys.geometry.core.sketch import Sketch
from ansys.geometry.core.math import Point2D, Point3D, UnitVector3D
from ansys.geometry.core.shapes import *
import numpy as np