I am trying to see if the points are inside the brep, but I cannot make 3dpoints of the vertices. Do you might know how to make 3dpoints of the vertices?

Thank you for your response.

problem points inside.gh (4.2 KB)

I am trying to see if the points are inside the brep, but I cannot make 3dpoints of the vertices. Do you might know how to make 3dpoints of the vertices?

Thank you for your response.

problem points inside.gh (4.2 KB)

Is the BREP always a box?

because rs.AddBox returns a list of points (the vertices)

Sorry, correction it is rs.GetBox

https://developer.rhino3d.com/api/RhinoScriptSyntax/#collapse-GetBox

no, it is always a brep

I did something similar recently. Now I looked at it. In order to check if brep is inside another brep I simply test for intersection. If thereâ€™s an intersection then there is a collision. If there isnâ€™t you can check the location of the centroid if it is inside then the object is fully inside. If the centroid is outside then the object is fully outside.

https://developer.rhino3d.com/api/RhinoScriptSyntax/#collapse-IntersectBreps

```
# use this to compute the centroid
Rhino.Geometry.AreaMassProperties.Compute(Brep).Centroid
```

Something you need to consider.

If your breps that you check are of a more complex shape or one is longer that goes completely through the other brep you may not detect a collision by simply checking the vertices.