sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

    Clone PolygonMesh

    Scheduled Pinned Locked Moved Developers' Forum
    23 Posts 4 Posters 1.0k Views 4 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • jolranJ Offline
      jolran
      last edited by

      @unknownuser said:

      The data has to be stored somewhere. At least for Vray, the properties are stored as an XML structure in the material's attributes.

      Allright!
      Can't say I havent thought about the idea to include this functionality into the plugin,
      to be honest.
      But the risk of feature freenzy and bloat is to big, so I probably stick to only a design/modeling tool.

      @unknownuser said:

      Well I think I would be. I mean, this king of UI without zooming is kind of cumbersome, don't you think?

      Yeah, I guess you are right. Come to think of it, you might be even more dependent of "special-nodes", displaying textures and stuff.

      1 Reply Last reply Reply Quote 0
      • tt_suT Offline
        tt_su
        last edited by

        For fastest performance of "copying" a PolygonMesh use the number of points and polygons in the new argument. Then populate the points and finally add the polygons with indices.

        I agree that it'd be nice to have .dup and .clone make a fresh copy.

        1 Reply Last reply Reply Quote 0
        • jolranJ Offline
          jolran
          last edited by

          Yes, Thanks. I used that and noticed some increase in performance.
          But I have kind of abandoned the PolygonMesh for now. At least during the previewing state.

          I experimented building my own meshclass with indexing of points. Instead of using PolygonMesh class as a Point container.

          Keep arrays of indexes and a Hash containing Points. And the Transformation only deals with the uniq points(Hash) then. Quite a lot of speed improvements!

          The advantage here is that I can reuse the objects somewhat, while I can't purge/clear(?) a PolygonMesh. So the GC should work a little less.

          I'm sure you guys have/are doing something similar or more advanced...

          1 Reply Last reply Reply Quote 0
          • 1
          • 2
          • 2 / 2
          • First post
            Last post
          Buy SketchPlus
          Buy SUbD
          Buy WrapR
          Buy eBook
          Buy Modelur
          Buy Vertex Tools
          Buy SketchCuisine
          Buy FormFonts

          Advertisement