Changeset daf5d6 for molecuilder/src/tesselation.cpp
- Timestamp:
- Aug 19, 2009, 12:30:21 PM (16 years ago)
- Children:
- 78dac6
- Parents:
- 27459a (diff), 6c09a4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/tesselation.cpp
r27459a rdaf5d6 349 349 350 350 // make it always point inward (any offset vector onto plane projected onto normal vector suffices) 351 if (NormalVector. Projection(&OtherVector) > 0)351 if (NormalVector.ScalarProduct(&OtherVector) > 0.) 352 352 NormalVector.Scale(-1.); 353 353 }; … … 737 737 TrialVector.CopyVector(checker->second->node->node); 738 738 TrialVector.SubtractVector(A->second->node->node); 739 distance = TrialVector. Projection(&PlaneVector);739 distance = TrialVector.ScalarProduct(&PlaneVector); 740 740 if (fabs(distance) < 1e-4) // we need to have a small epsilon around 0 which is still ok 741 741 continue; … … 897 897 TempVector.SubtractVector(baseline->second->endpoints[0]->node->node); // TempVector is vector on triangle plane pointing from one baseline egde towards center! 898 898 //*out << Verbose(2) << "Projection of propagation onto temp: " << PropagationVector.Projection(&TempVector) << "." << endl; 899 if (PropagationVector. Projection(&TempVector) > 0) // make sure normal propagation vector points outward from baseline899 if (PropagationVector.ScalarProduct(&TempVector) > 0) // make sure normal propagation vector points outward from baseline 900 900 PropagationVector.Scale(-1.); 901 901 *out << Verbose(4) << "PropagationVector of base triangle is " << PropagationVector << endl; … … 957 957 TempVector.SubtractVector(Center); 958 958 // make it always point outward 959 if (VirtualNormalVector. Projection(&TempVector) < 0)959 if (VirtualNormalVector.ScalarProduct(&TempVector) < 0) 960 960 VirtualNormalVector.Scale(-1.); 961 961 // calculate angle … … 1530 1530 AddTesselationLine(TPS[0], TPS[1], 0); 1531 1531 } 1532 cout << Verbose(2) << "Projection is " << BTS->NormalVector. Projection(&Oben) << "." << endl;1532 cout << Verbose(2) << "Projection is " << BTS->NormalVector.ScalarProduct(&Oben) << "." << endl; 1533 1533 } 1534 1534 if (BTS != NULL) // we have created one starting triangle
Note:
See TracChangeset
for help on using the changeset viewer.