Repository navigation
NavigationMeshSourceGeometryData
Home | API by Category | Complete API Index | API Status
| Field | Value |
|---|---|
| Full name | Electron2D.NavigationMeshSourceGeometryData |
| Namespace | Electron2D |
| Kind | class |
| Category | API Navigation |
Owns copied planar source contours used to bake navigation geometry.
public sealed class Electron2D.NavigationMeshSourceGeometryDataSnapshots and exports do not share caller arrays. State is synchronized; callbacks run after mutation. Bounds include all source families. HasData reports traversable contours, independently of obstructions.
Inherits: Resource
Kind: constructor
public NavigationMeshSourceGeometryData()Creates empty source geometry.
Kind: method
public System.Void AddObstructionOutline(System.ReadOnlySpan<Electron2D.Vector2> outline)Appends a copied obstruction contour when it has at least two points.
-
outline: Finite root-local points.
Kind: method
public System.Void AddProjectedObstruction(System.ReadOnlySpan<Electron2D.Vector2> vertices, System.Boolean carve)Appends a projected obstruction.
-
vertices: At least two finite points. -
carve: Applies after clearance erosion when true.
Kind: method
public System.Void AddTraversableOutline(System.ReadOnlySpan<Electron2D.Vector2> outline)Appends a copied traversable contour when it has at least two points.
-
outline: Finite root-local points.
Kind: method
public System.Void AppendObstructionOutlines(Electron2D.Vector2[][] outlines)Appends copied obstruction contours.
-
outlines: Finite point arrays.
Kind: method
public System.Void AppendTraversableOutlines(Electron2D.Vector2[][] outlines)Appends copied traversable contours.
-
outlines: Finite point arrays.
Kind: method
public System.Void Clear()Clears all source contours and projected obstructions.
Kind: method
public System.Void ClearProjectedObstructions()Clears only projected obstructions.
CopyCustomStateTo(Electron2D.Resource, System.Boolean, Electron2D.DeepDuplicateMode, System.Func<Electron2D.Resource, Electron2D.Resource>, System.Func<Electron2D.Resource, Electron2D.Resource>)
Kind: method
protected override System.Void CopyCustomStateTo(Electron2D.Resource target, System.Boolean deep, Electron2D.DeepDuplicateMode subresourceMode, System.Func<Electron2D.Resource, Electron2D.Resource> duplicateSubresource, System.Func<Electron2D.Resource, Electron2D.Resource> forceDuplicateSubresource)Kind: method
protected override Electron2D.Resource CreateDuplicateInstance()Kind: method
public Electron2D.Rect2 GetBounds()Returns the enclosing bounds of every source point.
Zero for empty input.
-
T:System.OverflowException: The finite coordinate span cannot be represented by Rect2.
Kind: method
public Electron2D.Vector2[][] GetObstructionOutlines()Returns copied obstruction contours.
Independent arrays.
Kind: method
public Electron2D.NavigationProjectedObstruction[] GetProjectedObstructions()Returns immutable projected entries with copied vertex exports.
Independent entry array.
Kind: method
protected override System.Collections.Generic.IEnumerable<Electron2D.PropertyDescriptor> GetPropertyDescriptors()Kind: method
public Electron2D.Vector2[][] GetTraversableOutlines()Returns copied traversable contours.
Independent arrays.
Kind: method
public System.Boolean HasData()Reports whether traversable contours are present.
False for obstruction-only geometry.
Kind: method
public System.Void Merge(Electron2D.NavigationMeshSourceGeometryData otherGeometry)Appends one coherent snapshot of another source, including self-merge.
-
otherGeometry: Live source resource.
Kind: method
public System.Void SetObstructionOutlines(Electron2D.Vector2[][] outlines)Replaces obstruction contours after copying and validation.
-
outlines: Finite point arrays.
Kind: method
public System.Void SetProjectedObstructions(System.ReadOnlySpan<Electron2D.NavigationProjectedObstruction> obstructions)Replaces projected obstructions with immutable entries.
-
obstructions: Entries with independent immutable vertex state.
Kind: method
public System.Void SetTraversableOutlines(Electron2D.Vector2[][] outlines)Replaces traversable contours after copying and validation.
-
outlines: Finite point arrays.