Hello Everyone. From : How to fill the ( convex, concave, complex ) quadrilateral with color ? Thanks in advance for your time and help. Best Regards. Loi.
As you are using real Mathcad you probably are rather interested in the predecessor for Mathcad 15. Its attached here.
BTW, four lines do NOT define a unique quadrilateral as you can see here:
Better you provide the vertices and keep in mind, that the order in which you provide the points matter!
To use Prof. Birkeland's functions you will have to provide a boolean function which determines if a point is inside the to-be-hatched area or not.
I vaguely remember that I provided that kind of "pointInPolygon" function in an older thread for a different purpose, but it seems that I did not keep a copy and I could not find that thread with a quick search.
Birkeland provides three functions to fill shapes in his worksheet, Dots, Hatch and Shade.
Dots is the most simple one and can be used to fill arbitrary polygons with an orthogonal dot grid. Varying the number of dots and their size you may also simulate a plain fill.
After quite some reformatting it worked in Prime, too, but unfortunately Prime is limited concerning the number of different line widths (=point sizes in Prime) and the number of points its can plot while respecting the set line width, The center plot with about 17000 points won't work OK because of this limitation and the number of dots had to be reduced.