DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Slice by curved surface (surface from "iges" file")

Started by Hull20, July 21, 2008, 06:55:14 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Hull20

I'm new in this forum. In my opinion the possibility to slice a solid by surface, obtained from an imported "iges" file, would be very useful for users. I try to explain, better, what I mean. I'd like to have in DC the capability to cut a solid with a curved surface with patchs, obtained from an "iges" file.


crckrjck

In fact you can.

Here is a solid sliced by a DC surface exported as an iges and imported back in.

The surface has to completely exceed the extents of the solid.

Since I used the solid box to create 2 curved lines on the front and rear face and surface connect them for the surface to export, I had to zoom (scale in all directions from center) the imported iges surface by 1.02 (arbitrary) before the slice so it exceeded the box.

V18.3

;D

Hull20

Dear crckrjck,

thank's for reply! My problem is connected with an iges file created by an other program (hull creator). By DesignCAD I can import the hull iges surface constituded by several patchs. After, by DC, I create a solid that I want to cut with the surface. This has been impossible, for me. Could it be because of the iges file cames from an other program? If I send you my imported surface and my solid, could you try to investigate why it doesn't work?

Thank's!

DrollTroll

The Slice By Curved Surface command requires that the cutting surface be one continous surface object (i.e. one "grid" or "plane" in DesignCAD terms). If your cutting surface is comprised of multiple parts, the command won't work.

The surface also has to extend beyond the bounds of the part being cut by the surface -- DesignCAD can't extrapolate from a partially-covering surface.
25 years with DesignCAD

Hull20

DrollTroll, you have hit the target! This is the reason of I posted my argument in FeatureRequests. Same years ago, I'm not sure, we have discussed about this argument. In my opinion, the possibility to cut a solid by a "cutting surface comprised of multiple parts", would add to DC a very powerful feature! How many possibilities are there that this command will be added in a new DC version?

DrollTroll

QuoteThis is the reason of I posted my argument in FeatureRequests.

D'oh! My context evaluator malfunctioned.
25 years with DesignCAD

Bob P

Quote from: DrollTroll on July 23, 2008, 10:47:58 AM
QuoteThis is the reason of I posted my argument in FeatureRequests.

D'oh! My context evaluator malfunctioned.

Sounds like a memory overflow problem to me.

I get them all the time...

Dr PR

Hull20

Try this - the idea is to make the surface into two solids and subtract them from two copies of the solid to be cut. This will produce two solids from the original.

1. Select all of the parts of the surface you want to use as the cutting surface.
2. Make a copy of it.
3. Select one copy and extrude it in a direction "perpendicular" to the plane of the surface to create a new "tool" solid.
4. If there are multiple parts to the "tool" select them all and use "Solids/Solid Define" to combine them into a single solid.
5. Select the other copy and extrude it in a direction opposite to the first extrusion to create another "tool" solid.
6. If there are multiple parts to the "tool" select them all and use "Solids/Solid Define" to combine them into a single solid.

Now you have two "tool" solids that can be subtracted from the solid to be sliced.

7. Select the solid to be sliced, make a copy (N), and place it exactly on top of the original.
8. Position the two "tool" solids where you want to make the slice on the original solid.
9. Subtract the first "tool" from one copy of the solid.
10. Subtract the second "tool" from the other copy of the solid.

You now have two pieces of the original solid that are "sliced" by the surface.

It is a lot more work than just a single slice, but it works.
DesignCAD user since 1987

Hull20

Considering that, in my case, the cutting surface (it's a semihull of ship) is composed by thousand patchs (about),  the work would be very frustrating with many possibilities to do mistakes!
When a command to do all with one or two clicks?

Thank's!

Dr PR

Hull20,

I agree that you don't want to deal with multiple solids. However, I would give it a try to see if defining the extruded "tool" solids to be one solid does the trick.

One problem with DesignCAD surfaces ("grids") is that you can't edit them - at least as grids. I do define grids to be solids and then perform solid subtracts with "tool" solids, and this works. However, the resulting surface is no longer a grid but a huge number of individual planes. Even so, I have selected all of the resulting pieces and defined them to be a solid and it works OK. Making them a solid greatly improves rendering.

If you are desperate to continue you could try creating a large Plane perpendicular to the long axis of the hull and then positioning it at regular intervals along the hull surface and use the Surface Intersect function to generate a series of equally spaced frame lines. Then you can stretch a new surface over these lines in DesignCAD.

See my www.okieboat.com CAD modeling page for some examples of how well this works. The resulting hull surface has been "drilled" in several places by defining the grid to be a solid and then subtracting a solid "tool" from the hull solid/grid.
DesignCAD user since 1987

Hull20

DrPR,
thank you! I tested to create, for each patch componing the hull, a solid. After, using "Solid Exclusive Or" comand, I can model the volume inside the hull surface (defined by .igs file). The long work could be reduced, considerably, with a VB program.
Would be it possible to extract, from DC database, the number of each "patch" componing the iges grid and the coordinates of points componing the patch?
Is it necessary, for future, to move this subject to General Discussion or to SDK argument or to an other place?

Greetings!

Dr PR

Hull20,

You might try posting the BasicCAD/macro question in the Help part of the forum. There are several folks who are very experienced with macros and extracting elements from DesignCAd files.
DesignCAD user since 1987

cavelamb

Quote from: Dr PR on July 26, 2008, 10:24:23 AM
Hull20

Try this - the idea is to make the surface into two solids and subtract them from two copies of the solid to be cut. This will produce two solids from the original.


Worked like a champ, Champ!
Although it did produce a few of thoes jagglies around the cut edge.
But not bad at all.
Thanks

Richard

Dr PR

Richard,

This works pretty nicely in DC15 and later versions, but it is still not perfect. However, if you had struggled with this in earlier versions you would really appreciate how it works now! You used to get all sorts of strange lines and planes that had to be cleaned up by hand.

You can edit the grids or solids in Point Select mode ( press "CTRL 1" to toggle in/out of Point Select mode). When you select an object every point will be shown with a small square. You can then move each point individually. This way you can smooth some of the jaggies. You can also stretch the grid/solid to make it blend into other surfaces - this can be a lot of work!

One other way to clean up cut grid edges is to add polygons to fill in the gaps. Then select the whole bunch of grids and polygons and define them to be a solid (Solid/Solid Define) to get them to act as a single object and render correctly. Sometimes the new polygons don't render the same color as the grid - even if you were drawing with the same color as the grid. If this happens select the combined solid and reassign the color.
DesignCAD user since 1987