Page 1 of 1

There's a Hole in My Donut

Posted: Sun Sep 29, 2019 8:34 pm
by Matt_A
Sometimes you might want to have a filled object with a hole in it.
d1.JPG
d1.JPG (40.61 KiB) Viewed 38047 times
But PowerCADD is reluctant...
d2.JPG
d2.JPG (23.76 KiB) Viewed 38047 times
With two objects, the donut and the hole, draw a third object, a slicer. I keep mine thin. It must overlap the donut object and the hole object, and extend past the donut to the exterior.
d3.JPG
d3.JPG (25.42 KiB) Viewed 38047 times
.
Now use the WildTools Combine tool to add the slicer to the hole.
d4.JPG
d4.JPG (25.26 KiB) Viewed 38047 times
...and the WildTools Clip tool to subtract the new (slicer+hole) object from the donut.
d5.JPG
d5.JPG (25.3 KiB) Viewed 38047 times
and delete the slicer..
d6.JPG
d6.JPG (24.97 KiB) Viewed 38047 times
Reshape the nearby points on the donut to close the gap.
d7.JPG
d7.JPG (24.66 KiB) Viewed 38047 times
d8.JPG
d8.JPG (24.2 KiB) Viewed 38047 times
Now you can give the donut a fill. I find it's best to set the line to NIL
d9.JPG
d9.JPG (17.38 KiB) Viewed 38047 times
and create new edges if I want to define them with lines. Otherwise PowerCADD will put a line over the connecting channel.
d10.JPG
d10.JPG (23.78 KiB) Viewed 38047 times
you can add a gradient and some highlights if you have a hankering..
d11.JPG
d11.JPG (38.8 KiB) Viewed 38047 times
The technique is not limited to drawing confectionary however.

There's a Hole in My Donut

Posted: Fri Nov 01, 2019 6:15 am
by huc
Two other Options to get the filled donut that I believe uses fewer steps and is quicker

Option A: WildTools Thicken Tool
With the two circles drawn (donut edge and hole):
1. Option+Click on WTools Thicken Tool and set to INTERACTIVE
2. Drag from Outer donut circle toward donut hole
3. Press "S" for surface snap and the donut (sans hole) is filled with a new polygon

Option B: PowerCADD Paint Bucket Tool
With the two circles drawn (donut edge and hole):
1. Select the Paint Bucket tool
2. Click inside, between the donut and the hole
3. The donut is filled

Render "to taste" as described in original post :D

No need to draw any extra objects nor reshape the polygon to close it up.

Personally, I find the WT Thicken tool creates a cleaner polygon with fewer vertices but both methods work. In particular, the Polygon created with WT Thicken has fewer crossing segments which is helpful when applying things like gradients. I often find it useful to use Tool menu > Polygon... > Thin Polygon (or Distribute points then Thin depending on the complexity of the shape) as it helps reduce the # of vertices and can eliminate problems if exporting to PDF, particularly if reducing drawings. PDF historically doesn't like vertices that cross over each other and when creating the Bézier curves in some cases things get a little messed up

Always nice to have more than one way to skin a cat!

Pity that PCADD lost the ability to do that same operation with Hatching. In earlier versions, it was possible to just select the two objects (donut and hole) and choose HATCH... it would hatch the donut, leaving the hole.