Skip to content

C API has no direct boolean functions to test for manifold volumes #90

@DanRathbun

Description

@DanRathbun

SketchUp C API Enhancement

C API has no direct boolean functions to test for manifold volumes.

Coders are forced into a roundabout way to test volume for a particular error.

Firstly, groups need to be cast to a ComponentInstance using ...
SUGroupToComponentInstance

Secondly coders attempt to get the volume of the instance using ...
SUComponentInstanceComputeVolume, and test the result for not SU_ERROR_NO_DATA
(which is returned if the instance is not manifold.)

This workflow could be wrapped into SUComponentInstanceIsManifold and SUGroupIsManifold functions that return boolean (and in the case of group does the casting inside the function.).


REF Public Forum Thread:
https://forums.sketchup.com/t/is-there-a-function-to-know-a-group-or-a-component-is-a-solid-group-or-a-solid-component/68041

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions