FDynamicGraph2::Vertices

Void AppendPolygon(GeneralPolygon2d poly, int gid = -1)

Windows
MacOS
Linux

References

Module

GeometricObjects

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/GeometricObjects/Public/Curve/DynamicGraph2.h

Include

#include "Curve/DynamicGraph2.h"

Syntax

value_iteration< FVector2< T > > Vertices() const

Remarks

Void AppendPolygon(Polygon2d poly, int gid = -1) { int first = -1; int prev = -1; int N = poly.VertexCount; for (int i = 0; i < N; ++i) { int cur = AppendVertex(poly[i]); if (prev == -1) first = cur; else AppendEdge(prev, cur, gid); prev = cur; } AppendEdge(prev, first, gid);AppendPolygon(poly.Outer, gid); foreach(var hole in poly.Holes) AppendPolygon(hole, gid); void AppendPolyline(PolyLine2d poly, int gid = -1) int prev = -1; int N = poly.VertexCount; for (int i = 0; i < N; ++i) { int cur = AppendVertex(poly[i]); if (i > 0) AppendEdge(prev, cur, gid); prev = cur; } void AppendGraph(FDynamicGraph2 graph, int gid = -1) { int[] mapV = new int[graph.MaxVertexID]; foreach(int vid in graph.VertexIndices()) { mapV[vid] = this.AppendVertex(graph.GetVertex(vid)); } foreach(int eid in graph.EdgeIndices()) { FIndex2i ev = graph.GetEdgeV(eid); int use_gid = (gid == -1) ? graph.GetEdgeGroup(eid) : gid; this.AppendEdge(mapV[ev.A], mapV[ev.B], use_gid); } }Enumerate positions of all vertices in graph

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss