MCPcopy Create free account
hub / github.com/DOI-USGS/ISIS3 / localNormal

Method localNormal

isis/src/base/objs/ShapeModel/ShapeModel.cpp:459–467  ·  view source on GitHub ↗

* Returns the local surface normal at the current intersection point. * Note: This method will throw an error if the normal doesn't exist. Use the * hasLocalNormal() method to verify before calling this method. * * @see hasLocalNormal() * * @return A local surface normal vector, if it exists. */

Source from the content-addressed store, hash-verified

457 * @return A local surface normal vector, if it exists.
458 */
459 std::vector<double> ShapeModel::localNormal() {
460 if (m_hasLocalNormal ) {
461 return m_localNormal;
462 }
463 else {
464 QString message = "The local normal has not been computed.";
465 throw IException(IException::Unknown, message, _FILEINFO_);
466 }
467 }
468
469/**
470 * @brief Default occulsion implementation

Callers 6

mainFunction · 0.80
GetLocalNormalMethod · 0.80
mainFunction · 0.80
outputModelStatusFunction · 0.80
mainFunction · 0.80
outputModelStatusFunction · 0.80

Calls 1

IExceptionClass · 0.50

Tested by 5

mainFunction · 0.64
mainFunction · 0.64
outputModelStatusFunction · 0.64
mainFunction · 0.64
outputModelStatusFunction · 0.64