![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Directory Viewpoint Slideshow | ||||
VRML97 and ClassicVRML encodings use the term EXTERNPROTO, while XML and JSON encodings use the ExternProtoDeclare element. ExternProtoDeclare refers to a ProtoDeclare node declaration provided in another file. ExternProtoDeclare interfaces are defined by field statements (without IS/connect statements). Hint: ExternProtoDeclare is a definition only, add corresponding ProtoInstance nodes to create new instances. VRML97 and ClassicVRML encodings simply uses the prototype name to create an instance node, while XML and JSON encodings use the ProtoInstance element. ProtoInstance creates an instance node of a locally or externally declared prototype definition. ProtoDeclare/ExternProtoDeclare definitions are abstract, corresponding ProtoInstance nodes are concrete. ProtoInstance nodes typically contain fieldValue statements to override default field values defined in the original ProtoDeclare statement. Hint: the node type of a ProtoInstance exactly matches the first node in the corresponding ProtoDeclare/ProtoBody declaration. X3D Tooltips of interest: ExternProtoDeclare statement, field, ProtoDeclare statement, and ProtoInstance node with fieldValue statement. X3D Specification sections of interest: Core component, 7.2 Concepts and 7.2.5.9 EXTERNPROTO statement. X3D Examples Archives of related interest:
|
||||
This viewpoint slideshow is online at Viewpoint image version history at |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |