Cutting Items along a plane (blender script) - Thin walls

Discussion in 'Software and Applications' started by woody64, Aug 14, 2011.

  1. woody64
    woody64 Well-Known Member
    I've found an interesting blender script (crosssections) from Yorik:
    http://yorik.uncreated.net/guestblog.php?tag=blender&com plete=3

    I've adapted it to help me to search for thin walls:
    1) Shows my item
    2) now the script is called generating 5 cross sections parallel to XZ
    3) I've moved the cross sections to allow better viewing

    (not so bad. the original code seems to have troubles with intersections showing them as holes)

    Woody64

    Cutplane-0.png
     
    Last edited: Aug 14, 2011
  2. woody64
    woody64 Well-Known Member
    And here's a pictur eof using the cross selection together with Blender Caliper for measurement.
    Woody64
    Bildschirmfoto-25.png
     
  3. bartv
    bartv Member
    Wow, that's a clever and unexpected application of that script, thanks for sharing! Does it work in the newer Blender versions as well?

    Bart
     
  4. woody64
    woody64 Well-Known Member
    I will take a look on my newer installation (Ubuntu 11 with the blender installed there) to see the reaction there.

    Since I have been asked for the script I will upload my modified version later on and publish the link here.

    Woody64
     
  5. woody64
    woody64 Well-Known Member
    The script also works with blender 2.49b.

    But I have adapted some internals and only reused the main feature of the original ...
    http://minifigcustomsin3d.mac-au.eu/object_CrossSection.py
    (There are some sections inside which have to be adapted to each designers need: numbers of cut planes and distance)

    Currently I'm looking inside a problem with several different 3d meshes which intersect. There the blender mesh fill modus currently used does not work correctly (caused by more then one linked vertex group)
    (You see that also in the first picture where there are some holes in the cut area )

    Woody64
     
    Last edited: Jun 27, 2012
  6. woody64
    woody64 Well-Known Member
    ... some small enhancements to the user interface
    - number of cuts selectable
    - distance editable
    - cut planes selectable
    - filled cuts: but unfortunately that's experimental since
    -- the blender/python fill does not cope correctly with that
    => if somebody has a code snippet to generate a list of linked vertices that may help
    (since the problem arises when there are more then 1 closed loop of vertices in the cut, in that case the fill has to fill each loop of linked vertices in an extra step which may work)

    Bildschirmfoto-Namenloses Fenster.png
     
  7. woody64
    woody64 Well-Known Member
    Solved a lot of issues (including my raw/k3d importer, which caused the previous problems)

    You see one of my objects cut by 3 planes in each direction.

    The YZ plane is shifted out of the resulting figure to take a deeper look on it.

    On the bottom left you can see the new menu.

    Bildschirmfoto-Namenloses Fenster-2.png
     
    Last edited: Jul 3, 2012