replaced static tutorial_shared_path string with #define
This commit is contained in:
@@ -273,7 +273,7 @@ By default, the .h files include the corresponding cpp files, making the library
|
||||
|
||||
<p>Reading a mesh from a file requires a single libigl function call:</p>
|
||||
|
||||
<pre><code class="cpp">igl::readOFF(tutorial_shared_path + "/cube.off", V, F);
|
||||
<pre><code class="cpp">igl::readOFF(TUTORIAL_SHARED_PATH "/cube.off", V, F);
|
||||
</code></pre>
|
||||
|
||||
<p>The function reads the mesh cube.off and it fills the provided <code>V</code> and <code>F</code> matrices.
|
||||
@@ -306,7 +306,7 @@ Eigen::MatrixXi F;
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
// Load a mesh in OFF format
|
||||
igl::readOFF(tutorial_shared_path + "/bunny.off", V, F);
|
||||
igl::readOFF(TUTORIAL_SHARED_PATH "/bunny.off", V, F);
|
||||
|
||||
// Plot the mesh
|
||||
igl::Viewer viewer;
|
||||
@@ -2595,7 +2595,7 @@ viewer.</figcaption>
|
||||
“Workspaces”. This C++ snippet saves a mesh and it’s sparse Laplacian matrix to
|
||||
a file:</p>
|
||||
|
||||
<pre><code class="cpp">igl::readOFF(tutorial_shared_path + "/fertility.off", V, F);
|
||||
<pre><code class="cpp">igl::readOFF(TUTORIAL_SHARED_PATH "/fertility.off", V, F);
|
||||
igl::cotmatrix(V,F,L);
|
||||
igl::MatlabWorkspace mw;
|
||||
mw.save(V,"V");
|
||||
@@ -2619,7 +2619,7 @@ instance upon execution.</p>
|
||||
Libigl has wrapped up a particularly useful formatting which makes it simple to
|
||||
copy standard output from a C++ program into a Matlab IDE. The code:</p>
|
||||
|
||||
<pre><code class="cpp">igl::readOFF(tutorial_shared_path + "/2triangles.off", V, F);
|
||||
<pre><code class="cpp">igl::readOFF(TUTORIAL_SHARED_PATH "/2triangles.off", V, F);
|
||||
igl::cotmatrix(V,F,L);
|
||||
std::cout<<igl::matlab_format(V,"V")<<std::endl;
|
||||
std::cout<<igl::matlab_format((F.array()+1).eval(),"F")<<std::endl;
|
||||
|
||||
Reference in New Issue
Block a user