List of entities and organisation ?
-
Hello,
Do you know if there is a schematic/list of the SketchUp geometrical entities and of their relationships?
For example : ArcCurve (arcs and circles) is a subclass of the Curve class, and an edge is a part of a random curve if
edge.curvereturn a curve, and a part of an arccurve ifedge.curvereturn an arccurve.Best regards,
Renaud. -
-
The new docs (work in process) will make the class hierarchy clearer: http://ruby.sketchup.com/
-
And this diagram is a bit out of date. (There are some missing classes, and perhaps changes since it was drawn back in the v7 and v8 days.)
http://www.sketchup.com/intl/en/developer/docs/diagram.php
Also,...
@iltis said:
For example : ArcCurve (arcs and circles) is a subclass of the Curve class, and an edge is a part of a random curve ...
Implies an incorrect assumption.
The SKP document object hierarchy (ie, the model database tree) is a wholly separate construct than the Ruby class hierarchy and relationships.
For example, the
Sketchup::Edgeclass is not a sub-class of theSketchup::Curveclass. Both, are descendants of theSketchup::Entityclass.Sketchup::CurveandSketchup::ArcCurveobjects are special collection classes that connect edges together, but are not themselves an actual "model element".Sketchup::Edgeobjects are an actual model element, and so are a sub-class ofSketchup::Drawingelement.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better đź’—
Register LoginAdvertisement