@obhagwat29 wrote:
Script is not giving any output.
I have move the curves in Z direction by half of its length, made them into pipes and now trying to perform BrepBrep boolean operation to create a notch in input surface.I am not able to resolve an error!
where is it going wrong? have Attached script. and image.I think i know what’s the problem here, at some indexes there is no intersection taking place and it is returning null due to failure. If that’s right how can I solve it>
Thanks!//x is a list of surfaces, pi1 is a list of pipes and tolr = tolerance value
List be1 = new List();
for(int k = 0; k < x.Count;k++)
{
for(int l = 0; l < pi1.Count;l++)
{
Brep[] bP = Brep.CreateBooleanDifference(x[k], pi1[l], tolr);
if(bP != null && bP.Length > 0 )
{
be1.AddRange(bP);
}
else continue;
}
}
C = be1;
Posts: 1
Participants: 1