# Kampecaris for Gh2

We’ve just released our Kampecaris plugin for Gh2. it’s available for download on GitHub. We started its development back in July 2023 at the DigitalFuture Persian Workshop. As of now, Kampecaris is an ongoing project, primarily focused on exploring voxel-based 3D modeling.

We got a lot of ideas from really cool plugins like Chromodoris, Millipede, Monolith, and Dendro. However, voxel-based modeling can benefit greatly from the use of fields. Gh1 did well with fields, but Gh2 has greatly improved them. This has opened up so many new opportunities for us.

We spent a lot of time looking at different codes, getting inspired by the work of @laurent_delrieu (C# isosurface - #2 by laurent_delrieu) and @DanielPiker (Isosurfaces / Signed Distance Fields).

Fun fact: We named Kampecaris after one of the earliest animals on land because it’s one of the first plugins for Gh2! We began with volumetric modeling but plan to add more cool stuff. We’re keeping an eye on Gh2’s updates since it’s still in Alpha state.

We know there are other great minds working on their own Gh2 plugins. Our aim is to collaborate and contribute, not just to be the first. That’s why our code, which borrows ideas here and there, is on GitHub under the MIT license for everyone to use. We hope it inspires more awesome work!

32 Likes

That looks great guys. Nice work.

2 Likes

Lovely! It even uses presets on the input params.

2 Likes

In this example, I used the Field From Expressions component to generate some of the most well-known Triply Periodic Minimal Surfaces by employing their equations.

Schwarz P

f(x, y, z) = \cos(x) + \cos(y) + \cos(z)

Diamond

f(x, y, z) = \sin(x)\sin(y)\sin(z)+\sin(x)\cos(y)\cos(z)+\cos(x)\sin(y)\cos(z)+\cos(x)\cos(y)\sin(z)

Gyroid

f(x, y, z) = \cos(x)\sin(y)+\cos(y)\sin(z)+\cos(z)\sin(x)

11 Likes

Here’s an example of the Marching Mesh component. It can handle both triangular and quadrangular meshes.

6 Likes

Having a great time playing around with the new Function Editor in Grasshopper 2.

Functions.ghz

3 Likes

Zeotrope.ghz

2 Likes