ParallelGraphics
Home  »  Developer Zone  »  Products  »  Cortona VRML Client  »  VRML Extensions  »  CortonaExtrusion
Up to VRML Extensions

AdvancedAppearance 

Animated GIF 

BumpMap 

Collision Detection 

CortonaExtrusion 

CubeEnvironment 

DirectX 9.0 Shaders 

Drag & Drop 

EventUtilities 

Flash animations 

FlashMovie 

FontStyle 

Inline Extension 

Interpolator Nodes 

Keyboard Input 

Layers and 2D Nodes 

MipMap 

NavigationInfo 

NURBS 

OrderedGroup 

Panel and HTMLText 

QuickTime 

SFVec2f Interpolator 

SphereEnvironment 

Splines 

Three-Dimensional Text 

TextureTransform3 

TransformSensor 

ZGroup 


Subscribe to Newsletter
 


Google Searchsite search:

 

%(domain)s %(domain)s
Install Cortona VRML Client!

Outline 3D


CortonaExtrusion

CortonaExtrusion is an extension of the standard Extrusion node. It allows for preventing the twist of extrusion models that have complicated spines. CortonaExtrusion has preventTwist field, which value determines how the Z-axis of the SCP is computed.

If preventTwist is FALSE, then CortonaExtrusion is identical to the standard Extrusion. The orientation of each cross-section is calculated from the local curvature of the spine. In some cases this algorithm can cause undesirable twists and distortions of the surface.

The Z-axis for points other than the first or last is determined as follows:

z = (spine[i+1] - spine[i]) * (spine[i-1] - spine[i])

If preventTwist is TRUE, then the orientation of each cross-section (except the first one) is approximately parallel to the orientation of the previous cross-section. This algorithm can help avoid undesirable twists and distortions.
The Z-axis for points other than the first or last is determined as follows:

z = x[i-1] * y[i]

CortonaExtrusion {
  eventIn MFVec2f     set_crossSection
  eventIn MFRotation  set_orientation
  eventIn MFVec2f     set_scale
  eventIn MFVec3f     set_spine
  field	  SFBool      preventTwist FALSE
  field	  SFBool      beginCap     TRUE
  field	  SFBool      ccw          TRUE
  field	  SFBool      convex       TRUE
  field	  SFFloat     creaseAngle  0
  field	  MFVec2f     crossSection [1 1 1 -1 -1 -1  -1  1  1  1]
  field	  SFBool      endCap       TRUE
  field   MFRotation  orientation  [0 0 1 0]
  field   MFVec2f     scale        [1 1]
  field   SFBool      solid        TRUE
  field   MFVec3f     spine        [0 0 0 0 1 0]  
}


Example
scene size: 1.6KB
resources size: 7.5KB
archive size: 9.3KB
view online download

Last updated: Fri, 21 Nov 2008
© 2000-2008 ParallelGraphics. All rights reserved. Terms of use.