Skip to content
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

ZMT zurich med tech

  1. Home
  2. Sim4Life
  3. Analysis & Postprocessing
  4. IsoSurface mesh

IsoSurface mesh

Scheduled Pinned Locked Moved Analysis & Postprocessing
3 Posts 2 Posters 190 Views 2 Watching
  • 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.
  • A Offline
    A Offline
    andrea_h
    wrote on last edited by
    #1

    Hello everyone,

    I'm trying to create a mesh from an iso-surface without relying on its name to access it. When I use the following code:

    mesh = iso_surface_viewer.raw.CreateTriangleMeshFromIsoSurface()
    

    The mesh variable returns None, although the mesh itself is successfully created.

    Currently, I'm accessing the created mesh by doing something like this:

    ents = model.AllEntities()
    ISO_shell = ents['E(x,y,z,f0) - Iso-Surface Viewer (200.000000 V/m) 1']
    

    Is there a way to directly reference or store the created mesh in a variable, without having to query all entities by name afterward? Any tips or best practices would be greatly appreciated!

    Thanks in advance for your help!

    1 Reply Last reply
    0
    • brynB Offline
      brynB Offline
      bryn
      ZMT
      wrote on last edited by bryn
      #2

      this looks like a bug that we will fix for the next update fix release.

      I guess as a workaround you could list all the entities before, and after calling CreateTriangleMeshFromIsoSurface and find the difference, i.e. the one created by the function

      1 Reply Last reply
      0
      • A Offline
        A Offline
        andrea_h
        wrote on last edited by
        #3

        Hello! Thank you for your quick answer :) I'll do that in the meantime

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Search