POV-Ray : Newsgroups : povray.text.scene-files : [Minimum Volume] Bounding Ellipsoid via SVD : Re: [Minimum Volume] Bounding Ellipsoid via SVD Server Time
20 Sep 2021 22:07:31 EDT (-0400)
  Re: [Minimum Volume] Bounding Ellipsoid via SVD  
From: jr
Date: 6 Nov 2019 16:05:00
Message: <web.5dc33544f7b9a3affeeb22ff0@news.povray.org>

"Bald Eagle" <cre### [at] netscapenet> wrote:
> "jr" <cre### [at] gmailcom> wrote:
> > great stuff.
> It is  :)
> Even better is this computer graphics lesson on bounding boxes  :D
> https://www.cs.tau.ac.il/~dcor/Graphics/cg-slides/3d_geometry_lesson2.pdf

cheers.  I'll have a look at this tonight.

> ...
> I'm going to work on creating a test data set, and try to  show the SVD results
> and maybe implement the reorientation.
> Given that the code generates a random matrix using
> generate_matrix(matrix, matrix_size, matrix_size);
> and then computes the svd via
> svd(matrix, s, u, v);
> Tell me, Master Yoda,
> How do I take a file with the <x, y, z> vectors and read it into the compiled
> program so that _that_ is now the "matrix" argument for the svd function call?
> Should I supply a filename and loop down the rows, reading in x, y, and z?
> or is the a way to just do some kind of OS command line thing, adding in a
> std::cin >> matrix;      line?

the latter, I'm confident, although somewhat unsure of exact syntax.
suggestion: attach your working version of svd.cpp, so we talk same code.  I'll
play with it here to test; are the matrices filled just with floats?

regards, jr.

Post a reply to this message

Copyright 2003-2021 Persistence of Vision Raytracer Pty. Ltd.