MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / AddPointToAllEdges

Function AddPointToAllEdges

editor/HRoom.cpp:901–907  ·  view source on GitHub ↗

Adds a new point to all instances of a given edge First adds the point to the room (or finds it there), then calls AddVertToAllEdges()

Source from the content-addressed store, hash-verified

899// Adds a new point to all instances of a given edge
900// First adds the point to the room (or finds it there), then calls AddVertToAllEdges()
901void AddPointToAllEdges(room *rp, int v0, int v1, vector *new_v) {
902 int newvertnum = RoomAddVertices(rp, 1);
903
904 rp->verts[newvertnum] = *new_v;
905
906 AddVertToAllEdges(rp, v0, v1, newvertnum);
907}
908
909// Clips a face against another. Produces one polygon that is the intersection of the two input
910// faces, and zero or more extra polygons, which are parts of the input face outside the clipping face.

Callers 2

MatchPortalFacesFunction · 0.85
SplitEdgeFunction · 0.85

Calls 2

RoomAddVerticesFunction · 0.85
AddVertToAllEdgesFunction · 0.85

Tested by

no test coverage detected