How to convert BrepFace to circle type

How to convert BrepFace to circle type

Is this a RhinoCommon question or a Grasshopper component question?

use python

  1. Dup brep face border
  2. Take COG of brep face
  3. Calculate distance to the border and the COG
  4. Fit a circle based on the found radius and the initial brepface and ensure it intersects

To add to @farouk.serragedine answer, if the brepface is a disc, then it’ll have a single, circular edge. You can find that edge because it’s indexed from the face. Converting rhino curves into circles is easy if they are in fact circular, you can use the TryGetArc or TryGetCircle methods on curves.