The M_Shape class represents a visible shape in Moho. A shape can either be a fill, an outline, or both.
Returns the number of edges that make up this shape.
Return value (int): the number of edges that make up this shapeReturns information about a specific edge. Given an edge on the shape, this function returns the curve id and segment id of the actual curve in the underlying mesh.
Return value: none edgeID (int): the id number of the edge (0 for the first edge in a shape) curveID (int): curve id segID (int): which segment of the curve is this edgeCopies the style properties from another shape.
Return value: none fromShape (M_Shape): shape to copy fromRemoves all inherited styles from the shape.
Return value: noneTrue if the shape is selected, otherwise false.
Name of the shape.
True if the shape is filled, otherwise false.
True if the shape has an outline, otherwise false.
True if a fill is allowed, whether the shape actually has a fill or not.
The shape's style properties. The style defines a shape's fill color, line width, etc.