| Name | Summary |
|---|---|
data class AnchorData(val anchor: Anchor, val semanticClassifications: List<String>, val transform: TransformData, val planeBounds: PlaneBoundsData? = null, val volumeBounds: VolumeBoundsData? = null, val planeBoundary2D: List<Vector2>? = null, val globalMesh: GlobalMeshData? = null) | |
enum AnchorMeshSelectionMode : Enum<AnchorMeshSelectionMode> Selection mode when choosing from multiple meshes. | |
class AnchorMeshSpawner(val mrukFeature: MRUKFeature, var spawnGroups: Map<MRUKLabel, AnchorMeshSpawner.AnchorMeshGroup>, val spawnMode: MRUKSpawnMode = MRUKSpawnMode.CURRENT_ROOM_ONLY) The AnchorMeshSpawner class is designed to facilitate the spawning of 3D meshes (glb/gltf) at scene anchor locations. It is intended for use in conjunction with the MRUKFeature. This class automatically spawns meshes in a room when new anchors are loaded by the MRUKFeature, ensuring that the meshes remain synchronized with the current anchors. The spawning behavior can be customized using the spawnMode. For usage examples, refer to the MrukSampleActivity. Note that if you want to generate walls and floors without providing meshes for it refer to the AnchorProceduralMesh. The spawnGroups parameter specifies which meshes to spawn based on a label. It is crucial to invoke the destroy() method when the AnchorMeshSpawner instance is no longer in use. | |
class AnchorProceduralMesh(val mrukFeature: MRUKFeature, var labelToConfig: Map<MRUKLabel, AnchorProceduralMeshConfig>, val spawnMode: MRUKSpawnMode = MRUKSpawnMode.CURRENT_ROOM_ONLY, var wallTexCoordModeU: MRUKWallTexCoordModeU = MRUKWallTexCoordModeU.METRIC, var wallTexCoordModeV: MRUKWallTexCoordModeV = MRUKWallTexCoordModeV.METRIC, var anchorTexCoordMode: MRUKAnchorTexCoordMode = MRUKAnchorTexCoordMode.STRETCH, var cutHoleLabels: List<MRUKLabel> = listOf(MRUKLabel.WINDOW_FRAME, MRUKLabel.DOOR_FRAME)) The AnchorProceduralMesh is designed to automatically generate meshes for the given labels in a room. It is able to generate planes and boxes. In addition, it’s possible to cut holes into planes. This can be useful for windows. It’s also possible to spawn physics colliders for the generated meshes. AnchorProceduralMesh is intended for use in conjunction with the MRUKFeature. This class automatically spawns meshes in a room when new anchors are loaded by the MRUKFeature, ensuring that the meshes remain synchronized with the current anchors. The spawning behavior can be customized using the spawnMode. For usage examples, refer to the MrukSampleActivity. If you want to be able to spawn 3D meshes from glb or gltf files refer to AnchorMeshSpawner. It is crucial to invoke the destroy() method when the AnchorMeshSpawner instance is no longer in use. | |
class AnchorProceduralMeshConfig The AnchorProceduralMeshConfig contains configuration to generate a procedural mesh. It contains the material and whether a physics collider should be generated. | |
object AnchorSerializer | |
data class GlobalMeshData(val positions: FloatArray, val indices: IntArray) | |
enum MRUKAnchorTexCoordMode : Enum<MRUKAnchorTexCoordMode> The texture coordinate mode for planes and volumes. | |
enum MRUKLoadDeviceResult : Enum<MRUKLoadDeviceResult> Enum class representing the possible results of a load device operation. | |
data class MRUKMesh(val positions: FloatArray, val normals: FloatArray, val indices: IntArray) | |
enum MRUKNativeResult : Enum<MRUKNativeResult> | |
class MRUKNativeResultException(val errorCode: Int) : Exception | |
data class MRUKPlaneUV(val offset: Vector2, val scale: Vector2) Data container to store offset and scale of a planes UV coordinates. | |
interface MRUKSceneEventListener Events that occur during the MRUK Scene lifecycle. | |
enum MRUKSpawnMode : Enum<MRUKSpawnMode> | |
class | |
enum MRUKWallTexCoordModeU : Enum<MRUKWallTexCoordModeU> The texture coordinate mode for walls U channel. | |
enum MRUKWallTexCoordModeV : Enum<MRUKWallTexCoordModeV> The texture coordinate mode for walls V channel. | |
data class RoomData(val anchor: Anchor, val roomLayout: RoomLayoutData, val anchors: List<AnchorData>) | |
data class RoomLayoutData(val floorUuid: UUID, val ceilingUuid: UUID, val wallsUuid: List<UUID>) | |
enum SurfaceType : Enum<SurfaceType> | |
object UUIDSerializer | |
object Vector2Serializer | |
object Vector3Serializer | |