Detailed Info Panel for selected entities

 From:  Michael Gibson
7868.2 In reply to 7868.1 
Hi Marco, I do want to implement a detailed info panel built in to MoI in the future, right now it will probably be fairly limited to do with a script though.


> 1) How to retrieve the number of control points of an entity, whatever the type of
> the entities (curves, surfaces, poly-surfaces)

Sorry there is not currently any mechanism in the script interface set up to access the control points of objects.


> 2) What's the Api call that's the right entry point to deeply query the
> structure of the entities ?
> For example : navigate, with the Api, from a selected poly-surface, and get all of
> the parts from which it's composed : styles, surfaces, lines, control points...

You can find what's currently available in the moi.idl file (see here: http://moi3d.com/wiki/Scripting) - look for "interface IMoiGeomObject" and everything defined inside of there is what's available on every object. Then curves extend that with the stuff under "interface IMoiCurve" and there are similar extensions for breps and faces.


> 3) Is there a way, trough the Api, to get the length of an edge ?
> And therefore to consequently retrieve the overall length of the edges
> of the whole object ?

An edge has the same interface as IMoiCurve, and there's a .getLength() method that you can call on either curves or edges for that. To get all edges of a BRep, call brep.getEdges() which returns an object list of all the edges in the BRep.

- Michael