Creates a geometry behavior by synchronously importing the given VRML or .X file. Synchronous loads are blocking calls, which means that ticking will not continue on any model until all synchronous downloads are completed. These downloads should be small and listed before asynchronous downloads. Use asynchronous downloads for more complex images and sounds. See below for a description of the asynchronous import method.
public static GeometryBvr importGeometry(
URL url
);
Returns the GeometryBvr object.
Creates a geometry behavior by asynchronously importing the given VRML or .X file. Asynchronous downloads should be listed after synchronous ones and used for more complex sounds and images. For a description of the synchronous import method, see above.
public static GeometryBvr importGeometry(
URL url,
GeometryBvr geoStandIn,
DXMEvent[] ev,
NumberBvr[] progress,
NumberBvr[] size
);
Returns the GeometryBvr object.
Creates a geometry behavior that contains the given sound behavior. The bounding box is the nullary bounding box, where the maximum coordinate is less than the minimum coordinate.
public static GeometryBvr soundSource(
SoundBvr sound
);
Returns the GeometryBvr object.
Creates a spotlight geometry. A spotlight is a positioned, directed light source initially located at the origin and directed along the negative z-axis. Examples of real-world spotlights include desklamps, headlights, and flashlights. The bounding box is the nullary bounding box, where the maximum extent is less than the minimum extent.
The fullcone parameter specifies the half-angle of the region that will receive the full intensity of the spotlight. This parameter can have values from 0.00 to pi.
The cutoff parameter specifies the half-angle of the region past which surfaces will receive no illumination. This parameter can have values from the value of fullcone to pi.
public static GeometryBvr spotLight(
NumberBvr fullcone,
NumberBvr cutoff
);
Returns the GeometryBvr object.
Surfaces receive illumination from the spotlight in the following manner:
These rules are illustrated in the following diagram:
The following diagram shows how the intensity of the spotlight changes in relationship to the angle:
Creates a geometry behavior by combining the given geometries. The new geometry contains all elements of the original geometries. The bounding box of a set of unioned geometries is simply the union of the bounding boxes of each of the geometries.
public static GeometryBvr union(
GeometryBvr g1,
GeometryBvr g2
);
Returns the GeometryBvr object.
Creates a geometry behavior by combining the geometries in the array. The new geometry contains all elements of the original geometries. The bounding box of a set of unioned geometries is simply the union of the bounding boxes of each of the geometries.
public static GeometryBvr unionArray(
GeometryBvr[],
geometries
);
Returns the GeometryBvr object.
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.