gabyx / ApproxMVBB

Fast algorithms to compute an approximation of the minimal volume oriented bounding box of a point cloud in 3D.
Mozilla Public License 2.0
441 stars 93 forks source link

How to modify elements in Matrix3Dyn? #14

Closed soulslicer closed 8 years ago

soulslicer commented 8 years ago

The given example shows you how to initialize a set of points dynamcally:

ApproxMVBB::Matrix3Dyn points(3,10000);

However, since I cant seem to figure out how to modify certain points at certain indices. Are there accessors as such

points[pointNum][0, 1 or 2 for xyz];

Maghoumi commented 8 years ago

Hi, Eigen library has overloaded operator() on all of the types. You can use eg. "points(5,10) = 5;" to assign to the element at row 5 column 10.

On Jul 26, 2016 9:52 PM, "Raaj" notifications@github.com wrote:

The given example shows you how to initialize a set of points dynamcally:

ApproxMVBB::Matrix3Dyn points(3,10000);

However, since I cant seem to figure out how to modify certain points at certain indices. Are there accessors as such

points[pointNum][0, 1 or 2 for xyz];

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/gabyx/ApproxMVBB/issues/14, or mute the thread https://github.com/notifications/unsubscribe-auth/AGyFBI62ZKufU2h_IVJdSeFyqAweEPrRks5qZuQcgaJpZM4JV1U2 .