-
Notifications
You must be signed in to change notification settings - Fork 17
body.imprint_projected_curves() not working as expected #1622
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @sp-claim - thanks for opening the issue! I will try to investigate on my side as soon as I can and get back to you :) |
@RobPasMue Projecting the circle in Z-Direction works. The orientation of the plane the sketch is without any impact. XZ Plane -->Y-Projection--> Line on faces with Y Normal vector XY Plane -->Z-Projection--> circle on face with Z-Normal vector This seems odd to me. Seems like the sketch orientation is always the same after passing the object to the function. |
@RobPasMue @sp-claim i believe found the issue here, the plane is hardcoded on the backend to be the XY plane, this was an oversight for an original workflow. We must change the ImprintCurves, ProjectCurves, and ImprintProjectedCurves proto's to include a plane and use the provided plane. |
FYI @sp-claim - we are working on a fix for this but sadly it won't be available on your side earlier than 25R2 since it implies modifying the server shipped with the Ansys installation. Sorry for the inconveniences! |
Thx for the info. The same happened when using spaceclaim it's not only the server.
04.02.2025 12:46:30 Roberto Pastor Muela ***@***.***>:
…
FYI @sp-claim[https://github.com/sp-claim] - we are working on a fix for this but sadly it won't be available on your side earlier than 25R2 since it implies modifying the server shipped with the Ansys installation. Sorry for the inconveniences!
—
Reply to this email directly, view it on GitHub[#1622 (comment)], or unsubscribe[https://github.com/notifications/unsubscribe-auth/BOOH3RVSRWN32MI4DKJJPR32OCSBNAVCNFSM6AAAAABVCXEOJWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMZTGY3DOMJYGY].
You are receiving this because you were mentioned.
[Verfolgungsbild][https://github.com/notifications/beacon/BOOH3RQR4O7V533UY6HGXLL2OCSBNA5CNFSM6AAAAABVCXEOJWWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTU47KJHE.gif]
|
Hi @sp-claim! The server we mention is shared by all products (SpaceClaim, Discovery and the Geometry Service). Consequently, it will also be fixed on SpaceClaim. Thanks for bringing the problem to our attention! |
🔍 Before submitting the issue
🐞 Description of the bug
Hi,
I am using Ansys geometry service 2024R2 with Python 3.13 and ansys-geometry-core 0.76 & PrimeMesh. Everything has been installed on a clean environment.
I have the following problem:
I created a body and tried projecting a sketch onto it. The sketch consits of a single circle. But if I try to project onto the body it results in just a line.
If I create a surface from that sketch everything looks normal. It is unclear if its a bug right now.
📝 Steps to reproduce
from ansys.geometry.core import launch_modeler_with_spaceclaim
from ansys.geometry.core import launch_modeler_with_geometry_service
from ansys.geometry.core import launch_modeler
from ansys.geometry.core.materials import Material, MaterialProperty, MaterialPropertyType
from ansys.geometry.core.math import UNITVECTOR3D_Z, Frame, Plane, Point2D, Point3D, UnitVector3D, UNITVECTOR3D_X,
UNITVECTOR3D_Y
from ansys.geometry.core.misc import UNITS
from ansys.geometry.core.sketch import Sketch
from ansys.geometry.core.misc import DEFAULT_UNITS, Distance
modeler = launch_modeler(mode="spaceclaim",version=242)
pxy=Plane(origin=Point3D([0,0,-100],unit=UNITS.mm),direction_x=UNITVECTOR3D_X,direction_y=UNITVECTOR3D_Y)
s1=Sketch(pxy)
s1.box(Point2D([1550/2,0],unit=UNITS.mm),1550,100)
design=modeler.create_design("smirror")
mbody=design.extrude_sketch("mb",sketch=s1,distance=Distance(200,unit=UNITS.mm))
cylplane=Plane(origin=Point3D([0,0,0],unit=UNITS.mm),direction_x=UNITVECTOR3D_X,direction_y=UNITVECTOR3D_Z)
s2=Sketch(cylplane)
s2.circle(center=Point2D([50,0],unit=UNITS.mm),radius=Distance(10,unit=UNITS.mm))
face=design.create_surface("cyl",sketch=s2)
testface=mbody.imprint_projected_curves(direction=UNITVECTOR3D_Y,sketch=s2,closest_face=True)
design.export_to_scdocx()
modeler.close()
💻 Which operating system are you using?
Windows
📀 Which ANSYS version are you using?
2024R2
🐍 Which Python version are you using?
3.13
📦 Installed packages
The text was updated successfully, but these errors were encountered: