Skip to content
Discussion options

You must be logged in to vote

Looks like it worked, for other part you can do one more boolean with inital mesh:

    internal static Result<MeshModel[]> BooleanSplit(Mesh body, Mesh tool, float gap_distance) {
        try {
            BooleanParameters parameters = new() {
                rigidB2A = new AffineXf3f(new MR.DotNet.Vector3f(0, gap_distance, 0))
            };

            var resultA = Boolean(body, tool, BooleanOperation.DifferenceAB, parameters);

            parameters.rigidB2A = new AffineXf3f(new MR.DotNet.Vector3f(0, -gap_distance, 0)); // shift in opposite direction if needed
            var resultB = Boolean(body, tool, BooleanOperation.Intersection, parameters);
            MeshModel[] meshes = [n…

Replies: 1 comment 14 replies

Comment options

You must be logged in to vote
14 replies
@nsmela
Comment options

@Grantim
Comment options

@nsmela
Comment options

@Grantim
Comment options

Answer selected by nsmela
@nsmela
Comment options

@Grantim
Comment options

@nsmela
Comment options

@nsmela
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants