forked from x3dom/x3dom
-
Notifications
You must be signed in to change notification settings - Fork 0
Prototypes
Andreas Plesch edited this page Jun 12, 2020
·
2 revisions
allow multiple connections per protofield
Notes about design of a prototype realization
Treat ProtoInstance as true statement, eg. not as a node.
While parsing, create x3dom nodes for protobody of a protoinstance:
a) copy protobody dom
b) go through nodes and create x3dom nodes for each dom node.
c) setupTree for each node individually since first node is special = typeNode
d) problematic if first node is also protoinstance of another prototype since no parent