ObjectInstanceState.TryCreatePlacement(SpatialGraphCoordinateSystem) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes an object which maps coordinates in the model's coordinate space onto their corresponding locations in the Spatial Graph. The placement of the center of the model depends on where it is being viewed from, and will be computed by weighting each control point by its proximity to the view. This enables large models to smoothly span across the large physical space they occupy as the user moves around, despite non-rigid correspondence between the spaces, e.g. due to head tracking error, or imperfections in the model. A reference coordinate system must be provided to enable efficient per-frame computation of the pose of the object. The view pose provided each frame must be expressed in this reference coordinate system, though for convenience this may be moderated through a separate "world" coordinate system if necessary (for example, the native coordinate system used by the application versus the interop coordinate system used to initialize the placement). Returns null if the reference coordinate system cannot be located.
public Microsoft.Azure.ObjectAnchors.SpatialGraph.SpatialGraphPlacement TryCreatePlacement (Microsoft.Azure.ObjectAnchors.SpatialGraph.SpatialGraphCoordinateSystem referenceCoordinateSystem);
member this.TryCreatePlacement : Microsoft.Azure.ObjectAnchors.SpatialGraph.SpatialGraphCoordinateSystem -> Microsoft.Azure.ObjectAnchors.SpatialGraph.SpatialGraphPlacement
Public Function TryCreatePlacement (referenceCoordinateSystem As SpatialGraphCoordinateSystem) As SpatialGraphPlacement
Parameters
- referenceCoordinateSystem
- SpatialGraphCoordinateSystem
The Spatial Graph coordinate system which will be used to compute view-dependent poses.