MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / addPoint

Method addPoint

Engine/source/environment/meshRoad.cpp:315–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313}
314
315void MeshRoadProfile::addPoint(U32 nodeId, Point3F &p)
316{
317 if(nodeId < mNodes.size() && nodeId != 0)
318 {
319 p.z = 0.0f;
320 mNodes.insert(nodeId, p);
321 mSegMtrls.insert(nodeId-1, mSegMtrls[nodeId-1]);
322 mRoad->setMaskBits(MeshRoad::ProfileMask | MeshRoad::RegenMask);
323 generateNormals();
324 }
325}
326
327void MeshRoadProfile::removePoint(U32 nodeId)
328{

Callers 7

buildPolyListMethod · 0.45
_initCurvesMethod · 0.45
buildPolyListMethod · 0.45
getPolyListMethod · 0.45
buildSegmentPolyListMethod · 0.45
buildPolyListMethod · 0.45
on3DMouseDownMethod · 0.45

Calls 3

sizeMethod · 0.45
insertMethod · 0.45
setMaskBitsMethod · 0.45

Tested by

no test coverage detected