Search Results for

    Show / Hide Table of Contents

    Class RnModelEx

    Inheritance
    System.Object
    RnModelEx
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: PLATEAU.RoadNetwork.Structure
    Assembly: cs.temp.dll.dll
    Syntax
    public static class RnModelEx

    Methods

    CalibrateIntersectionBorder(RnModel, RnRoad, RnModelEx.CalibrateIntersectionBorderOption)

    roadが交差点と隣接するとき, 交差点からmeterだけ離れた位置で道路を分割する.

    Declaration
    public static void CalibrateIntersectionBorder(this RnModel self, RnRoad road, RnModelEx.CalibrateIntersectionBorderOption option)
    Parameters
    Type Name Description
    RnModel self
    RnRoad road
    RnModelEx.CalibrateIntersectionBorderOption option

    CalibrateIntersectionBorderForAllRoad(RnModel, RnModelEx.CalibrateIntersectionBorderOption)

    道路グループの交差点との境界線の角度を調整する(垂直になるようにする)

    Declaration
    public static void CalibrateIntersectionBorderForAllRoad(this RnModel self, RnModelEx.CalibrateIntersectionBorderOption option)
    Parameters
    Type Name Description
    RnModel self
    RnModelEx.CalibrateIntersectionBorderOption option

    CanSliceIntersectionHorizontal(RnModel, RnIntersection, LineSegment3D, out RnModelEx.SliceIntersectionCheckResult)

    intersectionの水平切断可能かチェックする

    Declaration
    public static RnModelEx.RoadCutResult CanSliceIntersectionHorizontal(this RnModel self, RnIntersection inter, LineSegment3D lineSegment, out RnModelEx.SliceIntersectionCheckResult res)
    Parameters
    Type Name Description
    RnModel self
    RnIntersection inter
    LineSegment3D lineSegment
    RnModelEx.SliceIntersectionCheckResult res
    Returns
    Type Description
    RnModelEx.RoadCutResult

    CanSliceRoadHorizontal(RnModel, RnRoad, LineSegment3D, out LineCrossPointResult)

    roadの水平切断可能かチェックする

    Declaration
    public static RnModelEx.RoadCutResult CanSliceRoadHorizontal(this RnModel self, RnRoad road, LineSegment3D lineSegment, out LineCrossPointResult res)
    Parameters
    Type Name Description
    RnModel self
    RnRoad road
    LineSegment3D lineSegment
    LineCrossPointResult res
    Returns
    Type Description
    RnModelEx.RoadCutResult

    CanSliceRoadHorizontalAndConvert2Intersection(RnModel, RnRoad, LineSegment3D, LineSegment3D)

    道路を2か所で水平切断できるかチェックする

    Declaration
    public static RnModelEx.RoadCutResult CanSliceRoadHorizontalAndConvert2Intersection(this RnModel self, RnRoad road, LineSegment3D lineSegment1, LineSegment3D lineSegment2)
    Parameters
    Type Name Description
    RnModel self
    RnRoad road
    LineSegment3D lineSegment1
    LineSegment3D lineSegment2
    Returns
    Type Description
    RnModelEx.RoadCutResult

    SliceIntersectionHorizontal(RnModel, RnIntersection, LineSegment3D)

    interをlineSegmentで水平分割し、1つのRoadと1つのIntersectionに分割する

    Declaration
    public static RnModelEx.SliceIntersectionResult SliceIntersectionHorizontal(this RnModel self, RnIntersection inter, LineSegment3D lineSegment)
    Parameters
    Type Name Description
    RnModel self
    RnIntersection inter
    LineSegment3D lineSegment
    Returns
    Type Description
    RnModelEx.SliceIntersectionResult

    SliceRoadHorizontal(RnModel, RnRoad, LineSegment3D)

    roadをlineSegmentで水平分割し、2つのRoadに分割する

    Declaration
    public static RnModelEx.SliceRoadHorizontalResult SliceRoadHorizontal(this RnModel self, RnRoad road, LineSegment3D lineSegment)
    Parameters
    Type Name Description
    RnModel self
    RnRoad road
    LineSegment3D lineSegment
    Returns
    Type Description
    RnModelEx.SliceRoadHorizontalResult

    SliceRoadHorizontalAndConvert2Intersection(RnModel, RnRoad, LineSegment3D, LineSegment3D)

    道路を2か所で水平切断し、中央の道路を交差点にする.

    Declaration
    public static void SliceRoadHorizontalAndConvert2Intersection(this RnModel self, RnRoad road, LineSegment3D lineSegment1, LineSegment3D lineSegment2)
    Parameters
    Type Name Description
    RnModel self
    RnRoad road
    LineSegment3D lineSegment1
    LineSegment3D lineSegment2

    TrySliceRoadHorizontalNearByBorder(RnModel, RnRoad, RnModelEx.CalibrateIntersectionBorderOption, out RnRoad, out RnRoad, out RnRoad)

    roadが交差点と隣接するとき, 交差点からmeterだけ離れた位置で道路を分割する. prevSideRoad, centerSideRoad, nextSideRoadの3つの道路が返る ただし、片方としか分割されなかった場合などはその場所にはnullが入る

    Declaration
    public static bool TrySliceRoadHorizontalNearByBorder(this RnModel self, RnRoad road, RnModelEx.CalibrateIntersectionBorderOption option, out RnRoad prevSideRoad, out RnRoad centerSideRoad, out RnRoad nextSideRoad)
    Parameters
    Type Name Description
    RnModel self
    RnRoad road
    RnModelEx.CalibrateIntersectionBorderOption option
    RnRoad prevSideRoad
    RnRoad centerSideRoad
    RnRoad nextSideRoad
    Returns
    Type Description
    System.Boolean
    In This Article
    Back to top PLATEAU SDK for Unity