Skip to content

Border around holes / Smoothing objects #133

@TemperMichael

Description

@TemperMichael

Is there a way to efficiently create a border around holes? My current approach seems quite performance heavy as it lags for a more complex model. I tried all day to find a solution to get the path of the hole and use Mesh.stroke, but I couldn't figure it out myself.

My current approach:

        let border = hull                        // hull = OriginalMesh.scaled(by: 1.05).subtracting(OriginalMesh.scaled(by: 0.95)
            .intersection(holeSphere)            // holeSphere = sphere.subtracting(sphere.scaled(by: 0.8))
            .subtracting(secondBorderMesh)       // Subtract overlapping border
            .withMaterial(Euclid.MaterialWrapper(material))

And since the model is quite low-poly to prevent lags, the resulting cut out border also has quite some edges in it as this comes from the "hull" of the model. Or is there any way to make a Mesh smoother afterwards? Thanks in advance!

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions