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 curve

Started by roger_c130, June 20, 2012, 02:37:10 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

roger_c130

My absence didn't last long.  I'm presently trying to remove unwanted sections of a solid form lying between two curved surfaces.  I have attached a file showing how I go about making the slice.  The problem arises when I remove those little black polygons.  To remove them I have to solid explode the form and solid define when I'm finished.  The slice is exactly shaped the way I need however, the arrow points to a polygon that turns out to be transparent.  When shading is applied everything looks OK but when the piece is placed in it's home, the shading just in that area disappears and you see the background.  Suggestions or corrections please.

MarkX

It seems to me that its transparent because there is nothing there. That is there is no mesh or grid over the transparent spot. Either the cut failed to create the surface, or you deleted it after the cut.

Mark

roger_c130

Hi Mark.  The only things I deleted were the black polygons.  There never was a grid.  After getting the transparency I tried converting the area to a plane but the curves killed that idea.  I'm going to try to fill the area by hashing something in there.

roger_c130

Hashing!!  No, I'm not a user I was thinking of hash marks in the area.  Just tried hatching and can't unless I'm missing something. 2D only.  Got it.  I traced around the area using same color but different layer.  I added a line to create a small rectangle at the top giving me two surfaces.  I then used Surface Patch on both.  Worked great.  Moved them into the form and declared it a solid.  Shading worked perfectly.  The only reason I tried it was the fact the manual was laying right in front of me opened to Surface Patch which I used on a previous form.

Rob S

Wow, an entirely new and previously untried way to figure out what to do - the manual!!

Definitely need to mark this one down for the record.

Maybe it is useful after all  ;D

User since forever

magic

Hi Rob,

QuoteWow, an entirely new and previously untried way to figure out what to do - the manual!!

And now with version 22 you can actually access it via Start > All Programs > DesignCAD 3D MAX 22 > DesignCAD 3D Max 22 Reference Manual. You don't have to search for it in the Programs folder. :) ;) :D
It's a kind of magic!




MarkX

Quote
The only reason I tried it was the fact the manual was laying right in front of me opened to Surface Patch which I used on a previous form.

Did you print your own manual?

roger_c130

The only manual I have in print was obtained when I upgraded to V18 some years back.  I certainly didn't get the whole idea on solving the transparent problem from the manual.  It was your question on whether I had deleted something I shouldn't have like a grid.

Dr PR

#8
Roger,

You are seeing a problem that used to be very common in early versions of the program, but I haven't seen it for quite a while.

The black rectangles should be the cut surface of the solid. However, the program deleted some that should be there, and left some that shouldn't.

In the attached picture I have filled in the missing facets, in blue and cyan. You could explode the solid, detete the stray facets, and then redefine as a solid as you described.

Your technique of using Surface Patch will work, but it is difficult to get the facets to line up correctly with the existing facets. Also, the surface patch will not generate the same surface as your original curved surface.

****

Another way to do the "trim" would be to create a solid from your original surface, then use solid subtract to remove the unwanted parts of the original solid. Solid Subtract has been working (almost) perfectly for a long time.

****

I, too, keep my V18 Reference Manual on my desk. I used to buy a boxed version every time a new one came out just to get the printed manual.

Phil
DesignCAD user since 1987

roger_c130

Thanks Phil.  I have attached a jpg file showing the steps I took.  First, I decided to make two polygons.  One as the small rectangle at the top and the second the remaining 4 sides (including the line I added to make the rectangle).  = two four sided polygons. I traced each line from the original form keeping the curves produced by the slice.   Surface Patched each one.  Nr of facets I didn't even think about changing from a previous use.  Thats why there are so many.  The process seems to have worked just fine.  Grouped the two shapes and moved them to the form over the transparent area.  Declared the form a solid again and shading looks fine.  More than one way to skin a cat I guess.

Lar

#10
Quote from: roger_c130 on June 22, 2012, 07:20:50 AM
 More than one way to skin a cat I guess.
My way of skinning that cat is to take the political correctness out of a bit of Phi'sl advice, ie, never use 'slice by curved surface' (still bugged up to v22.0) and use 'solid subtract' instead (usually always works  ;)  ). <<**see EDIT below**>>


Attached is a bitmap and dcd file of my solution.

At first I created the cutting solid with all the many facets of the original curved surface (still in the file) but dcad magically cleaned up the subtraction by getting rid of all the unnecessary facets that were laying in the same plane. So, for my bitmap presentation I recreated the cutting solid without the many facets, ie, by just extruding the curved profile the full length of the solid being cut. Note that in newer versions of dcad the two solids can be the same length. Previously (and in many other programs) the cutting solid had to be longer than the one being cut. It still sometimes fails in dcad, in my experience.
**EDIT: I later extruded the curved line (so as not to get the unnecessary facets) and used this as the curved slicing surface and it worked perfectly. So, maybe rather than never using this command we should simplify the cutting surface as much as possible**

Also, I had to recreate the solid to be cut since roger's attached file came with the solid already sliced.

In terms of the 'slice by curved surface' bug what seems to happen is that the algorithm sometimes chooses the wrong side of a new surface and adds that to the resulting solid. Eg, in roger's file you can move the points of the bad surfaces inward (snap to points of the proper new surfaces), and sometimes delete the extra inner points, to get the correct result.

Lar
sorry: the dcd file can not be attached...

roger_c130

Got it.  Thanks Lar.  I may go back and do it that way.  I've used Solid Subtract a heck of a lot in this project but the fact of having curved surfaces just led me think Slice by Curve.

Dr PR

Lar,

Political correctness??

Your method is what I was thinking of for creating a sold "tool" to subtract from the "work piece."

Like you, I am wary of subtracting solids of identical length, so I would have made the extrusion longer and offset a bit at each end of the work piece before subtracting. I have been doing this so long that even if the program is ever fixed to work right I probably will still continue making the tool piece longer.

Phil
DesignCAD user since 1987

Lar

Quote from: Dr PR on June 22, 2012, 10:11:27 PM
Lar,

Political correctness??

Your method is what I was thinking of for creating a sold "tool" to subtract from the "work piece."

Sorry Phil, just messin' wit'ya... <<where's that red smiley with the horns when ya need him>>
Quote from: Dr PR on June 21, 2012, 10:25:02 PM
Another way to do the "trim" would be to create a solid from your original surface, then use solid subtract to remove the unwanted parts of the original solid. Solid Subtract has been working (almost) perfectly for a long time.
...In your post you were being polite about whether to use the Solid Subtract or not but in my post I was being blunt and saying never to use it, since it is still bugged. As you can see in the same post I backtracked that a bit in saying that unnecessary facets in the slicing curve may be what causes 'slice by curve' to misbehave, so your politeness is justified.

Quote from: roger_c130 on June 22, 2012, 10:36:57 AM
I've used Solid Subtract a heck of a lot in this project but the fact of having curved surfaces just led me think Slice by Curve.
I know the feeling, roger. Creating a solid from an existing curved surface becomes a lot of work after a long day.

Lar

roger_c130

I initially made the curved surface the exact width of the piece.  The slice wouldn't work at all.  Kept getting error message about not covering the piece.  Widened the curve by .01 either side and the slice worked albeit a bit strange.