MoI discussion forum
MoI discussion forum

Full Version: extract information regarding an object (Details)

Show messages: All  1  2-3

From: Frenchy Pilou (PILOU)
14 Aug   [#2] In reply to [#1]
You have details' button of a selection on page Up right that give some infos that you want! ;)
and then the Brower menu section that gives the rest!
From: Michael Gibson
15 Aug   [#3] In reply to [#1]
Hi hadri1,

re:
> i would like to start with a curve element and print information such as
> the number of points and number of corner points.

You can get the number of edit points for a curve by the .numEditPoints property.

For corner points, it kind of depends on what your exact definition of what a corner point is.

Do you want the spots on a curve where the curve has a sharp corner in it? Or there is a kind of related type of corner point where curve is currently smooth at that spot but if you were to move it you will then get a sharp corner there.

Actual sharp corners will cause a curve to be divided into separate segments.

You can get the number of segments in a curve by calling:
var segment_list = crv.getSubObjects();
var num_segments = segment_list.length;


> for surface i could would like to have information on U and V iso curves.

In v5 a face has face.numControlPointsU and face.numControlPointsV properties for the number of columns and rows in the surface's control point grid.

- Michael

Show messages: All  1  2-3