CascadeStudio
CascadeStudio copied to clipboard
Intersection() docs say keepObects can be a [boolean, boolean] but that doesn't appear to be the case
The text description here says keepObjects can be a [boolean, boolean], but the type signature says boolean?:
Trying to pass a list fails:
I'm not sure if the docs or implementation are wrong though.
If you look at the code, there is only the option to keep objects or not:
for (let i = 0; i < objectsToIntersect.length; i++) {
if (!keepObjects) { sceneShapes = Remove(sceneShapes, objectsToIntersect[i]); }
}
If keepObjects is not true, all objects used to intersect are removed from the scene. There is no option to keep some of the objects, it is all or nothing. So I guess it is a mistake in the documentation.