Get center point of an arc

I created this using MeshBuilder.CreateCylinder and CSG2. I want to be able to pivot it at the center of the arc as shown in the image. How do I go about getting the center point of it? The angle, inner and outer radius can change at any time.

CGS2 functions include an options object. Set centerMesh to false and the mesh won’t be moved after intersion or subtract. This should help you locate your pivot point using the build parameters.

mesh.setPivotPoint(Vector3)

or alternatively move the mesh to the offset position so the world origin (0,0,0) is where you want the pivot to be and use bakeCurrentTransforms

I finally found a function to calculate the center of the arc and used setPivotPoint.