Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
Untrim?
Is there a custom FeatureScript, or some way to do the equivalent of Solidworks Untrim? Right now you can use move boundary to enlarge a surface, and even fill in holes in the surface, but it will often rebuild the control grid in weird ways.
Despite it being clear that the original surface definition is there, I don't see a way to retrieve it using the built in Onshape features.
Here's a surface (from an imported model) with control grid and curvature combs shown:
Here's that surface with Move boundary:
I'm also showing a copy of the original, just to show how weird the new parameterization is relative to where the original surface was, and you can also see that the new surface definition is even more than twice the size of the surface which is visible.
Despite it being clear that the original surface definition is there, I don't see a way to retrieve it using the built in Onshape features.
Here's a surface (from an imported model) with control grid and curvature combs shown:
Here's that surface with Move boundary:
I'm also showing a copy of the original, just to show how weird the new parameterization is relative to where the original surface was, and you can also see that the new surface definition is even more than twice the size of the surface which is visible.
Tagged:
2
Comments
fill the holes using fill, then use replaceFace on the new face and replace with the outer face. if that fails, delete the new face with heal option.
if that fails then you can create patches from the original face using this
the code will attempt to patch. if that fails it recreates the face without inner loops.
To extend the surface to its full extent, is tough if you just want one edge. To do the full surface just call
The boundary bSplineCurves can be tricky. I am working to get that for you now. I will add it later when i figure it out.
Thanks for the FS code. I was hoping this would be much more straightforward. I was assuming that, at least in FS, there would be a few lines of code to create a copy of an existing surface without all the boundary curves. I'm sure you're familiar with Solidworks' Untrim command. I would think doing the Onshape equivalent of SWX Untrim 100% would be just a matter of throwing away the trim curves.
export const baseSurface = defineFeature(function(context is Context, id is Id, definition is map) precondition { annotation { "Name" : "Face", "Filter" : EntityType.FACE, "MaxNumberOfPicks" : 1 } definition.face is Query; } { var bsData = evApproximateBSplineSurface(context, { "face" : definition.face }); opCreateBSplineSurface(context, id, { "bSplineSurface" : bsData.bSplineSurface, });
});this will extract the full underlying surface. If the face is a bspline surface then evApproximateBSplineSurface still returns the true non approximated surface. If it is revolved, then for some reason onshape does approximate it still without using the underlying revolve bspline curve.