![]() |
Cesium for Unity 1.15.2
|
Represents the EXT_mesh_features of a glTF primitive in a Cesium3DTileset. More...
Public Member Functions | |
CesiumFeatureIdSet[] | GetFeatureIdSetsOfType (CesiumFeatureIdSetType type) |
Gets all the feature ID sets of the given type. | |
Int64 | GetFeatureIdFromTriangle (int triangleIndex, Int64 featureIdSetIndex=0) |
Gets the feature ID associated with the given triangle, specified by index. | |
Int64 | GetFeatureIdFromRaycastHit (RaycastHit hitInfo, Int64 featureIdSetIndex=0) |
Gets the feature ID from the given raycast hit, assuming it has hit a glTF primitive component containing this CesiumPrimitiveFeatures. | |
Static Public Member Functions | |
static int | GetFirstVertexFromHitTriangle (RaycastHit hitInfo) |
Given a successful raycast hit, finds the index of the first vertex from the hit triangle. | |
Properties | |
CesiumFeatureIdSet[] | featureIdSets [get, set] |
The CesiumFeatureIdSets available on this primitive. | |
Represents the EXT_mesh_features of a glTF primitive in a Cesium3DTileset.
It holds views of the feature ID sets associated with this primitive.
This component is automatically added to primitive game objects if they contain the extension.
Definition at line 17 of file CesiumPrimitiveFeatures.cs.
|
inline |
Gets the feature ID from the given raycast hit, assuming it has hit a glTF primitive component containing this CesiumPrimitiveFeatures.
A primitive may have multiple feature ID sets, so this allows a feature ID set to be specified by index. This value should index into the array of CesiumFeatureIdSets in the CesiumPrimitiveFeatures. If the specified feature ID set index is invalid, this returns -1.
hitInfo | The raycast hit info. |
featureIdSetIndex | The index of the target feature ID set. |
Definition at line 115 of file CesiumPrimitiveFeatures.cs.
|
inline |
Gets the feature ID associated with the given triangle, specified by index.
A primitive may have multiple feature ID sets, so this allows a feature ID set to be specified by index.This value should index into the array of CesiumFeatureIdSets in the CesiumPrimitiveFeatures. If the specified feature ID set index is invalid, this returns -1.
triangleIndex | The index of the target triangle. |
featureIdSetIndex | The index of the target feature ID set. |
Definition at line 88 of file CesiumPrimitiveFeatures.cs.
|
inline |
Gets all the feature ID sets of the given type.
If the primitive has no sets of that type, the returned array will be empty.
type | The desired feature ID set type. |
Definition at line 70 of file CesiumPrimitiveFeatures.cs.
|
inlinestatic |
Given a successful raycast hit, finds the index of the first vertex from the hit triangle.
hitInfo | The raycast hit. |
Definition at line 58 of file CesiumPrimitiveFeatures.cs.
|
getset |
The CesiumFeatureIdSets available on this primitive.
Definition at line 22 of file CesiumPrimitiveFeatures.cs.