odedstein / gp-matlab-tutorial Goto Github PK
View Code? Open in Web Editor NEWA basic tutorial for geometry processing in MATLAB using gptoolbox
License: Other
A basic tutorial for geometry processing in MATLAB using gptoolbox
License: Other
I'm following the tutorials with Octave.
At the moment everything is working fine, until the fourth exercise, where I'm asked to read an obj file.
After moving the working directory to the exercise folder, I read the obj file as follows:
[V, F] = readOBJ('data/bunny.obj');
but it does nothing and the program get stuck during the parsing.
What am I doing wrong? Is there a chance that Octave is using different implementations of the same functions, that cause the program to not work?
Cheers
Hi, @odedstein ,
I had compiled the mex without error by following the provided steps. However, there's error when I run
[V,F] = triangle(V,'Flags','-q20-a0.001');
as mentioned in 205_mex.md. And I also found that there's no triangle.[m/cpp/mexa64], but only triangulate.[m/cpp/mexa64] exist. The compiled mex files in my machine are listed as follows:
tree -L 1
.
├── aabb.cpp
├── aabb.mexa64
├── ambient_occlusion.cpp
├── ambient_occlusion.m
├── ambient_occlusion.mexa64
├── angle_derivatives.cpp
├── angle_derivatives.mexa64
├── blue_noise.cpp
├── blue_noise.m
├── blue_noise.mexa64
├── bone_visible.cpp
├── bone_visible_embree.cpp
├── bone_visible_embree.mexa64
├── bone_visible.mexa64
├── box_intersect.cpp
├── box_intersect.m
├── box_intersect.mexa64
├── box_up.h
├── build
├── CGAL_typedefs.h
├── cmake
├── CMakeLists.txt
├── collapse_small_triangles.cpp
├── collapse_small_triangles.m
├── collapse_small_triangles.mexa64
├── decimate_cgal.cpp
├── decimate_cgal.m
├── decimate_cgal.mexa64
├── decimate_libigl.cpp
├── decimate_libigl.m
├── decimate_libigl.mexa64
├── dual_laplacian.cpp
├── dual_laplacian.m
├── dual_laplacian.mexa64
├── eltopo.cpp
├── eltopo.m
├── eltopo.mexa64
├── example.cpp
├── external
├── fast_sparse.cpp
├── fast_sparse.m
├── fast_sparse.mexa64
├── fit_cubic_bezier.cpp
├── fit_cubic_bezier.m
├── fit_cubic_bezier.mexa64
├── fit_rotations_mex.cpp
├── fit_rotations_mex.m
├── fit_rotations_mex.mexa64
├── form_factor.cpp
├── form_factor.m
├── form_factor.mexa64
├── functionSignatures.json
├── gptoolbox_mexopts.m
├── icp.cpp
├── icp.mexa64
├── impaste.cpp
├── impaste.m
├── in_element_aabb.cpp
├── in_element_aabb.m
├── in_element_aabb.mexa64
├── intersect_other.cpp
├── intersect_other.m
├── intersect_other.mexa64
├── libeltopo_release.a
├── libtetgen.a
├── libtinyxml2.a
├── libtriangle.a
├── mesh_boolean.cpp
├── mesh_boolean.m
├── mesh_boolean.mexa64
├── outer_hull.cpp
├── outer_hull.m
├── outer_hull.mexa64
├── paste.h
├── paste.mm
├── point_mesh_squared_distance.cpp
├── point_mesh_squared_distance.m
├── point_mesh_squared_distance.mexa64
├── psd_project_rows.cpp
├── psd_project_rows.m
├── ray_mesh_intersect.cpp
├── ray_mesh_intersect.h
├── ray_mesh_intersect.m
├── ray_mesh_intersect.mexa64
├── README.md
├── read_mesh_from_xml.cpp
├── read_mesh_from_xml.m
├── read_mesh_from_xml.mexa64
├── readMSH.cpp
├── readMSH.m
├── readMSH.mexa64
├── read_triangle_mesh.cpp
├── read_triangle_mesh.mexa64
├── reorient_facets.cpp
├── reorient_facets.m
├── reorient_facets.mexa64
├── segment_graph.cpp
├── segment_graph.m
├── segment_graph.mexa64
├── segment_list.h
├── segment_segment_intersection.cpp
├── selfintersect.cpp
├── selfintersect.m
├── selfintersect.mexa64
├── signed_distance.cpp
├── signed_distance_isosurface.cpp
├── signed_distance_isosurface.m
├── signed_distance_isosurface.mexa64
├── signed_distance.m
├── signed_distance.mexa64
├── simplify_polyhedron.cpp
├── simplify_polyhedron.mexa64
├── slim.cpp
├── slim.m
├── slim.mexa64
├── snap_rounding.cpp
├── snap_rounding.m
├── snap_rounding.mexa64
├── solid_angle.cpp
├── solid_angle.mexa64
├── tetrahedralize.cpp
├── tetrahedralize.m
├── tetrahedralize.mexa64
├── triangulate.cpp
├── triangulate.m
├── triangulate.mexa64
├── trim_with_solid.cpp
├── trim_with_solid.m
├── trim_with_solid.mexa64
├── upper_envelope.cpp
├── upper_envelope.m
├── upper_envelope.mexa64
├── winding_number
├── winding_number.cpp
├── winding_number.m
├── winding_number.mexa64
├── winding_number_ray.h
├── wire_mesh.cpp
├── wire_mesh.m
└── wire_mesh.mexa64
I've tried calling the function triangulate(), but did not get the triangulation output as in 205_mex.md.
Any hints to solve this issue?
Thanks~
I am trying to replicate the results displayed in the video. [min 14 https://www.youtube.com/watch?v=NGathaVRyDA ]
But after running this command
>> t = tsurf(F,V);
>> set(t, 'FaceLighting','gouraud');
>> set(t, 'FaceColor','interp');
My shading and lighting conditions stay the same.
Any ideas?
Hi, @odedstein ,
I'm practising the section No.13 of gp-matlab-tutorial in 013_laplacian.md. There's a command: un = noisy_function();
What specific function is noisy_function()
?
Thanks~
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.