MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / modifyVertex

Method modifyVertex

src/game/MeshTransform.cpp:342–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

340
341
342void MeshTransform::Tool::modifyVertex(fvec3& v) const {
343 if (empty) {
344 return;
345 }
346
347 fvec3 t;
348 const fvec4* vm = vertexMatrix;
349 t.x = vm[0].planeDist(v);
350 t.y = vm[1].planeDist(v);
351 t.z = vm[2].planeDist(v);
352 v = t;
353}
354
355
356void MeshTransform::Tool::modifyNormal(fvec3& n) const {

Callers 12

transformAngularPosMethod · 0.80
transformRadialPosMethod · 0.80
getEdgeLengthsFunction · 0.80
getEdgeLengthsFunction · 0.80
calcPlaneMethod · 0.80
getPointsMethod · 0.80
MeshSceneNodeMethod · 0.80
addRenderNodesMethod · 0.80
printOBJMethod · 0.80
printOBJMethod · 0.80
printOBJMethod · 0.80
MeshObstacleMethod · 0.80

Calls 1

planeDistMethod · 0.80

Tested by

no test coverage detected