- Timestamp:
- Mar 28, 2012, 3:17:38 PM (13 years ago)
- Branches:
- Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, AddingActions_SaveParseParticleParameters, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_ParticleName_to_Atom, Adding_StructOpt_integration_tests, AtomFragments, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, CombiningParticlePotentialParsing, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_BoundInBox_CenterInBox_MoleculeActions, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_PopActions, Fix_QtFragmentList_sorted_selection, Fix_Restrictedkeyset_FragmentMolecule, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, Fix_fitting_potentials, Fixes, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, FragmentAction_writes_AtomFragments, FragmentMolecule_checks_bonddegrees, GeometryObjects, Gui_Fixes, Gui_displays_atomic_force_velocity, ImplicitCharges, IndependentFragmentGrids, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, MoreRobust_FragmentAutomation, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PdbParser_setsAtomName, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, Rewrite_FitPartialCharges, RotateToPrincipalAxisSystem_UndoRedo, SaturateAtoms_findBestMatching, SaturateAtoms_singleDegree, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, Switchable_LogView, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, TremoloParser_setsAtomName, Ubuntu_1604_changes, stable
- Children:
- 571d04
- Parents:
- b92e4a
- git-author:
- Frederik Heber <heber@…> (01/18/12 20:15:48)
- git-committer:
- Frederik Heber <heber@…> (03/28/12 15:17:38)
- Location:
- src/Shapes
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Shapes/BaseShapes.cpp
rb92e4a r735940 37 37 #include <algorithm> 38 38 39 bool Sphere_impl::isInside(const Vector &point) {40 return point.NormSquared()<=1 ;41 } 42 43 bool Sphere_impl::isOnSurface(const Vector &point) {44 return fabs(point.NormSquared()-1 )<MYEPSILON;45 } 46 47 Vector Sphere_impl::getNormal(const Vector &point) throw(NotOnSurfaceException){39 bool Sphere_impl::isInside(const Vector &point) const{ 40 return point.NormSquared()<=1.; 41 } 42 43 bool Sphere_impl::isOnSurface(const Vector &point) const{ 44 return fabs(point.NormSquared()-1.)<MYEPSILON; 45 } 46 47 Vector Sphere_impl::getNormal(const Vector &point) const throw(NotOnSurfaceException){ 48 48 if(!isOnSurface(point)){ 49 49 throw NotOnSurfaceException() << ShapeVector(&point); … … 52 52 } 53 53 54 LineSegmentSet Sphere_impl::getLineIntersections(const Line &line) {54 LineSegmentSet Sphere_impl::getLineIntersections(const Line &line) const{ 55 55 LineSegmentSet res(line); 56 56 std::vector<Vector> intersections = line.getSphereIntersections(); … … 134 134 } 135 135 136 bool Cuboid_impl::isInside(const Vector &point) {136 bool Cuboid_impl::isInside(const Vector &point) const{ 137 137 return (point[0]>=0 && point[0]<=1) && (point[1]>=0 && point[1]<=1) && (point[2]>=0 && point[2]<=1); 138 138 } 139 139 140 bool Cuboid_impl::isOnSurface(const Vector &point) {140 bool Cuboid_impl::isOnSurface(const Vector &point) const{ 141 141 bool retVal = isInside(point); 142 142 // test all borders of the cuboid … … 149 149 } 150 150 151 Vector Cuboid_impl::getNormal(const Vector &point) throw(NotOnSurfaceException){151 Vector Cuboid_impl::getNormal(const Vector &point) const throw(NotOnSurfaceException){ 152 152 if(!isOnSurface(point)){ 153 153 throw NotOnSurfaceException() << ShapeVector(&point); … … 167 167 } 168 168 169 LineSegmentSet Cuboid_impl::getLineIntersections(const Line &line) {169 LineSegmentSet Cuboid_impl::getLineIntersections(const Line &line) const{ 170 170 LineSegmentSet res(line); 171 171 // get the intersection on each of the six faces -
src/Shapes/BaseShapes_impl.hpp
rb92e4a r735940 23 23 24 24 class Sphere_impl : public Shape_impl { 25 virtual bool isInside(const Vector &point) ;26 virtual bool isOnSurface(const Vector &point) ;27 virtual Vector getNormal(const Vector &point) throw(NotOnSurfaceException);28 virtual LineSegmentSet getLineIntersections(const Line&) ;25 virtual bool isInside(const Vector &point) const; 26 virtual bool isOnSurface(const Vector &point) const; 27 virtual Vector getNormal(const Vector &point) const throw(NotOnSurfaceException); 28 virtual LineSegmentSet getLineIntersections(const Line&) const; 29 29 virtual std::string toString() const; 30 30 virtual enum ShapeType getType() const; … … 33 33 34 34 class Cuboid_impl : public Shape_impl { 35 virtual bool isInside(const Vector &point) ;36 virtual bool isOnSurface(const Vector &point) ;37 virtual Vector getNormal(const Vector &point) throw(NotOnSurfaceException);38 virtual LineSegmentSet getLineIntersections(const Line&) ;35 virtual bool isInside(const Vector &point) const; 36 virtual bool isOnSurface(const Vector &point) const; 37 virtual Vector getNormal(const Vector &point) const throw(NotOnSurfaceException); 38 virtual LineSegmentSet getLineIntersections(const Line&) const; 39 39 virtual std::string toString() const; 40 40 virtual enum ShapeType getType() const; -
src/Shapes/Shape.cpp
rb92e4a r735940 49 49 } 50 50 51 LineSegmentSet Shape::getLineIntersections(const Line &line) {51 LineSegmentSet Shape::getLineIntersections(const Line &line) const{ 52 52 return impl->getLineIntersections(line); 53 53 } … … 111 111 AndShape_impl::~AndShape_impl(){} 112 112 113 bool AndShape_impl::isInside(const Vector &point) {113 bool AndShape_impl::isInside(const Vector &point) const{ 114 114 return lhs->isInside(point) && rhs->isInside(point); 115 115 } 116 116 117 bool AndShape_impl::isOnSurface(const Vector &point) {117 bool AndShape_impl::isOnSurface(const Vector &point) const{ 118 118 // check the number of surfaces that this point is on 119 119 int surfaces =0; … … 147 147 } 148 148 149 Vector AndShape_impl::getNormal(const Vector &point) throw (NotOnSurfaceException){149 Vector AndShape_impl::getNormal(const Vector &point) const throw (NotOnSurfaceException){ 150 150 Vector res; 151 151 if(!isOnSurface(point)){ … … 158 158 } 159 159 160 LineSegmentSet AndShape_impl::getLineIntersections(const Line &line) {160 LineSegmentSet AndShape_impl::getLineIntersections(const Line &line) const{ 161 161 return intersect(lhs->getLineIntersections(line),rhs->getLineIntersections(line)); 162 162 } … … 201 201 OrShape_impl::~OrShape_impl(){} 202 202 203 bool OrShape_impl::isInside(const Vector &point) {203 bool OrShape_impl::isInside(const Vector &point) const{ 204 204 return rhs->isInside(point) || lhs->isInside(point); 205 205 } 206 206 207 bool OrShape_impl::isOnSurface(const Vector &point) {207 bool OrShape_impl::isOnSurface(const Vector &point) const{ 208 208 // check the number of surfaces that this point is on 209 209 int surfaces =0; … … 237 237 } 238 238 239 Vector OrShape_impl::getNormal(const Vector &point) throw (NotOnSurfaceException){239 Vector OrShape_impl::getNormal(const Vector &point) const throw (NotOnSurfaceException){ 240 240 Vector res; 241 241 if(!isOnSurface(point)){ … … 248 248 } 249 249 250 LineSegmentSet OrShape_impl::getLineIntersections(const Line &line) {250 LineSegmentSet OrShape_impl::getLineIntersections(const Line &line) const{ 251 251 return merge(lhs->getLineIntersections(line),rhs->getLineIntersections(line)); 252 252 } … … 290 290 NotShape_impl::~NotShape_impl(){} 291 291 292 bool NotShape_impl::isInside(const Vector &point) {292 bool NotShape_impl::isInside(const Vector &point) const{ 293 293 return !arg->isInside(point); 294 294 } 295 295 296 bool NotShape_impl::isOnSurface(const Vector &point) {296 bool NotShape_impl::isOnSurface(const Vector &point) const{ 297 297 return arg->isOnSurface(point); 298 298 } 299 299 300 Vector NotShape_impl::getNormal(const Vector &point) throw(NotOnSurfaceException){300 Vector NotShape_impl::getNormal(const Vector &point) const throw(NotOnSurfaceException){ 301 301 return -1.*arg->getNormal(point); 302 302 } 303 303 304 LineSegmentSet NotShape_impl::getLineIntersections(const Line &line) {304 LineSegmentSet NotShape_impl::getLineIntersections(const Line &line) const{ 305 305 return invert(arg->getLineIntersections(line)); 306 306 } -
src/Shapes/Shape.hpp
rb92e4a r735940 45 45 Vector getRadius() const; 46 46 47 LineSegmentSet getLineIntersections(const Line&) ;47 LineSegmentSet getLineIntersections(const Line&) const; 48 48 std::vector<Vector> getHomogeneousPointsOnSurface(const size_t N) const; 49 49 -
src/Shapes/ShapeOps.cpp
rb92e4a r735940 34 34 ShapeOpsBase_impl::~ShapeOpsBase_impl(){} 35 35 36 bool ShapeOpsBase_impl::isInside(const Vector &point) {36 bool ShapeOpsBase_impl::isInside(const Vector &point) const{ 37 37 return arg->isInside(translateIn(point)); 38 38 } 39 39 40 bool ShapeOpsBase_impl::isOnSurface(const Vector &point) {40 bool ShapeOpsBase_impl::isOnSurface(const Vector &point) const{ 41 41 return arg->isOnSurface(translateIn(point)); 42 42 } 43 43 44 Vector ShapeOpsBase_impl::getNormal(const Vector &point) throw (NotOnSurfaceException){44 Vector ShapeOpsBase_impl::getNormal(const Vector &point) const throw (NotOnSurfaceException){ 45 45 Vector helper = translateIn(point); 46 46 if(!arg->isOnSurface(helper)){ … … 52 52 } 53 53 54 LineSegmentSet ShapeOpsBase_impl::getLineIntersections(const Line &line) {54 LineSegmentSet ShapeOpsBase_impl::getLineIntersections(const Line &line) const{ 55 55 Line newLine(translateIn(line.getOrigin()),translateIn(line.getDirection())); 56 56 LineSegmentSet res(line); … … 93 93 Resize_impl::~Resize_impl(){} 94 94 95 bool Resize_impl::isInside(const Vector& point) {95 bool Resize_impl::isInside(const Vector& point) const{ 96 96 return getArg()->isInside((1/size) * point); 97 97 } 98 98 99 Vector Resize_impl::translateIn(const Vector& point) {99 Vector Resize_impl::translateIn(const Vector& point) const{ 100 100 return (1/size) * point; 101 101 } 102 102 103 Vector Resize_impl::translateOutPos(const Vector& point) {103 Vector Resize_impl::translateOutPos(const Vector& point) const{ 104 104 return size * point; 105 105 } 106 106 107 Vector Resize_impl::translateOutNormal(const Vector& point) {107 Vector Resize_impl::translateOutNormal(const Vector& point) const{ 108 108 return point; 109 109 } … … 137 137 Translate_impl::~Translate_impl(){} 138 138 139 bool Translate_impl::isInside(const Vector& point) {139 bool Translate_impl::isInside(const Vector& point) const{ 140 140 return getArg()->isInside(point-offset); 141 141 } 142 142 143 Vector Translate_impl::translateIn(const Vector& point) {143 Vector Translate_impl::translateIn(const Vector& point) const{ 144 144 return point-offset; 145 145 } 146 146 147 Vector Translate_impl::translateOutPos(const Vector& point) {147 Vector Translate_impl::translateOutPos(const Vector& point) const{ 148 148 return point+offset; 149 149 } 150 150 151 Vector Translate_impl::translateOutNormal(const Vector& point) {151 Vector Translate_impl::translateOutNormal(const Vector& point) const{ 152 152 return point; 153 153 } … … 187 187 Stretch_impl::~Stretch_impl(){} 188 188 189 bool Stretch_impl::isInside(const Vector& point) {189 bool Stretch_impl::isInside(const Vector& point) const{ 190 190 Vector helper=point; 191 191 helper.ScaleAll(reciFactors); … … 193 193 } 194 194 195 Vector Stretch_impl::translateIn(const Vector& point) {195 Vector Stretch_impl::translateIn(const Vector& point) const{ 196 196 Vector helper=point; 197 197 helper.ScaleAll(reciFactors); … … 199 199 } 200 200 201 Vector Stretch_impl::translateOutPos(const Vector& point) {201 Vector Stretch_impl::translateOutPos(const Vector& point) const{ 202 202 Vector helper=point; 203 203 helper.ScaleAll(factors); … … 205 205 } 206 206 207 Vector Stretch_impl::translateOutNormal(const Vector& point) {207 Vector Stretch_impl::translateOutNormal(const Vector& point) const{ 208 208 Vector helper=point; 209 209 // the normalFactors are derived from appearances of the factors … … 246 246 Transform_impl::~Transform_impl(){} 247 247 248 bool Transform_impl::isInside(const Vector& point) {248 bool Transform_impl::isInside(const Vector& point) const{ 249 249 return getArg()->isInside(transformationInv * point); 250 250 } 251 251 252 Vector Transform_impl::translateIn(const Vector& point) {252 Vector Transform_impl::translateIn(const Vector& point) const{ 253 253 return transformationInv * point; 254 254 } 255 255 256 Vector Transform_impl::translateOutPos(const Vector& point) {256 Vector Transform_impl::translateOutPos(const Vector& point) const{ 257 257 return transformation * point; 258 258 } 259 259 260 Vector Transform_impl::translateOutNormal(const Vector& point){ 260 Vector Transform_impl::translateOutNormal(const Vector& point) const 261 { 261 262 RealSpaceMatrix mat = transformation.invert().transpose(); 262 263 return mat * point; -
src/Shapes/ShapeOps_impl.hpp
rb92e4a r735940 29 29 ShapeOpsBase_impl(const Shape::impl_ptr&); 30 30 virtual ~ShapeOpsBase_impl(); 31 virtual bool isInside(const Vector &point) ;32 virtual bool isOnSurface(const Vector &point) ;33 virtual Vector getNormal(const Vector &point) throw (NotOnSurfaceException);34 virtual LineSegmentSet getLineIntersections(const Line&) ;31 virtual bool isInside(const Vector &point) const; 32 virtual bool isOnSurface(const Vector &point) const; 33 virtual Vector getNormal(const Vector &point) const throw (NotOnSurfaceException); 34 virtual LineSegmentSet getLineIntersections(const Line&) const; 35 35 virtual enum ShapeType getType() const; 36 36 virtual std::vector<Vector> getHomogeneousPointsOnSurface(const size_t N) const; 37 37 protected: 38 virtual Vector translateIn(const Vector &point) =0;39 virtual Vector translateOutPos(const Vector &point) =0;40 virtual Vector translateOutNormal(const Vector &point) =0;38 virtual Vector translateIn(const Vector &point) const=0; 39 virtual Vector translateOutPos(const Vector &point) const=0; 40 virtual Vector translateOutNormal(const Vector &point) const=0; 41 41 Shape::impl_ptr getArg() const; 42 42 private: … … 50 50 virtual ~Resize_impl(); 51 51 protected: 52 virtual Vector translateIn(const Vector &point) ;53 virtual Vector translateOutPos(const Vector &point) ;54 virtual Vector translateOutNormal(const Vector &point) ;52 virtual Vector translateIn(const Vector &point) const; 53 virtual Vector translateOutPos(const Vector &point) const; 54 virtual Vector translateOutNormal(const Vector &point) const; 55 55 virtual std::string toString() const; 56 virtual bool isInside(const Vector& point) ;56 virtual bool isInside(const Vector& point) const; 57 57 virtual std::vector<Vector> getHomogeneousPointsOnSurface(const size_t N) const; 58 58 private: … … 66 66 virtual ~Translate_impl(); 67 67 protected: 68 virtual Vector translateIn(const Vector &point) ;69 virtual Vector translateOutPos(const Vector &point) ;70 virtual Vector translateOutNormal(const Vector &point) ;68 virtual Vector translateIn(const Vector &point) const; 69 virtual Vector translateOutPos(const Vector &point) const; 70 virtual Vector translateOutNormal(const Vector &point) const; 71 71 virtual std::string toString() const; 72 virtual bool isInside(const Vector& point) ;72 virtual bool isInside(const Vector& point) const; 73 73 virtual std::vector<Vector> getHomogeneousPointsOnSurface(const size_t N) const; 74 74 private: … … 82 82 virtual ~Stretch_impl(); 83 83 protected: 84 virtual Vector translateIn(const Vector &point) ;85 virtual Vector translateOutPos(const Vector &point) ;86 virtual Vector translateOutNormal(const Vector &point) ;84 virtual Vector translateIn(const Vector &point) const; 85 virtual Vector translateOutPos(const Vector &point) const; 86 virtual Vector translateOutNormal(const Vector &point) const; 87 87 virtual std::string toString() const; 88 virtual bool isInside(const Vector& point) ;88 virtual bool isInside(const Vector& point) const; 89 89 virtual std::vector<Vector> getHomogeneousPointsOnSurface(const size_t N) const; 90 90 private: … … 99 99 virtual ~Transform_impl(); 100 100 protected: 101 virtual Vector translateIn(const Vector &point) ;102 virtual Vector translateOutPos(const Vector &point) ;103 virtual Vector translateOutNormal(const Vector &point) ;101 virtual Vector translateIn(const Vector &point) const; 102 virtual Vector translateOutPos(const Vector &point) const; 103 virtual Vector translateOutNormal(const Vector &point) const; 104 104 virtual std::string toString() const; 105 virtual bool isInside(const Vector& point) ;105 virtual bool isInside(const Vector& point) const; 106 106 virtual std::vector<Vector> getHomogeneousPointsOnSurface(const size_t N) const; 107 107 private: -
src/Shapes/Shape_impl.hpp
rb92e4a r735940 30 30 Shape_impl(){}; 31 31 virtual ~Shape_impl(){}; 32 virtual bool isInside(const Vector &point) =0;33 virtual bool isOnSurface(const Vector &point) =0;34 virtual Vector getNormal(const Vector &point) throw(NotOnSurfaceException)=0;35 virtual LineSegmentSet getLineIntersections(const Line&) =0;32 virtual bool isInside(const Vector &point) const=0; 33 virtual bool isOnSurface(const Vector &point) const=0; 34 virtual Vector getNormal(const Vector &point) const throw(NotOnSurfaceException)=0; 35 virtual LineSegmentSet getLineIntersections(const Line&) const=0; 36 36 virtual std::string toString() const =0; 37 37 virtual enum ShapeType getType() const =0; … … 41 41 class Everywhere_impl : public Shape_impl { 42 42 public: 43 virtual bool isInside(const Vector &point) {43 virtual bool isInside(const Vector &point) const{ 44 44 return true; 45 45 } 46 virtual bool isOnSurface(const Vector &point) {46 virtual bool isOnSurface(const Vector &point) const{ 47 47 return false; 48 48 } 49 virtual Vector getNormal(const Vector &point) throw(NotOnSurfaceException){49 virtual Vector getNormal(const Vector &point) const throw(NotOnSurfaceException){ 50 50 throw NotOnSurfaceException() << ShapeVector(&point); 51 51 } 52 virtual LineSegmentSet getLineIntersections(const Line &line) {52 virtual LineSegmentSet getLineIntersections(const Line &line) const{ 53 53 LineSegmentSet res(line); 54 54 res.insert(LineSegment(line.negEndpoint(),line.posEndpoint())); … … 68 68 69 69 class Nowhere_impl : public Shape_impl { 70 virtual bool isInside(const Vector &point) {70 virtual bool isInside(const Vector &point) const{ 71 71 return false; 72 72 } 73 virtual bool isOnSurface(const Vector &point) {73 virtual bool isOnSurface(const Vector &point) const{ 74 74 return false; 75 75 } 76 virtual Vector getNormal(const Vector &point) throw(NotOnSurfaceException){76 virtual Vector getNormal(const Vector &point) const throw(NotOnSurfaceException){ 77 77 throw NotOnSurfaceException() << ShapeVector(&point); 78 78 } 79 virtual LineSegmentSet getLineIntersections(const Line &line) {79 virtual LineSegmentSet getLineIntersections(const Line &line) const{ 80 80 return LineSegmentSet(line); 81 81 } … … 96 96 AndShape_impl(const Shape::impl_ptr&, const Shape::impl_ptr&); 97 97 virtual ~AndShape_impl(); 98 virtual bool isInside(const Vector &point) ;99 virtual bool isOnSurface(const Vector &point) ;100 virtual Vector getNormal(const Vector &point) throw(NotOnSurfaceException);101 virtual LineSegmentSet getLineIntersections(const Line&) ;98 virtual bool isInside(const Vector &point) const; 99 virtual bool isOnSurface(const Vector &point) const; 100 virtual Vector getNormal(const Vector &point) const throw(NotOnSurfaceException); 101 virtual LineSegmentSet getLineIntersections(const Line&) const; 102 102 virtual std::string toString() const; 103 103 virtual enum ShapeType getType() const; … … 112 112 OrShape_impl(const Shape::impl_ptr&, const Shape::impl_ptr&); 113 113 virtual ~OrShape_impl(); 114 virtual bool isInside(const Vector &point) ;115 virtual bool isOnSurface(const Vector &point) ;116 virtual Vector getNormal(const Vector &point) throw(NotOnSurfaceException);117 virtual LineSegmentSet getLineIntersections(const Line&) ;114 virtual bool isInside(const Vector &point) const; 115 virtual bool isOnSurface(const Vector &point) const; 116 virtual Vector getNormal(const Vector &point) const throw(NotOnSurfaceException); 117 virtual LineSegmentSet getLineIntersections(const Line&) const; 118 118 virtual std::string toString() const; 119 119 virtual enum ShapeType getType() const; … … 128 128 NotShape_impl(const Shape::impl_ptr&); 129 129 virtual ~NotShape_impl(); 130 virtual bool isInside(const Vector &point) ;131 virtual bool isOnSurface(const Vector &point) ;132 virtual Vector getNormal(const Vector &point) throw(NotOnSurfaceException);133 virtual LineSegmentSet getLineIntersections(const Line&) ;130 virtual bool isInside(const Vector &point) const; 131 virtual bool isOnSurface(const Vector &point) const; 132 virtual Vector getNormal(const Vector &point) const throw(NotOnSurfaceException); 133 virtual LineSegmentSet getLineIntersections(const Line&) const; 134 134 virtual std::string toString() const; 135 135 virtual enum ShapeType getType() const;
Note:
See TracChangeset
for help on using the changeset viewer.