Underlying Curve from an Edge

I have been fiddling around with using TopExp_Explorer to examine a shape built with BRepPrimeAPI_MakeBox. I am able to extract the edges of the shape but I'm wondering if I can then extract the underlying curve used to define the edges. Is there a way to do that?

Cathy

croberts's picture

Answering my own question. I found details in the FAQ

http://www.opencascade.org/devversion/faqextractgeom.php

Looks like I need to use BRepTools::Curve.

Cathy