cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

The 2025 Technology Preview Program is now live. Join today!

GDL
About building parametric objects with GDL.
SOLVED!

REVOLVEDSHELL vs DEFINE MATERIAL

Bruce
Advisor

I'm trying to apply an image to a revolved shell without resorting to project-defined attributes.  I.e. I need to define inline MATERIALS. 

 

I can do this for, e.g. a SPHERE, but a REVOLVEDSHELL doesn't work.  ChatGPT says that the DEFINE TEXTURE and DEFINE MATERIAL commands are deprecated for this newer geometry (e.g. REVOLVEDSHELL) although it still works for the older commands.  

 

Is this true?  And if so, what is the equivalent in line attribute definitions I can use for REVOLVEDSHELL material and textures?

Bruce Walker
Barking Dog BIM YouTube
Mindmeister Mindmap
-- since v8.1 --
AC27 5060 INT Full | Windows 11 64 Pro | 12th Gen Intel i7-12700H 2.30 GHz | 64 Gb RAM | NVIDIA GeForce RTX 3060 32 Gb
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
A_ Smith
Expert

Usually latest {versions} have no problems with inline defined materials 

 

REVOLVEDSHELL{3} is an extension of the REVOLVEDSHELL{2} command with the possibility of using inline material definition, that
means materials defined in GDL script locally also can be used next to materials defined in global material definitions.

AC 22, 24 | Win 10

View solution in original post

2 REPLIES 2
Solution
A_ Smith
Expert

Usually latest {versions} have no problems with inline defined materials 

 

REVOLVEDSHELL{3} is an extension of the REVOLVEDSHELL{2} command with the possibility of using inline material definition, that
means materials defined in GDL script locally also can be used next to materials defined in global material definitions.

AC 22, 24 | Win 10

Thanks for that...I should have kept reading the Reference Guide!  However, I'm still running into trouble with the texture mapping.  I just can't figure out what the secret is.  Below are two images of exactly the same texture applied to two different geometries.

 

On the left is the REVOLVEDSHELL with the texture that doesn't work.  On the right is a GROUPED SPHERE that does work.  Exactly the same texture definition applied to both.

 

2025-09-28_18-36-38.png

I've tried a COOR{3} with BODY -1 to see if that has an effect, but doesn't do anything that I can see.  This texture stuff in GDL is really light on with the help...

Bruce Walker
Barking Dog BIM YouTube
Mindmeister Mindmap
-- since v8.1 --
AC27 5060 INT Full | Windows 11 64 Pro | 12th Gen Intel i7-12700H 2.30 GHz | 64 Gb RAM | NVIDIA GeForce RTX 3060 32 Gb

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!