Skip to content

Commit

Permalink
Fix on TryGetExtrusion.
Browse files Browse the repository at this point in the history
  • Loading branch information
kike-garbo committed Dec 27, 2024
1 parent 6cd0507 commit d779d4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RhinoInside.Revit.External/Extensions/RhinoCommon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ public PlanarBrepFace(BrepFace f)

public NurbsCurve Loop
{
get { if (Plane.IsValid && loop is null) loop = Face.OuterLoop.To3dCurve().ProjectToPlane(Plane) as NurbsCurve; return loop; }
get { if (Plane.IsValid && loop is null) loop = Face.OuterLoop.To3dCurve()?.ToNurbsCurve().ProjectToPlane(Plane) as NurbsCurve; return loop; }
}
public Point3d Centroid
{
Expand Down

0 comments on commit d779d4f

Please sign in to comment.