Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
3

Using the new CSG API to cut parts into 2?

Asked by
Elixcore 1337 Moderation Voter
6 years ago

Hello, I have used the CSG API before but from my experience it isn't possible to create 2 parts using just the CSG API and I was wondering how did this person do this and how would I be able to replicate it? Gyazo

Simply using SubtractAsync will not do it, cos that just creates a union, the person said that he did it using CSG but I am sure there are more steps to this that I do not know of, so how would I go around making 2 parts out of the union that's been cut?

0
I didn't even know you could CSG with scripts, so I am a total caveman in this situation, so I'll think within my knowledge, but outside the box. So, shouldn't you have 4 parts, 2 to make the one sliced union? Cvieyra2test 176 — 6y
0
e.g. once a part gets targeted for a slash, make 2 copies. Then use the first part & the first copy to make one union Cvieyra2test 176 — 6y
0
Forgot I couldn't indent -- as I was saying, then utilize the last copy by doing this: get a copy of the first slashed union then union it with the last copy to make one final union Cvieyra2test 176 — 6y

1 answer

Log in to vote
0
Answered by 5 years ago

First clone the part you're subtracting from. Then do the subtraction. Then subtract the new part you've made from the clone. You'll have two parts that, together, make the shape of the original part.

0
Yo, this thing is 6 months old and I already figured it out a while ago but I appreciate you answering. Elixcore 1337 — 5y
Ad

Answer this question