boolean code problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
hi
i made this code
this code contain good helper code
i modified this
this code work process
1. make a box
2. run this code
3. draw rectangle
4. copy rectanlge ( newrect)
4. substract = box - rectangle
5. after that . extrude newrect as box.max.z
but this code not work / and boolean error
pls help me again
(
local rects = startObjectCreation rectangle returnNewNodes:true --newNodeCallback:OnNewNode
newrect = copy rects
problemObjs = #()
newObj = #()
for rect in rects where isValidNode rect do
(
addModifier rect (extrude amount:50000)
move rect [0,0,-200]
convertToPoly rect
for obj in objects where ( superclassof obj == GeometryClass and intersects obj rect) do
(
ProBoolean.CreateBooleanObjects obj (copy rect) 2 0 0
ProBoolean.SetPlanarEdgeRemoval obj 3
if superclassof obj == GeometryClass then
(
append newObj obj
)
)
)
StopCreating()
bigboxvalue = newObj[1].max.z
addModifier newrect (extrude amount:bigboxvalue)
gc()
)