PaperModelers.com

Go Back   PaperModelers.com > Designers Corner > Design Threads

Reply
 
Thread Tools Display Modes
  #31  
Old 06-05-2023, 01:15 PM
Laurence Finston Laurence Finston is offline
Member
 
Join Date: Sep 2021
Location: Germany
Posts: 395
Total Downloaded: 0
A couple more differences occurred to me: In MetaPost, figures are always ended with plain `endfig'. In effect, a MetaPost figure is always projected onto the x-y plane using the parallel projection. In 3DLDF, figures can be projected onto one of the major planes using the parallel projection or they can be projected with the perspective projection using a focus. If plain `endfig' is called, then the perspective projection is used with a default focus. I believe it's possible to change the default but it's been awhile since I programmed this feature and I never just call `endfig'. If I want the perspective projection, I always specify the focus.

The other difference involves the "hints" I mentioned above. Given two or more points, MetaPost will attempt to find the "most pleasing curve" that passes through them. However, when the MetaPost code is generated by 3DLDF, MetaPost doesn't "know" that the curves are supposed to be two-dimensional projections of three-dimensional curves, so the resulting curves are likely to be neither pleasing nor correct.

In order to prevent curves from "going out of shape", it is necessary to constrain them by increasing the number of points they contain. That's what's done when 3DLDF calls MetaPost: it passes the information about the curve (path) to MetaPost and has the latter calculate enough intermediate points so that the projected curve won't go out of shape when it is ultimately calculated by MetaPost.
Reply With Quote
  #32  
Old 07-11-2023, 10:44 AM
Laurence Finston Laurence Finston is offline
Member
 
Join Date: Sep 2021
Location: Germany
Posts: 395
Total Downloaded: 0
The first image shows a single rapport of the pattern. For maximum flexibility, I decided to assign each path, i.e., the triangles with the wavy lines, the inner hexagons and the six-pointed stars, to a variable (p_x). The centers of the paths some of the vertices of the outer hexagons are also set to variables (the points Z_x).

The second image shows the first rapport and a single repeat in the horizontal direction with drawn lines only. In the third image, the paths are filled with computer-generated colors approximating the originals from Jones and Goury. I have no idea how close they are to the colors of the actual original.

In the fourth image, the colors, except for white, have been replaced by colors I scanned from backgrounds painted with gouache or watercolor. I used GIMP for the color replacement.

In the third and fourth images, more rapports were used and the pattern was repeated in the vertical direction. However, because of size constraints, a full repeat in the vertical direction can't be shown.

The fifth image shows two rapports, as in second image, but put into perspective.

The source code and a PDF file with these images is available here: Architectural Models
This is a link to the PDF file: https://www.gnu.org/software/3dldf/g...mbra_207_1.pdf
Attached Thumbnails
Architectural Details and Ornaments-alhambra_207_1_002_low_res.jpg   Architectural Details and Ornaments-alhambra_207_1_005_low_res.jpg   Architectural Details and Ornaments-alhambra_207_1_003_cropped_1_low_res.jpg   Architectural Details and Ornaments-alhambra_207_1_003_cropped_color_replaced_low_res.jpg   Architectural Details and Ornaments-alhambra_207_1_004_low_res.jpg  

Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 08:20 AM.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)
Copyright © 2007-2023, PaperModelers.com