Bug in Mesh Split

I want to cut a Mesh using MeshSplit, but I need to have clean grouping of mesh parts. For some mesh it works but for others it fails, there are too much parts and sometime bad cuts.
See here an example in the grasshopper file. I have the same problem in Rhinoceros.

bug mesh split.gh (488.7 KB)

The cutters are a polyline that is extruded. Gyroid and Polyline generated here by @DanielPiker

I think I was able to make my own tool :sweat_smile: Not bad 7.7 s vs 5 s with Legacy Component.

As asked by @wim here is a file with A mesh, some meshes as cutter and differences with my tool and Rhinoceros.

As many cutters are on the borders there are lots of little meshes. But cutter in R8 seems to still have some difficulties. 3 cuts vs 80 !!!

bug mesh split V2.gh (1.7 MB)

Rhino 8 SR0 2022-11-15 (Rhino WIP, 8.0.22319.12305, Git hash:master @ a78287b93af89333d2c1832fd6a67d321a15ee29)
License type: Commerciale, build 2022-11-15
License details: Cloud Zoo
Expires on: 2022-12-30

Windows 10 (10.0.19045 SR0.0) or greater (Physical RAM: 32Gb)

Computer platform: DESKTOP

Standard graphics configuration.
Primary display and OpenGL: NVIDIA Quadro P2000 (NVidia) Memory: 5GB, Driver date: 12-6-2021 (M-D-Y). OpenGL Ver: 4.6.0 NVIDIA 472.84
> Accelerated graphics device with 4 adapter port(s)
- Windows Main Display attached to adapter port #0

OpenGL Settings
Safe mode: Off
Use accelerated hardware modes: On
Redraw scene when viewports are exposed: On
Graphics level being used: OpenGL 4.6 (primary GPU’s maximum)

Anti-alias mode: 4x
Mip Map Filtering: Linear
Anisotropic Filtering Mode: High

Vendor Name: NVIDIA Corporation
Render version: 4.6
Shading Language: 4.60 NVIDIA
Driver Date: 12-6-2021
Driver Version:
Maximum Texture size: 32768 x 32768
Z-Buffer depth: 24 bits
Maximum Viewport size: 32768 x 32768
Total Video Memory: 5 GB

Rhino plugins that do not ship with Rhino
C:\Program Files\Chaos Group\V-Ray\V-Ray for Rhinoceros 6\VRayForRhino.rhp “V-Ray for Rhino”
C:\Program Files\SimLab\Plugins\SimLab 3D PDF From Rhino 6\plugins\SimLabPDFExporter.rhp “SimLab PDF Exporter”
C:\Program Files\Geometry Gym\Rhino8\BullAnt.rhp “bullant”

Rhino plugins that ship with Rhino
C:\Program Files\Rhino 8 WIP\Plug-ins\Commands.rhp “Commands” 8.0.22319.12305
C:\Program Files\Rhino 8 WIP\Plug-ins\rdk.rhp “Renderer Development Kit”
C:\Program Files\Rhino 8 WIP\Plug-ins\AnimationTools.rhp “AnimationTools”
C:\Program Files\Rhino 8 WIP\Plug-ins\RhinoRenderCycles.rhp “Rhino Render” 8.0.22319.12305
C:\Program Files\Rhino 8 WIP\Plug-ins\rdk_etoui.rhp “RDK_EtoUI” 8.0.22319.12305
C:\Program Files\Rhino 8 WIP\Plug-ins\rdk_ui.rhp “Renderer Development Kit UI”
C:\Program Files\Rhino 8 WIP\Plug-ins\NamedSnapshots.rhp “Snapshots”
C:\Program Files\Rhino 8 WIP\Plug-ins\IronPython\RhinoDLR_Python.rhp “IronPython” 8.0.22319.12305
C:\Program Files\Rhino 8 WIP\Plug-ins\Constraints.rhp “Constraints”
C:\Program Files\Rhino 8 WIP\Plug-ins\RhinoCycles.rhp “RhinoCycles” 8.0.22319.12305
C:\Program Files\Rhino 8 WIP\Plug-ins\RhinoCode\RhinoRoslyn.rhp “RhinoRoslyn” 8.0.22319.12305
C:\Program Files\Rhino 8 WIP\Plug-ins\Grasshopper\GrasshopperPlugin.rhp “Grasshopper” 8.0.22319.12305
C:\Program Files\Rhino 8 WIP\Plug-ins\RhinoCode\RhinoCodePlugin.rhp “RhinoCodePlugin” 8.0.22319.12305
C:\Program Files\Rhino 8 WIP\Plug-ins\RhinoCode\RhinoCPython.rhp “RhinoCPython” 8.0.22319.12305
C:\Program Files\Rhino 8 WIP\Plug-ins\Toolbars\Toolbars.rhp “Toolbars” 8.0.22319.12305
C:\Program Files\Rhino 8 WIP\Plug-ins\3dxrhino.rhp “3Dconnexion 3D Mouse”
C:\Program Files\Rhino 8 WIP\Plug-ins\Displacement.rhp “Displacement”
C:\Program Files\Rhino 8 WIP\Plug-ins\ConstraintsUI.rhp “Constraints UI” 8.0.22319.12305

@laurent_delrieu sorry I missed this topic. Something is wrong here. I’ll gladly have a look.
I’ve added a bugtracker issue here: RH-71888