This method ComponentDefinition#manifold? does not exist and would make sense.
It would avoid to either rely on an existing instance of the definition, or worse, create an temporary instance of the definition, just to check if the definition is manifold.
Note that there are cases where we can manipulate a definition that does not have an instance (yet).
when creating geometry (cdef = Sketchup.active_model.definitions.add, then adding entities to cdef.entities)
importing a definition from a skp file (definition#load)
The existing Group#manifold? and ComponentInstance#manifold? can continue to exist.
This method
ComponentDefinition#manifold?
does not exist and would make sense.It would avoid to either rely on an existing instance of the definition, or worse, create an temporary instance of the definition, just to check if the definition is manifold.
Note that there are cases where we can manipulate a definition that does not have an instance (yet).
cdef = Sketchup.active_model.definitions.add
, then adding entities tocdef.entities
)definition#load
)The existing
Group#manifold?
andComponentInstance#manifold?
can continue to exist.