TextBatchPrimitiveSetPartial Method (IEnumerableCartesian, IEnumerableString, IEnumerableInt32, IndicesOrderHint) |
Namespace: AGI.Foundation.Graphics
public void SetPartial( IEnumerable<Cartesian> positions, IEnumerable<string> text, IEnumerable<int> indices, IndicesOrderHint indicesOrderHint )
Exception | Condition |
---|---|
InvalidOperationException | The primitive's SetHint property is not Partial. Construct the primitive using Partial to order to call this method. |
InvalidOperationException | Cannot call this method until the primitive is first defined with Set. It is not possible to partially update an empty primitive. |
ArgumentNullException | positions and text are null. Or indices is null. |
ArgumentException | if non-null, positions and text must contain the same number of elements. |
To call SetPartial, the primitive must be constructed with Partial so the primitive builds the data structures necessary for partial updates. See the Set Hint topic for more information on selecting an appropriate value.
If the primitive's AutomaticallyComputeBoundingSphere property is , the primitive's BoundingSphere is computed based the primitive's unmodified positions and the updated positions from the positions collection. Otherwise, it is the caller's responsibility to update the primitive's BoundingSphere to a sphere that encompasses all the positions in the primitive.