40 EigenSTL::vector_Vector3d& points)
42 bodies::BoundingSphere sphere;
43 body.computeBoundingSphere(sphere);
44 double xval_s = std::floor((sphere.center.x() - sphere.radius - resolution) / resolution) * resolution;
45 double yval_s = std::floor((sphere.center.y() - sphere.radius - resolution) / resolution) * resolution;
46 double zval_s = std::floor((sphere.center.z() - sphere.radius - resolution) / resolution) * resolution;
47 double xval_e = sphere.center.x() + sphere.radius + resolution;
48 double yval_e = sphere.center.y() + sphere.radius + resolution;
49 double zval_e = sphere.center.z() + sphere.radius + resolution;
51 for (pt.x() = xval_s; pt.x() <= xval_e; pt.x() += resolution)
53 for (pt.y() = yval_s; pt.y() <= yval_e; pt.y() += resolution)
55 for (pt.z() = zval_s; pt.z() <= zval_e; pt.z() += resolution)
57 if (body.containsPoint(pt))
void findInternalPointsConvex(const bodies::Body &body, double resolution, EigenSTL::vector_Vector3d &points)
Find all points on a regular grid that are internal to the body, assuming the body is a convex shape....
Vec3fX< details::Vec3Data< double > > Vector3d