-
-
Notifications
You must be signed in to change notification settings - Fork 385
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
Convert topoDS Face to GeomSurface with BRep_Tool.Surface returns unexpected result #1340
Comments
I dont understand the workflow: you need to convert a topods_face to a geom_surface and then back to a topods_face? |
The code was an attempt to illustrate the problem, indeed not reflecting the work flow. The work flow is as follow: two independant apps are running. -The second app works with geom surfaces. It was not suppose initially to deal with toposds faces. So there is a need to make the bridge between the two, which explains why to convert from toposds face to geom surface. The only reason why the surface is then converted to toposds face again was to visualise in the jupyterlab renderer. |
In case additionnal details are needed, please let me know @tpaviot |
So far I could not find how to go from a trimmed BSpline surface to topods face, and then convert it back to a geom surface without losing the trimming information; After some more researches, I found more info here: The basic issue is that you are creating new Face without any bounds - you have to reuse Wires and Edges of original Face and create new ones adopted to new surface. This means that you'll have to manually re-create 2D curves on Edges within new UV surface range or use some tool re-projecting 3D curve onto new surface to create P-curves, and then make new Face with these new Wires + new surface It is not possible in my case, the geometries are too complicated. The only way to move forward would be to find a way to trim the GeomSurface (by another surface) without using the TopoDS tools. It would eliminate the need to convert it back afterwards. Anyone knows how to do that? |
Hello,
Here what I am trying to do: first a
Geom_Surface
is split by an edge usingBOPAlgo_Splitter
. One of the resultingtopoDS_Face
shall be converted toGeom_Surface
with the help ofBRep_Tool.Surface
.Any idea?
Have a nice day.
The text was updated successfully, but these errors were encountered: