sketchucation logo sketchucation
    • Login
    1. Home
    2. SR20VET
    3. Posts
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download
    S
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 7
    • Posts 22
    • Groups 1

    Posts

    Recent Best Controversial
    • New tool's "initialize" starts bf prev tool's "deactivate"

      Hi all of you. It's giving me a headache...
      I've got these two tools which do actually the same during the initialize method and the deactivate method.
      On initialize they need to watch which ents were visible and hide them in order to only show the ents that are needed for the tool to work with. On deactivate it's visa versa: only show the ents that were visible before the tool was activated. Now I have this issue:
      When tool_1 is active and I select tool_2, SketchUp first runs the initialize-method of tool_2 and then runs the deactivate-method of tool_1. So, instead of showing the ents I need for tool_2, it shows the ent's that were visible before initializing tool_1.

      It's strange because I never had issues with that in the past. Only difference is that I used to work with different layers (each ent in a specefic layer) and toggeling those layers and now I just work with one layer and toggeling the visible state of the ents.

      I hope I made myself clear? Anyone has got these issues too?

      posted in Developers' Forum
      S
      SR20VET
    • Define possible (manifold) groups in a model

      Hello, this is my first post on this forum. I have this issue that I just can't sort out..
      The title quiet explains the problem. I'm developping a plugin that automatically generates (manifold) groups from all the faces in a model. Image from a possible model (only faces):

      http://kennygeyskens.bravehost.com/various/images/faces.jpg

      I have tried the following method:
      First i defined a method called "spheretrace". It acts like raytrace but "shoots" rays in all directions and returns all the faces it touches. I do this from all the point3D's (with different offsets xyz-1 and xyz+1) in the model. With this method I search for possible face combinations to be used as the faces of a manifold group. There are also some other methods to extract unlikely combinations etc... but somehow, it just won't do.

      The second method I tried was just generating ALL possible combinations of faces. And of course, this works. But, when the model is getting about 12+ faces... I get some trillion combinations followed with a crash.

      So here is my question. Has anyone tried doing the same and has a direction to point me to?

      posted in Developers' Forum
      S
      SR20VET
    • 1
    • 2
    • 2 / 2