Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creating a ring of rectangles, then create series of rings to create a cylinder
#3
Hi,

Here is the code modification to avoid your issue. Go to CurvyGenerator.cs, and in the Initialize method, replace the first for loop with this one:
Code:
for (int i = 0; i < Modules.Count; i++)
               {
                   CGModule cgModule = Modules[i];

                   if (!cgModule.IsInitialized || force)
                       cgModule.Initialize();

                   //This happens for example if a generator creates GameObjects that are generators themselves
                   if (cgModule.Generator != this)
                       continue;

                   if (ModulesByID.ContainsKey(cgModule.UniqueID))
                   {
                       Debug.LogError("ID of '" + cgModule.ModuleName + "' isn't unique!");
                       return;
                   }
                   ModulesByID.Add(cgModule.UniqueID, cgModule);
               }

I still recommand you to use GO ring as a way to make the ring, and put the ring itself, stripped from the generator, as an input to the second generator. This way you will use less CPU and memory.
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Reply


Messages In This Thread
RE: Creating a ring of rectangles, then create series of rings to create a cylinder - by _Aka_ - 09-07-2019, 10:17 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Create Game Object Renaming Options rickgplus 1 706 09-23-2025, 09:33 AM
Last Post: _Aka_
  Create Mesh Node, Make Static Options rickgplus 1 1,626 01-23-2025, 10:12 AM
Last Post: _Aka_
  Help creating a wedge Thinkurvy 2 1,587 04-24-2024, 12:25 PM
Last Post: _Aka_
Heart Create beautiful curves ShiroeYamamoto 3 2,383 03-26-2024, 06:25 PM
Last Post: _Aka_

Forum Jump: