Home › Forums › Problems and solutions in GDL › 3D modelling › Status code: sharp to smooth
Tagged: status codes, smooth
- This topic has 4 replies, 3 voices, and was last updated 3 years ago by
Piotr Dobrowolski.
-
AuthorPosts
-
-
April 13, 2019 at 06:22 #4665
Bruce Walker
ParticipantWhat’s the trick to transitioning from a sharp edge to a smoothed edge? I want sharp edges at the curve ends, but smoothed edges within the curve itself (see attached images).
Code
PRISM_ 7, 1, 0, 0, 15, 0, 1, 15, 0.25, 1, 15, 0.5, 1, 900, 0, 180, 4015, 1, 1, 15, 1, 0, 15
Attachments:
www.brucepwalker.com
https://www.mindmeister.com/65450406AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
NVIDIA GeForce GTX 1060 8Mb -
April 15, 2019 at 09:40 #4668
Péter Baksa
KeymasterHi,
the trick is CPRISM_{3} with mask 8.
CPRISM_{3} 0, 0, 0, 8, 7, 1, 0, 0, 0, 15, 0, 0, 1, 0, 15, 0, 0.25, 1, 0, 15, 0, 0.5, 1, 0, 900, 0, 0, 180, 0, 4015, 0, 1, 1, 0, 15, 0, 1, 0, 0, 15, 0
Péter Baksa
Library Platform, Software Engineer
GRAPHISOFT SE -
April 18, 2019 at 23:47 #4671
Bruce Walker
ParticipantThanks Peter – this is it.
Is there a way to set the material for the whole CPRISM without having to set it for each line (I don’t think so)? With the code you’ve supplied (thank you), a preceding MATERIAL command will only set the top and bottom materials.
Also, the ‘side_material’ listing at the command level seems redundant, as this has to be set for each coordinate line. Am I reading this right?
Attachments:
www.brucepwalker.com
https://www.mindmeister.com/65450406AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
NVIDIA GeForce GTX 1060 8Mb -
April 23, 2019 at 07:12 #4678
Péter Baksa
KeymasterYou have to set the material on each edge, 0 uses the current pen. Yes, side_material looks redundant, I don’t know why it is there.
Péter Baksa
Library Platform, Software Engineer
GRAPHISOFT SE -
May 20, 2019 at 16:02 #4745
Piotr Dobrowolski
ParticipantThere is a “quick and dirty” way to make the “all in one” surface material on anything…it may slow down the object:
The trick uses the container as in bolean operations: the last one with the smallest description ;P : CREATEGROUPWITHMATERIALPiotr
-
-
AuthorPosts
- The forum ‘3D modelling’ is closed to new topics and replies.