ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-4/src/applications/nanoparticleBuilder/shapedLatticeSpherical.cpp
(Generate patch)

Comparing trunk/OOPSE-4/src/applications/nanoparticleBuilder/shapedLatticeSpherical.cpp (file contents):
Revision 3045 by chuckv, Wed Mar 22 20:57:09 2006 UTC vs.
Revision 3046 by gezelter, Sat Oct 14 20:21:26 2006 UTC

# Line 44 | Line 44
44   *
45   *  Created by Charles F. Vardeman II on 3/15/06.
46   *  @author  Charles F. Vardeman II
47 < *  @version $Id: shapedLatticeSpherical.cpp,v 1.1 2006-03-22 20:57:09 chuckv Exp $
47 > *  @version $Id: shapedLatticeSpherical.cpp,v 1.2 2006-10-14 20:21:26 gezelter Exp $
48   *
49   */
50  
# Line 53 | Line 53 | namespace oopse {
53  
54   using namespace std;
55   namespace oopse {
56
57 shapedLatticeSpherical::shapedLatticeSpherical(double latticeConstant,std::string latticeType, double radius):
58 shapedLattice(latticeConstant, latticeType){
56    
57 <  sphereRadius_= radius;
58 <  Vector3d dimension;
59 <  dimension[0]=2.0*radius;
60 <  dimension[1]=2.0*radius;
61 <  dimension[2]=2.0*radius;
62 <  setGridDimension(dimension);
57 >  shapedLatticeSpherical::shapedLatticeSpherical(RealType latticeConstant,
58 >                                                 std::string latticeType,
59 >                                                 RealType radius) : shapedLattice(latticeConstant, latticeType){
60 >    
61 >    sphereRadius_= radius;
62 >    Vector3d dimension;
63 >    dimension[0]=2.0*radius;
64 >    dimension[1]=2.0*radius;
65 >    dimension[2]=2.0*radius;
66 >    setGridDimension(dimension);
67 >  }
68 >  /**
69 >   * Determines whether a point lies with a sphere at origin 0
70 >   *
71 >   */  
72 >  bool shapedLatticeSpherical::isInterior(Vector3d point){
73 >    bool isIT=false;
74 >    if (point.length() <= sphereRadius_) isIT=true;
75 >    return isIT;
76 >  }
77   }
67 /**
68 * Determines whether a point lies with a sphere at origin 0
69 *
70 */
71
72 bool shapedLatticeSpherical::isInterior(Vector3d point){
73  bool isIT=false;
74  if (point.length() <= sphereRadius_) isIT=true;
75  return isIT;
76 }
77 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines