• Articles
  • Api Documentation
Show / Hide Table of Contents
  • AlchemyBow.Navigation
    • AlchemyNavigationSystem
    • BasicAgent
    • FacesHolder
    • NavigationAct
    • NavigationFaceWrapper
    • NavigationInfo
    • PathfindingRequest
    • PathfindingRequest.PathType
    • PathfindingRequest.Status
  • AlchemyBow.Navigation.BackgroundProcessing
    • BackgroundProcessor
    • BackgroundProcessor.States
    • BuildingProcess
    • IBackgroundCommand
    • PathfindingProcess
    • RegisterFaceCommand
    • UnregisterFaceCommand
  • AlchemyBow.Navigation.Collections
    • OrderedSet<T>
    • OrderedSetNode<T>
    • OrderedSetRangeComparer<T>
  • AlchemyBow.Navigation.DebugUnits
    • AlchemyNavigationSystemDebugUnit
    • CompositeSurfaceDrawer
    • GizmosSurfaceDrawer
    • ISurfaceDrawer
    • MinimalGizmosSurfaceDrawer
  • AlchemyBow.Navigation.HighLevel
    • MeshBasedBake
    • MeshBasedBakeGroup
    • MeshBasedBakeSettings
    • WorldMesh
  • AlchemyBow.Navigation.PropertyAttributes
    • AreaIndexAttribute
    • AreaMaskAttribute
    • LayerIndexAttribute
  • AlchemyBow.Navigation.Settings
    • AlchemyNavigationSettingsPreset
    • NavigationAreaSettings
    • NavigationLayerSettings
    • NavigationSettings
  • AlchemyBow.Navigation.Simple
    • SimpleAgent
  • AlchemyBow.Navigation.Simple.Elements
    • AvoidanceGroup
    • AvoidanceModifier
    • CachedFace
    • ISteeredBehaviour
    • MovementModifier
    • PathProgress
  • AlchemyBow.Navigation.Surfaces
    • Edge
    • Face
    • FacesByMagnitudeRangeComparer
    • NavigationSurface
    • SurfaceRaycastHit
    • Usage<TUser>
    • UsageTrackingObject<TUser>
    • Vertex
    • VertexByPositionComparer
  • AlchemyBow.Navigation.Surfaces.SafeAccess
    • IImmutableFace
    • SurfaceImmutableRaycastHit
  • AlchemyBow.Navigation.Utilities
    • ChannelUnwrapper
    • FaceAStar
    • FaceStarUnit
    • Funnel
    • ICommand

Class Face

Describes three connected edges.

Inheritance
System.Object
Face
Implements
IImmutableFace
Namespace: AlchemyBow.Navigation.Surfaces
Assembly: AlchemyBow.Navigation.dll
Syntax
public class Face : IImmutableFace

Constructors

| Improve this Doc View Source

Face(Edge, Edge, Edge, NavigationFaceWrapper)

Creates an instance of the Face class.

Declaration
public Face(Edge e1, Edge e2, Edge e3, NavigationFaceWrapper handle)
Parameters
Type Name Description
Edge e1

Any edge.

Edge e2

Any edge.

Edge e3

Any edge.

NavigationFaceWrapper handle

The handle to the face.

Fields

| Improve this Doc View Source

ab

The first edge.

Declaration
public readonly Edge ab
Field Value
Type Description
Edge

The first edge.

| Improve this Doc View Source

bc

The second edge.

Declaration
public readonly Edge bc
Field Value
Type Description
Edge

The second edge.

| Improve this Doc View Source

ca

The third edge.

Declaration
public readonly Edge ca
Field Value
Type Description
Edge

The third edge.

| Improve this Doc View Source

handle

The handle to the face.

Declaration
public readonly NavigationFaceWrapper handle
Field Value
Type Description
NavigationFaceWrapper

The handle to the face.

| Improve this Doc View Source

plane

The cached plane of the face.

Declaration
public readonly Plane plane
Field Value
Type Description
UnityEngine.Plane

The cached plane of the face.

Properties

| Improve this Doc View Source

A

Gets the first vertex of the face.

Declaration
public Vector3 A { get; }
Property Value
Type Description
UnityEngine.Vector3

The first vertex of the face.

| Improve this Doc View Source

ABNeighbour

The neighbour of the first edge or null.

Declaration
public Face ABNeighbour { get; }
Property Value
Type Description
Face

The neighbour of the first edge or null

| Improve this Doc View Source

AreaMask

Gets the index of the area to witch the face belongs, as a mask.

Declaration
public int AreaMask { get; }
Property Value
Type Description
System.Int32

The index of the area to witch the face belongs, as a mask.

| Improve this Doc View Source

B

Gets the second vertex of the face.

Declaration
public Vector3 B { get; }
Property Value
Type Description
UnityEngine.Vector3

The second vertex of the face.

| Improve this Doc View Source

BCNeighbour

The neighbour of the second edge or null.

Declaration
public Face BCNeighbour { get; }
Property Value
Type Description
Face

The neighbour of the second edge or null.

| Improve this Doc View Source

C

Gets the third vertex of the face.

Declaration
public Vector3 C { get; }
Property Value
Type Description
UnityEngine.Vector3

The third vertex of the face.

| Improve this Doc View Source

CANeighbour

The neighbour of the third edge or null.

Declaration
public Face CANeighbour { get; }
Property Value
Type Description
Face

The neighbour of the third edge or null.

| Improve this Doc View Source

Plane

Gets the plane of the face.

Declaration
public Plane Plane { get; }
Property Value
Type Description
UnityEngine.Plane

The plane of the face.

| Improve this Doc View Source

Weight

Gets the weight of the face.

Declaration
public float Weight { get; }
Property Value
Type Description
System.Single

The weight of the face.

Methods

| Improve this Doc View Source

CalculateCenter()

Calculates the center of the face.

Declaration
public Vector3 CalculateCenter()
Returns
Type Description
UnityEngine.Vector3

The center of the face.

| Improve this Doc View Source

GetSharedEdge(Face)

Gets the edge that is shared with the indicated face.

Declaration
public Edge GetSharedEdge(Face other)
Parameters
Type Name Description
Face other

The face to find a shared edge.

Returns
Type Description
Edge

The shared edge or null.

| Improve this Doc View Source

IsPointInsideFace(Vector3, Single)

Determines whether an point is on the face.

Declaration
public bool IsPointInsideFace(Vector3 point, float offset = 0F)
Parameters
Type Name Description
UnityEngine.Vector3 point

The point to check.

System.Single offset

Calculation offset. (optional)

Returns
Type Description
System.Boolean

true if the is on the face; otherwise, false.

| Improve this Doc View Source

Raycast(Ray, out Single)

Raycasts the face.

Declaration
public bool Raycast(Ray ray, out float distance)
Parameters
Type Name Description
UnityEngine.Ray ray

The starting point and direction of the ray.

System.Single distance

If true is returned, distance will be the signed distance to the intersection point.

Returns
Type Description
System.Boolean

true if the ray intersects with the face; otherwise, false.

Implements

IImmutableFace
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX