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.

Olympic Circles trimming and other options

Started by samdavo, November 29, 2013, 05:26:25 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

samdavo

Here's a topical "trimming and lateral thinking" exercise - and practice makes if not perfect, then better 

"Good, better, best - never let it rest - until your good is better - and until your better's best."
... John Furphy, Water-supplier to the Anzac troops :) 
http://www.furphys.com.au/the-furphy-water-cart.html

The Olympic flag - which is sorta planar, yet with trimming going on at intersections:-

QuoteThe Olympic flag ... has a white background, with five interlaced rings in the centre: blue, yellow, black, green and red ... This design is symbolic ; it represents the five inhabited continents of the world, united by Olympism, while the six colors are those that appear on all the national flags of the world at the present time.

— Pierre de Coubertin
QuoteUpon its initial introduction, Coubertin stated the following in the August, 1912 edition of Olympique:
"...the six colours [including the flag’s white background] thus combined reproduce the colours of all the nations, with no exception. The blue and yellow of Sweden, the blue and white of Greece, the tri- colours of France, England and America, Germany, Belgium, Italy, Hungary, the yellow and red of Spain next to the novelties of Brazil or Australia, with old Japan and new China. Here is truly an international symbol."

Pretty simple exercise, but even there, there are different ways to do it.  (2 cents).
Each of those circles has been drawn with centre and a radial line due east.

On another topic, and hopefully to start some discussion in a few different directions,  but which option makes more sense?

a) WIDE LINE - I suspect not, because of the trimming at intersections ... unless ... 
b) Maybe Wide lines simply drawn over each other,  (in 2D, i.e. with the same Z),  using "Move to front" (?) maybe that would work?  (although pretty useless in 3D work, or drawing flags etc)
(and hint, lol in my experience, sometimes "move to front" really means "move to back" - hope I'm right - and I'm guessing that's something to do with the direction of the z axis)
(edit , but maybe that's a "furphy" = Australian / New Zealand term for an inaccurate rumour that started whilst standing around a water cart in Anzac Cove)
c)  Would DOUBLE LINES be of any use?  - would this have the same problem as a)?
d)  HATCH-SOLID between two trimmed circles, an ID and an OD.   
- and I believe there is a way to hatch the annular gap(?) maybe someone could confirm (edit - what I meant was that I was aware of a complicated way to hatch an area by going around the part-circle OD clockwise, and around the part-circle ID anticlockwise - but I find that "hatch-fill" is a dead simple alternative)
e) MP = Make plane, of the trimmed annular rings, then in 3D they will render - even if same Z (easier than hatching I suspect) 
f) MP = Make Planes (plural) with small difference in Z, (in fact twists) - again they would render in 3D, and no need to trim
g)  Any other options?

PS there have been a few smiles generated by the Russian torch run
1) one runner went through a tunnel and the light blew out - and, on emerging from the tunnel,  he asked an onlooker for a match.  Fortunately he must have been a smoker, and they were back in business.
2) and this week, a runner caught fire - thank the stars (or maybe the Czars?) noone hurt. 
Hopefully they don't set fire to the Space Station - or suck up all the oxygen.

samdavo

#1
PS I should add that there's a better way.   (now that I look into it).
(I.E. hatch fill - sometimes easiest with preset point mode)

Which is how I did the following two-toned version :)
(PS nothing to do with trims btw.  But very fast/easy)

samdavo

#2
...
Improvised :)


samdavo

#3
As I mentioned above, there's a fair bit of Hatch-Filling going on, after you set Hatch to WIN-SOLID.   (and often easiest using Preset Point mode, which lets you select a stack of areas to be coloured in, first, then click hatch fill).

I post the dcd, and point out that I have imported square jpegs (also posted) which need to be trimmed to circles - I have done this with annular black borders.   

Unfortunately, I try to send any clashes to the back ( using Edit \Selection Edit \Display Order) but there seems to be a limit on that score, with so many clashes.   And in the end a lot of the black annular borders show up in the final view.  Still they look a bit like shadows :)

The only other thing I'll mention, (and I apologise that this is all so deadly basic - but who nose, someone out there might be a slower learner than me :) ) but if you want black to show as black on a black screen, you can't use RGB= 000.000.000,  you have to go to say 006.006.006.  ( 2 cents). 

Likewise for white on a white screen, I guess you would need 249.249.249 , i.e. 6 short of 255.255.255.  (Although white jpegs show white on any background - eg the border of the weightlifter).

samdavo

#4
And finally, here are all the circles and hatching that go into that patchwork - this time on a grey background. 
Three jpegs in all (the archery target and the cycle wheel are drawn), plus their black borders.

It's pretty tricky to get them all to "go to the back".  I post that jpeg above in case anyone out there is crazy enough to want to experiment.

PS Anyone remember when Olympic cyclists used spoked wheels ? :)  - probably back in 1912 when that 5-ringed flag was designed lol.

magic

Hi Sam,
Quote from: samdavo on November 30, 2013, 01:13:25 PMPS Anyone remember when Olympic cyclists used spoked wheels ? :)  - probably back in 1912 when that 5-ringed flag was designed lol.
They still do in road cycling (except for time trial) and mountain bike.
It's a kind of magic!




samdavo

Well, thar ya go ! :)   I should pay more attention.   Cheers m8.

samdavo

This thread should really be titled "hatching".

A post by Phil on another thread reminds me of a problem I have with hatching.
Firstly the excerpt from that post :-
Quote from: Dr PR on November 28, 2013, 10:39:04 PM
When you use "Surface Intersect" the program sets a point at the intersection with each edge of the triangles. So where the intersection crosses a rectangular facet you get points at two visible sides of the rectangle and an intermediate point along the invisible hypotenuse of the two triangles that make up the facet.

This can cause real problems if you try to snap to a point on the side of the rectangular facet near a corner. Here the point on the side of the rectangle and the point on the triangle hypotenuse are very close together - they may even display as one point. But you may accidentally snap to the hypotenuse point and not to the side point. This has screwed me up innumerable times!
Phil
In summary, I find that hatching is a right nuisance because it introduces so many points, (even more than show up in "Point Select Mode"), and snapping to a desired point becomes a matter requiring utmost care.

1. Is it possible to somehow "turn those points off"?
2. Is the only way to put the hatching on a hidden layer - and only bring it out when you need it?
3. And what determines the density of those points in any case (eg for WIN-SOLID).   I suspect it has something to do with scale -
4. I add an example of WIN_SOLID on an annulus between circles (not lines), and also ANSi31 (45 degree stripes)  on the annulus and also on a triangle -  the same problem with hundreds of points
5. Note that ANS131 has a point on the end of each sloping line - which don't show up in Point Select Mode - but when you gravity snap near the ends of them, you find them. 

Dr PR

I don't know what controls point density for sure, but it does seem to be related to curvature. Hatching looks like a two step process - first determine the outline of the hatch and then fill in the pattern. For things like the large scale ANSI pattern only the end points of the lines are really needed, but for solid fills a close fit to the curves is necessary to avoid "jaggy" edges and to fill completely between the lines. Therefore, the outline is calculated for the worst case - a solid fill.

For what it is worth, DesignCAD (Prodesign) originally generated only line fill hatches - like a pen plotter would do it, because only pen plotters could create CAD drawings back in the '80s. If you wanted a "solid" fill you had to define the scale (line spacing) and line width so all of the lines overlapped. The problem with this is that what looked like a solid fill when you were zoomed out became individual stripes when you zoomed in. And you had to be careful to put the correct width pen in your plotter - if it was too narrow the hatch fill wouldn't be solid but was just a bunch of parallel lines.

****

You can edit the hatch outline in Point Select mode. Just select a point, move it or delete it. You can also add points to hatches. Sometimes a hatch is too complex and the program doesn't fill in all of the selected area. If so you can manually extend the hatch to fill all of the area.

Phil
DesignCAD user since 1987

samdavo

#9
Thanks Phil -
Amazing how a bit of research goes a long way :)
I have been using ANSi31 for hatching for years, and swearing at the fact that ends of individual lines can confuse gravity-snap.

I now find that WIN-DIAGONAL is identical, but doesn't have that problem.

As an example, imagine you want to hatch the quadrants of a circle to differentiate between top bolts and bottom bolts, as seen in plan.  (well that's what I do anyway lol).   (edit - talking hatch here, not hatch line, or hatch fill)

And you approximate the circle by setting points at 30 degrees, i.e. around a quadrant of a 12-sided polygon for bottom bolt - or 3/4 for a top bolt;

If you refer to the ANSi31 option, looking at points around the perimeter of the hatch that can attract the gravity snap (with this particular scale of hatching) ...

a) for the bottom bolt (gold), you find that there are 4 points at 0, 30, 60 and 90 degrees, and also 12 other (almost random) points at the ends of hatch lines - some very close  to the 30 degree points;

b)  for the top bolt (blue), you find that there are 10 points at 90, 120, 150, 180, 210, 240, 270, 300, 330, and 360 degrees, and also 24 other points which can attract the gravity snap.

If you refer to the WIN-DIAGONAL option, again looking at points around the perimeter of the hatch that can attract the gravity snap ...

c) for the bottom bolt (red), you find that there are 4 points at 0, 30, 60 and 90 degrees, (and no more - i.e. hatch lines do not attract gravity snap) ;

d)  for the top bolt (green), you find that there are 10 points at 90, 120, 150, 180, 210, 240, 270, 300, 330, and 360 degrees, (and no more - i.e. again hatch lines do not attract gravity snap). 

Conclusion - Why would you use ANSi31 when you can use WIN-DIAGONAL (?)
Apologies to everyone else who already knew this lol.
PS It also seems to be more "zoom-savvy" - another advantage.

samdavo

#10
oh WOW !!!

WIN-DIAGONAL can cross-hatch a 3D warped surface !
what a beauty.
(edit - in fact it can hatch a random set of points in 3D, as if you were looking at 2D)

PS For comparison, I also add what happens when you try to hatch a warped surface with ANSi31 (magenta) - basically it doesn't work.

Dr PR

Sam,

That's pretty cool that the WIN-Diagonal will hatch non-planar surfaces and warped surfaces. However, if that one doesn't come back to bite you in the posterior I will be amazed. Non-planar polygons cause all sorts of grief in 3D, and you should avoid them meticulously. I would guess that non-planar hatches may also cause trouble.

Phil
DesignCAD user since 1987

samdavo

In reply #10 (final jpeg) I show a curved hatch.   Turned upside down it is similar to a sail of a square-rigger.
This shows as an opaque surface when rendered, (whether WIN_SOLID  or WIN_CROSS) 

and indeed casts a shadow when shadow is ticked (but doesn't seem to support a shadow from sails above it) - 2 cents.

When seen side-on, the "hatched-sail" has a strange L-shape , inconsistent with the view from behind (with a more curved shape).   Hence, you can quickly make an area look like a surface by hatching it, but inferior to "surface patch" in countless ways :)

Just playing around with boats ok?  :)   

samdavo

By comparison, sails drawn "properly" with surface-patch are infinitely better.  Better shape, better view from other angles, better behaviour with shadows. 

samdavo

#14
Anyway, back to thread -
perseverance wins out in the end :)
(just stick with white background, and circularly trimmed jpegs).

BTW, a fake shadow is dead simple - just hatch an area with WIN-SOLID (or similar).   And this can be applied to any drawing where eg lighting was proving tricky (and might permit you to leave the graphic accelerator on for instance. (2 cents).   

And fake shadows can even be added in 2D.
Just as rendering can be done in 2D by hatching faces (if you are real desperate lol).