BrepFace.RefitTrim

What about Brep.face and Surfce interference؟
nce?
Can anyone help me fix this error?

BrepFace.RefitTrim.gh (23.2 KB)

 A = BrepFace.RefitTrim(edge, knots, RhinoDocument.ModelAbsoluteTolerance, bSections, ref fitQuality);

@Mahdiyar

private void RunScript(Brep srf, int edgeIndex, bool bSections, ref object Surfaces, ref object FitQuality)
{
  var fitQuality = 0.0;
 Surfaces = srf.Faces[0].RefitTrim(srf.Edges[edgeIndex], new List<double>(0), RhinoDocument.ModelAbsoluteTolerance, bSections, ref fitQuality);
  FitQuality = fitQuality;
}

Ehsan.gh (13.0 KB)

1 Like