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

Curved Segment using GDL Primitive Elements

Nader Belal
Mentor

Hi everyone,

 

Can someone explain me how to create curved arcs and surfaces using VERT, VERT{2}, TEVE, EDGE, & PGON ??

 

I tried searching for an example to follow, but I couldn't find any.

A good friend of mine have once told me that I´m so brute that I´m capable of creating a GDL script capable of creating GDLs.
19 REPLIES 19

runxel
Ace

I don't think that is possible.

How do you got the idea it could be done? With those commands you basically model single polygons. And polygons can never be bend...

AC 24 [ger] | Win 10 | Developer of the GDL plugin for Sublime Text |
«Furthermore, I consider that Carth... yearly releases must be destroyed»

Well I just have found out how ... you can, but it a time consuming process 

A good friend of mine have once told me that I´m so brute that I´m capable of creating a GDL script capable of creating GDLs.

Just give me a shout for tomorrow or after tomorrow and I will give you the steps to do it

A good friend of mine have once told me that I´m so brute that I´m capable of creating a GDL script capable of creating GDLs.

Okay, great, always love to discover new methods!

I'm really eager to know how you achieve this.

AC 24 [ger] | Win 10 | Developer of the GDL plugin for Sublime Text |
«Furthermore, I consider that Carth... yearly releases must be destroyed»

same here, I still need to see this with my eyes. A simple example should be enough to show the implementation... How are you defining curves using vertices, edges and polygons (and apparently not being able to use status codes on corresponding commands)? Very curious...

Alright, I will make two posts and share it here

A good friend of mine have once told me that I´m so brute that I´m capable of creating a GDL script capable of creating GDLs.

All GDL commands will get translated to these primitives by AC. Curved surfaces just have many small polygons.

Here is some help for using TEVE: http://gdl.graphisoft.com/gdl-style-guide/script-type-dependent-recommendations

 

I'd recommend using BPRISM_ and COOR{3}  for a curved panel btw.

Péter Baksa
Software Engineer, Library as a Platform
Graphisoft SE, Budapest

Thanks Peter, I understand this, its like many other platforms, rhino for example, where one can define nurbs surfaces (mathematically continuous) but still are represented (and only represented) as meshes (discrete representations). Further operations on that surface still are on the nurbs, though.
My surprise was in relation to the aim of defining "curves" or "curved surfaces" through a discrete system, which "is" (or "seems", afaik) an oxymoron.
In a private conversation, if I understood him correctly, Nader was trying to obtain a smooth representation of a discrete surface, which is all about shaders (well, and in the case of GDL applying the appropriate status code to de edges/polygons.

My poly tube calculates the positioning of the materials along curve sections for this exact purpose in terms of like a wood curved railing so that you can get a consistent wood grain all the way up the curve One of the things I hate about ArchiCADs railing tool

FREE Soffit & Fascia for Rail Tool - https://bit.ly/BIMRithmSoffitandFascia
FREE wall Accessory framing and coverings - bit.ly/BIMRithmWallAccessories
FREE Truss object - https://bit.ly/BIMRithmTrussV1
FREE Custom Tube Object - https://bit.ly/BIMRithmPolyTube
AC 24, Twinmotion current, Windows 11, Msi 10UG with rtx 3070, wacom intuos pro m, Wacom Cintiq Pro 16, razer Tartarus pro.

https://youtu.be/3WW5X7Q8FIc

FREE Soffit & Fascia for Rail Tool - https://bit.ly/BIMRithmSoffitandFascia
FREE wall Accessory framing and coverings - bit.ly/BIMRithmWallAccessories
FREE Truss object - https://bit.ly/BIMRithmTrussV1
FREE Custom Tube Object - https://bit.ly/BIMRithmPolyTube
AC 24, Twinmotion current, Windows 11, Msi 10UG with rtx 3070, wacom intuos pro m, Wacom Cintiq Pro 16, razer Tartarus pro.

thank for the video seneca, really great job!
But for the sake of clarity in relation to the post, let me comment that your particular example is more related to texture UV mapping (TEVE, I suppose) than shading (which happens to be related to vertex normals). Correct me if I'm wrong.

bests, Aitor

Buy the way, I'm half way through

A good friend of mine have once told me that I´m so brute that I´m capable of creating a GDL script capable of creating GDLs.

Curious as to why you would want to use the primitives?

FREE Soffit & Fascia for Rail Tool - https://bit.ly/BIMRithmSoffitandFascia
FREE wall Accessory framing and coverings - bit.ly/BIMRithmWallAccessories
FREE Truss object - https://bit.ly/BIMRithmTrussV1
FREE Custom Tube Object - https://bit.ly/BIMRithmPolyTube
AC 24, Twinmotion current, Windows 11, Msi 10UG with rtx 3070, wacom intuos pro m, Wacom Cintiq Pro 16, razer Tartarus pro.

Because sometimes, and depending of the elements' complexity/resource usage, it can be more cost effective to just model the desired element using Primitives.

In my actual case, since GDL lacks morphing or mapping (don't know the correct term) a regular cubic model to a similar curvilinear shape, and scripting that will be more be more time consuming with lower quality result.

 

That besides, the god damned standard GDL manual doesn't have an example for that.

A good friend of mine have once told me that I´m so brute that I´m capable of creating a GDL script capable of creating GDLs.

Curious, what are you modeling?

FREE Soffit & Fascia for Rail Tool - https://bit.ly/BIMRithmSoffitandFascia
FREE wall Accessory framing and coverings - bit.ly/BIMRithmWallAccessories
FREE Truss object - https://bit.ly/BIMRithmTrussV1
FREE Custom Tube Object - https://bit.ly/BIMRithmPolyTube
AC 24, Twinmotion current, Windows 11, Msi 10UG with rtx 3070, wacom intuos pro m, Wacom Cintiq Pro 16, razer Tartarus pro.

Curved cabinet door panel

A good friend of mine have once told me that I´m so brute that I´m capable of creating a GDL script capable of creating GDLs.

I just use tubes and map the surface around the segments I guess I felt like primitives would be more work.

FREE Soffit & Fascia for Rail Tool - https://bit.ly/BIMRithmSoffitandFascia
FREE wall Accessory framing and coverings - bit.ly/BIMRithmWallAccessories
FREE Truss object - https://bit.ly/BIMRithmTrussV1
FREE Custom Tube Object - https://bit.ly/BIMRithmPolyTube
AC 24, Twinmotion current, Windows 11, Msi 10UG with rtx 3070, wacom intuos pro m, Wacom Cintiq Pro 16, razer Tartarus pro.

Usually I would do that, but the overhead is unacceptable

A good friend of mine have once told me that I´m so brute that I´m capable of creating a GDL script capable of creating GDLs.

Nader Belal
Mentor

By the way, I´m half way through

A good friend of mine have once told me that I´m so brute that I´m capable of creating a GDL script capable of creating GDLs.

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!