docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetFittingCylinder

    GetFittingCylinder(OccurrenceList, bool, Point3?)

    Returns the fitting cylinder of a set of occurrences (based on MBB)

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public Affine GetFittingCylinder(OccurrenceList occurrences, bool useAABB = true, Point3? forcedAxis = null)
    Parameters
    Type Name Description
    OccurrenceList occurrences

    Occurrences to fit

    bool useAABB

    If true use the global Axis Aligned Bounding Box (AABB), else use a Minimum Bounding Box (MBB)

    Point3? forcedAxis

    Forced axis of the Cylinder when using MBB

    Returns
    Type Description
    Affine
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)