docs.unity3d.com
    Show / Hide Table of Contents

    Struct PlaneVoxel

    Namespace: Unity.MARS.Data.Synthetic
    Syntax
    [MovedFrom("Unity.MARS")]
    public struct PlaneVoxel

    Fields

    LayerCoordinates

    The column and row in the layer where this voxel exists

    Declaration
    public Vector2Int LayerCoordinates
    Field Value
    Type Description
    Vector2Int

    PointDensity

    Number of points within this voxel. A voxel only contributes to a plane if its point density exceeds a minimum threshold.

    Declaration
    public int PointDensity
    Field Value
    Type Description
    Int32

    PointYOffset

    Average local y offset of all points within this voxel. If a voxel is part of a plane, this value affects the y offset of the plane relative to the layer origin.

    Declaration
    public float PointYOffset
    Field Value
    Type Description
    Single
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023