Alec Jacobson 4fbf0da74b more fixes to Viewer.cpp há 11 anos atrás
..
bbw df7b363ece rotation widget example há 11 anos atrás
boost c39ca7747a fixed many style issues, missing copyrights, inlines há 11 anos atrás
cgal c3325c9d16 duplicate vertex support in selfintersect há 11 anos atrás
embree c39ca7747a fixed many style issues, missing copyrights, inlines há 11 anos atrás
matlab 455abc5c2f use system header há 11 anos atrás
mosek b473232452 preprend license header to every file há 11 anos atrás
png c39ca7747a fixed many style issues, missing copyrights, inlines há 11 anos atrás
svd3x3 e33308c77d dynamics in arap há 11 anos atrás
tetgen c39ca7747a fixed many style issues, missing copyrights, inlines há 11 anos atrás
viewer 4fbf0da74b more fixes to Viewer.cpp há 11 anos atrás
xml 50665ab20a Merge branch 'master' of https://github.com/libigl/libigl há 11 anos atrás
ARAPEnergyType.h 6025da57dc ARAp example há 11 anos atrás
C_STR.h c39ca7747a fixed many style issues, missing copyrights, inlines há 11 anos atrás
Camera.h b3914046f0 fix alignment in Camera há 11 anos atrás
EPS.cpp b473232452 preprend license header to every file há 11 anos atrás
EPS.h b473232452 preprend license header to every file há 11 anos atrás
IO 40aa09d1f3 templates and clean up há 11 anos atrás
InElementAABB.h a1e3e14eb0 in element há 11 anos atrás
IndexComparison.h b473232452 preprend license header to every file há 11 anos atrás
MCTables.hh c39ca7747a fixed many style issues, missing copyrights, inlines há 11 anos atrás
MouseController.h c39ca7747a fixed many style issues, missing copyrights, inlines há 11 anos atrás
NormalType.h b2b071dc31 desaturate disabled rotate wdiget há 11 anos atrás
ONE.h b473232452 preprend license header to every file há 11 anos atrás
OpenGL_convenience.h c39ca7747a fixed many style issues, missing copyrights, inlines há 11 anos atrás
PI.h b473232452 preprend license header to every file há 11 anos atrás
REDRUM.h b473232452 preprend license header to every file há 11 anos atrás
ReAntTweakBar.cpp c2646d97f6 medit há 11 anos atrás
ReAntTweakBar.h c2646d97f6 medit há 11 anos atrás
RotateWidget.h 3c1a54ee20 init order in RotateWidget há 11 anos atrás
STR.h c39ca7747a fixed many style issues, missing copyrights, inlines há 11 anos atrás
SolverStatus.h b473232452 preprend license header to every file há 11 anos atrás
SortableRow.h c39ca7747a fixed many style issues, missing copyrights, inlines há 11 anos atrás
Timer.h d10afaa873 fixed many missing IGL_INLINEs há 11 anos atrás
Viewport.h 072cde3df4 bug fixes in rotate wiget, templates há 11 anos atrás
WindingNumberAABB.h 946a60f916 mv most winding number code from project há 11 anos atrás
WindingNumberMethod.h 946a60f916 mv most winding number code from project há 11 anos atrás
WindingNumberTree.h c3325c9d16 duplicate vertex support in selfintersect há 11 anos atrás
ZERO.h b473232452 preprend license header to every file há 11 anos atrás
active_set.cpp 0f69e26554 Started camera example (not working correctly yet) há 11 anos atrás
active_set.h fde20c73d9 Merge branch 'master' of https://github.com/libigl/libigl há 11 anos atrás
add_barycenter.cpp c39ca7747a fixed many style issues, missing copyrights, inlines há 11 anos atrás
add_barycenter.h b473232452 preprend license header to every file há 11 anos atrás
adjacency_list.cpp 2513a565df added some template instantiations há 11 anos atrás
adjacency_list.h b473232452 preprend license header to every file há 11 anos atrás
adjacency_matrix.cpp b473232452 preprend license header to every file há 11 anos atrás
adjacency_matrix.h b473232452 preprend license header to every file há 11 anos atrás
all_edges.cpp b473232452 preprend license header to every file há 11 anos atrás
all_edges.h b473232452 preprend license header to every file há 11 anos atrás
all_pairs_distances.cpp b473232452 preprend license header to every file há 11 anos atrás
all_pairs_distances.h b473232452 preprend license header to every file há 11 anos atrás
angular_distance.cpp d10afaa873 fixed many missing IGL_INLINEs há 11 anos atrás
angular_distance.h d10afaa873 fixed many missing IGL_INLINEs há 11 anos atrás
any_of.cpp b0f3bad258 added mouse controller and any_of wrapper and license há 11 anos atrás
any_of.h b0f3bad258 added mouse controller and any_of wrapper and license há 11 anos atrás
arap_linear_block.cpp d14905d818 migrated a lot of the FAST code including interface to Sifakis' fast 3x3 svd with SSE and AVX support (determined during compile) há 11 anos atrás
arap_linear_block.h d14905d818 migrated a lot of the FAST code including interface to Sifakis' fast 3x3 svd with SSE and AVX support (determined during compile) há 11 anos atrás
arap_rhs.cpp d14905d818 migrated a lot of the FAST code including interface to Sifakis' fast 3x3 svd with SSE and AVX support (determined during compile) há 11 anos atrás
arap_rhs.h d10afaa873 fixed many missing IGL_INLINEs há 11 anos atrás
avg_edge_length.cpp 5b5f473c0d fixed weird include situation in avg_edge_length há 11 anos atrás
avg_edge_length.h 5b5f473c0d fixed weird include situation in avg_edge_length há 11 anos atrás
axis_angle_to_quat.cpp b473232452 preprend license header to every file há 11 anos atrás
axis_angle_to_quat.h b473232452 preprend license header to every file há 11 anos atrás
barycenter.cpp b473232452 preprend license header to every file há 11 anos atrás
barycenter.h b473232452 preprend license header to every file há 11 anos atrás
barycentric2global.cpp 4582a4f49d added a function that projects a mesh onto another using embree há 11 anos atrás
barycentric2global.h c39ca7747a fixed many style issues, missing copyrights, inlines há 11 anos atrás
barycentric_coordinates.cpp aba141dec1 support for 2d bary coords há 11 anos atrás
barycentric_coordinates.h aba141dec1 support for 2d bary coords há 11 anos atrás
basename.cpp b473232452 preprend license header to every file há 11 anos atrás
basename.h b473232452 preprend license header to every file há 11 anos atrás
boundary_conditions.cpp 5c04a7b9d2 Removed overzealous check in boundary_conditions when there's only a single point handle. há 11 anos atrás
boundary_conditions.h b473232452 preprend license header to every file há 11 anos atrás
boundary_faces.cpp e100aa33d6 note in reanttweakbar and boundary faces assertion há 11 anos atrás
boundary_faces.h b473232452 preprend license header to every file há 11 anos atrás
bounding_box_diagonal.cpp b473232452 preprend license header to every file há 11 anos atrás
bounding_box_diagonal.h b473232452 preprend license header to every file há 11 anos atrás
canonical_quaternions.cpp b473232452 preprend license header to every file há 11 anos atrás
canonical_quaternions.h 5b73716bcf major camera refactor há 11 anos atrás
cat.cpp b473232452 preprend license header to every file há 11 anos atrás
cat.h b473232452 preprend license header to every file há 11 anos atrás
cocoa_key_to_anttweakbar_key.cpp b473232452 preprend license header to every file há 11 anos atrás
cocoa_key_to_anttweakbar_key.h b473232452 preprend license header to every file há 11 anos atrás
colon.cpp 0176fe9813 removed colon error message, color example há 11 anos atrás
colon.h b473232452 preprend license header to every file há 11 anos atrás
column_to_quats.cpp 3ee6fa10ec mouse controller and quaternion io há 11 anos atrás
column_to_quats.h 3ee6fa10ec mouse controller and quaternion io há 11 anos atrás
columnize.cpp 04d3a59a57 floats and doubles for arap_dof há 11 anos atrás
columnize.h d14905d818 migrated a lot of the FAST code including interface to Sifakis' fast 3x3 svd with SSE and AVX support (determined during compile) há 11 anos atrás
cotangent.cpp 11efa92d41 added cot3 references há 11 anos atrás
cotangent.h 2cbb9c856b geometric cotangent, volume, face areas, edge lengths for tet meshes há 11 anos atrás
cotmatrix.cpp 2cbb9c856b geometric cotangent, volume, face areas, edge lengths for tet meshes há 11 anos atrás
cotmatrix.h 2cbb9c856b geometric cotangent, volume, face areas, edge lengths for tet meshes há 11 anos atrás
covariance_scatter_matrix.cpp d14905d818 migrated a lot of the FAST code including interface to Sifakis' fast 3x3 svd with SSE and AVX support (determined during compile) há 11 anos atrás
covariance_scatter_matrix.h d14905d818 migrated a lot of the FAST code including interface to Sifakis' fast 3x3 svd with SSE and AVX support (determined during compile) há 11 anos atrás
create_index_vbo.cpp b473232452 preprend license header to every file há 11 anos atrás
create_index_vbo.h b473232452 preprend license header to every file há 11 anos atrás
create_mesh_vbo.cpp b473232452 preprend license header to every file há 11 anos atrás
create_mesh_vbo.h b473232452 preprend license header to every file há 11 anos atrás
create_shader_program.cpp b473232452 preprend license header to every file há 11 anos atrás
create_shader_program.h b473232452 preprend license header to every file há 11 anos atrás
create_vector_vbo.cpp b473232452 preprend license header to every file há 11 anos atrás
create_vector_vbo.h b473232452 preprend license header to every file há 11 anos atrás
cross.cpp 38cd4684cd better cross, volume and new barycentric coordinates (tets only) há 11 anos atrás
cross.h 38cd4684cd better cross, volume and new barycentric coordinates (tets only) há 11 anos atrás
cumsum.cpp 83135b0027 hg cleanup' há 11 anos atrás
cumsum.h b4b18430fd sample mesh, cumulative sum, histogram há 11 anos atrás
dated_copy.cpp c39ca7747a fixed many style issues, missing copyrights, inlines há 11 anos atrás
dated_copy.h d10afaa873 fixed many missing IGL_INLINEs há 11 anos atrás
destroy_shader_program.cpp b473232452 preprend license header to every file há 11 anos atrás
destroy_shader_program.h b473232452 preprend license header to every file há 11 anos atrás
diag.cpp b473232452 preprend license header to every file há 11 anos atrás
diag.h b473232452 preprend license header to every file há 11 anos atrás
dihedral_angles.cpp 2cbb9c856b geometric cotangent, volume, face areas, edge lengths for tet meshes há 11 anos atrás
dihedral_angles.h 2cbb9c856b geometric cotangent, volume, face areas, edge lengths for tet meshes há 11 anos atrás
dirname.cpp b473232452 preprend license header to every file há 11 anos atrás
dirname.h b473232452 preprend license header to every file há 11 anos atrás
dot.cpp b473232452 preprend license header to every file há 11 anos atrás
dot.h b473232452 preprend license header to every file há 11 anos atrás
doublearea.cpp aba141dec1 support for 2d bary coords há 11 anos atrás
doublearea.h aba141dec1 support for 2d bary coords há 11 anos atrás
dqs.cpp c39ca7747a fixed many style issues, missing copyrights, inlines há 11 anos atrás
dqs.h c39ca7747a fixed many style issues, missing copyrights, inlines há 11 anos atrás
draw_beach_ball.cpp b473232452 preprend license header to every file há 11 anos atrás
draw_beach_ball.h f733e02c0a bug fix há 11 anos atrás
draw_floor.cpp ccbdc48e71 fixed bug in camera and better parameterization of draw floor há 11 anos atrás
draw_floor.h ccbdc48e71 fixed bug in camera and better parameterization of draw floor há 11 anos atrás
draw_mesh.cpp 404a719d25 stl file format há 11 anos atrás
draw_mesh.h b473232452 preprend license header to every file há 11 anos atrás
draw_point.cpp b473232452 preprend license header to every file há 11 anos atrás
draw_point.h b473232452 preprend license header to every file há 11 anos atrás
draw_rectangular_marquee.cpp d10afaa873 fixed many missing IGL_INLINEs há 11 anos atrás
draw_rectangular_marquee.h d10afaa873 fixed many missing IGL_INLINEs há 11 anos atrás
draw_skeleton_3d.cpp 865b841fb1 openmp if catch in project_to_line* há 11 anos atrás
draw_skeleton_3d.h ae29184e91 draw skeleton with colors há 11 anos atrás
draw_skeleton_vector_graphics.cpp 072cde3df4 bug fixes in rotate wiget, templates há 11 anos atrás
draw_skeleton_vector_graphics.h 072cde3df4 bug fixes in rotate wiget, templates há 11 anos atrás
edge_lengths.cpp 2cbb9c856b geometric cotangent, volume, face areas, edge lengths for tet meshes há 11 anos atrás
edge_lengths.h 2cbb9c856b geometric cotangent, volume, face areas, edge lengths for tet meshes há 11 anos atrás
edges.cpp b473232452 preprend license header to every file há 11 anos atrás
edges.h b473232452 preprend license header to every file há 11 anos atrás
edgetopology.cpp b473232452 preprend license header to every file há 11 anos atrás
edgetopology.h b473232452 preprend license header to every file há 11 anos atrás
example_fun.cpp d14905d818 migrated a lot of the FAST code including interface to Sifakis' fast 3x3 svd with SSE and AVX support (determined during compile) há 11 anos atrás
example_fun.h b473232452 preprend license header to every file há 11 anos atrás
exterior_edges.cpp 946a60f916 mv most winding number code from project há 11 anos atrás
exterior_edges.h 946a60f916 mv most winding number code from project há 11 anos atrás
face_areas.cpp c39ca7747a fixed many style issues, missing copyrights, inlines há 11 anos atrás
face_areas.h 2cbb9c856b geometric cotangent, volume, face areas, edge lengths for tet meshes há 11 anos atrás
face_occurences.cpp b473232452 preprend license header to every file há 11 anos atrás
face_occurences.h b473232452 preprend license header to every file há 11 anos atrás
faces_first.cpp b473232452 preprend license header to every file há 11 anos atrás
faces_first.h b473232452 preprend license header to every file há 11 anos atrás
file_contents_as_string.cpp b473232452 preprend license header to every file há 11 anos atrás
file_contents_as_string.h b473232452 preprend license header to every file há 11 anos atrás
file_dialog_open.cpp bcf1de0476 missing includes há 11 anos atrás
file_dialog_open.h 1ca72046b6 fixed lots of issues with file_dialog.*, template in tt há 11 anos atrás
file_dialog_save.cpp bcf1de0476 missing includes há 11 anos atrás
file_dialog_save.h 1ca72046b6 fixed lots of issues with file_dialog.*, template in tt há 11 anos atrás
file_exists.cpp b473232452 preprend license header to every file há 11 anos atrás
file_exists.h b473232452 preprend license header to every file há 11 anos atrás
find.cpp b473232452 preprend license header to every file há 11 anos atrás
find.h b473232452 preprend license header to every file há 11 anos atrás
fit_plane.cpp c39ca7747a fixed many style issues, missing copyrights, inlines há 11 anos atrás
fit_plane.h 5e6a231f3f updated template types in removeUnreference and fixed a minor bug há 11 anos atrás
flare_textures.h.REMOVED.git-id c39ca7747a fixed many style issues, missing copyrights, inlines há 11 anos atrás
forward_kinematics.cpp 3ee6fa10ec mouse controller and quaternion io há 11 anos atrás
forward_kinematics.h 3ee6fa10ec mouse controller and quaternion io há 11 anos atrás
full.cpp b473232452 preprend license header to every file há 11 anos atrás
full.h b473232452 preprend license header to every file há 11 anos atrás
get_seconds.cpp b473232452 preprend license header to every file há 11 anos atrás
get_seconds.h b473232452 preprend license header to every file há 11 anos atrás
get_seconds_hires.cpp b473232452 preprend license header to every file há 11 anos atrás
get_seconds_hires.h b473232452 preprend license header to every file há 11 anos atrás
gl_type_size.cpp b473232452 preprend license header to every file há 11 anos atrás
gl_type_size.h b473232452 preprend license header to every file há 11 anos atrás
grad.cpp b473232452 preprend license header to every file há 11 anos atrás
grad.h b473232452 preprend license header to every file há 11 anos atrás
gradMat.cpp 11efa92d41 added cot3 references há 11 anos atrás
gradMat.h b473232452 preprend license header to every file há 11 anos atrás
group_sum_matrix.cpp d14905d818 migrated a lot of the FAST code including interface to Sifakis' fast 3x3 svd with SSE and AVX support (determined during compile) há 11 anos atrás
group_sum_matrix.h d14905d818 migrated a lot of the FAST code including interface to Sifakis' fast 3x3 svd with SSE and AVX support (determined during compile) há 11 anos atrás
harmonic.cpp 39dd224f64 fixed some bugs in arap há 11 anos atrás
harmonic.h 2608885ba3 harmonic weights há 11 anos atrás
harwell_boeing.cpp b473232452 preprend license header to every file há 11 anos atrás
harwell_boeing.h b473232452 preprend license header to every file há 11 anos atrás
histc.cpp c39ca7747a fixed many style issues, missing copyrights, inlines há 11 anos atrás
histc.h aebcaf8c6d better histc prototype, fixed warnings há 11 anos atrás
hsv_to_rgb.cpp d10afaa873 fixed many missing IGL_INLINEs há 11 anos atrás
hsv_to_rgb.h d10afaa873 fixed many missing IGL_INLINEs há 11 anos atrás
igl_inline.h b473232452 preprend license header to every file há 11 anos atrás
in_element.cpp a1e3e14eb0 in element há 11 anos atrás
in_element.h a1e3e14eb0 in element há 11 anos atrás
intersect.cpp df7b363ece rotation widget example há 11 anos atrás
intersect.h df7b363ece rotation widget example há 11 anos atrás
invert_diag.cpp b473232452 preprend license header to every file há 11 anos atrás
invert_diag.h b473232452 preprend license header to every file há 11 anos atrás
is_border_vertex.cpp 2513a565df added some template instantiations há 11 anos atrás
is_border_vertex.h b473232452 preprend license header to every file há 11 anos atrás
is_dir.cpp b473232452 preprend license header to every file há 11 anos atrás
is_dir.h b473232452 preprend license header to every file há 11 anos atrás
is_file.cpp b473232452 preprend license header to every file há 11 anos atrás
is_file.h b473232452 preprend license header to every file há 11 anos atrás
is_manifold.cpp b473232452 preprend license header to every file há 11 anos atrás
is_manifold.h b473232452 preprend license header to every file há 11 anos atrás
is_planar.cpp c39ca7747a fixed many style issues, missing copyrights, inlines há 11 anos atrás
is_planar.h d14905d818 migrated a lot of the FAST code including interface to Sifakis' fast 3x3 svd with SSE and AVX support (determined during compile) há 11 anos atrás
is_readable.cpp b473232452 preprend license header to every file há 11 anos atrás
is_readable.h b473232452 preprend license header to every file há 11 anos atrás
is_sparse.cpp b473232452 preprend license header to every file há 11 anos atrás
is_sparse.h b473232452 preprend license header to every file há 11 anos atrás
is_symmetric.cpp a6c7612f3f is symmetric is not defined for empty input há 11 anos atrás
is_symmetric.h b473232452 preprend license header to every file há 11 anos atrás
is_writable.cpp b473232452 preprend license header to every file há 11 anos atrás
is_writable.h b473232452 preprend license header to every file há 11 anos atrás
jet.cpp d10afaa873 fixed many missing IGL_INLINEs há 11 anos atrás
jet.h d10afaa873 fixed many missing IGL_INLINEs há 11 anos atrás
launch_medit.cpp b473232452 preprend license header to every file há 11 anos atrás
launch_medit.h b473232452 preprend license header to every file há 11 anos atrás
lbs_matrix.cpp c39ca7747a fixed many style issues, missing copyrights, inlines há 11 anos atrás
lbs_matrix.h fddb3d6563 lbs_matrix overloads for different style output há 11 anos atrás
lens_flare.cpp d10afaa873 fixed many missing IGL_INLINEs há 11 anos atrás
lens_flare.h d10afaa873 fixed many missing IGL_INLINEs há 11 anos atrás
limit_faces.cpp b473232452 preprend license header to every file há 11 anos atrás
limit_faces.h b473232452 preprend license header to every file há 11 anos atrás
line_segment_in_rectangle.cpp 3ee6fa10ec mouse controller and quaternion io há 11 anos atrás
line_segment_in_rectangle.h 3ee6fa10ec mouse controller and quaternion io há 11 anos atrás
list_to_matrix.cpp 865b841fb1 openmp if catch in project_to_line* há 11 anos atrás
list_to_matrix.h b473232452 preprend license header to every file há 11 anos atrás
load_shader.cpp b473232452 preprend license header to every file há 11 anos atrás
load_shader.h b473232452 preprend license header to every file há 11 anos atrás
local_basis.cpp c39ca7747a fixed many style issues, missing copyrights, inlines há 11 anos atrás
local_basis.h c39ca7747a fixed many style issues, missing copyrights, inlines há 11 anos atrás
lu_lagrange.cpp b473232452 preprend license header to every file há 11 anos atrás
lu_lagrange.h b473232452 preprend license header to every file há 11 anos atrás
marching_cubes.cpp 9f80dbdd02 minor updates to marching cubes há 13 anos atrás
marching_cubes.h c39ca7747a fixed many style issues, missing copyrights, inlines há 11 anos atrás
massmatrix.cpp e33308c77d dynamics in arap há 11 anos atrás
massmatrix.h e33308c77d dynamics in arap há 11 anos atrás
mat_max.cpp b473232452 preprend license header to every file há 11 anos atrás
mat_max.h b473232452 preprend license header to every file há 11 anos atrás
mat_min.cpp b473232452 preprend license header to every file há 11 anos atrás
mat_min.h b473232452 preprend license header to every file há 11 anos atrás
mat_to_quat.cpp b473232452 preprend license header to every file há 11 anos atrás
mat_to_quat.h b473232452 preprend license header to every file há 11 anos atrás
material_colors.h ae29184e91 draw skeleton with colors há 11 anos atrás
matlab_format.cpp 9552b88f01 upright glutpostredisplay, templates há 11 anos atrás
matlab_format.h b473232452 preprend license header to every file há 11 anos atrás
matrix_to_list.cpp b473232452 preprend license header to every file há 11 anos atrás
matrix_to_list.h b473232452 preprend license header to every file há 11 anos atrás
max_size.cpp b473232452 preprend license header to every file há 11 anos atrás
max_size.h b473232452 preprend license header to every file há 11 anos atrás
median.cpp a8a2ca6d03 fix median for even input há 11 anos atrás
median.h b473232452 preprend license header to every file há 11 anos atrás
min_quad_dense.cpp b473232452 preprend license header to every file há 11 anos atrás
min_quad_dense.h b473232452 preprend license header to every file há 11 anos atrás
min_quad_with_fixed.cpp 764fc12ba8 camera example working and interactive. há 11 anos atrás
min_quad_with_fixed.h 6025da57dc ARAp example há 11 anos atrás
min_size.cpp b473232452 preprend license header to every file há 11 anos atrás
min_size.h b473232452 preprend license header to every file há 11 anos atrás
mode.cpp b473232452 preprend license header to every file há 11 anos atrás
mode.h b473232452 preprend license header to every file há 11 anos atrás
moveFV.cpp b473232452 preprend license header to every file há 11 anos atrás
moveFV.h b473232452 preprend license header to every file há 11 anos atrás
moveVF.cpp b473232452 preprend license header to every file há 11 anos atrás
moveVF.h b473232452 preprend license header to every file há 11 anos atrás
mvc.cpp f12fa9bd9d some linux compilation fixes.. há 11 anos atrás
mvc.h b473232452 preprend license header to every file há 11 anos atrás
normalize_quat.cpp b473232452 preprend license header to every file há 11 anos atrás
normalize_quat.h b473232452 preprend license header to every file há 11 anos atrás
normalize_row_lengths.cpp b473232452 preprend license header to every file há 11 anos atrás
normalize_row_lengths.h b473232452 preprend license header to every file há 11 anos atrás
normalize_row_sums.cpp df7b363ece rotation widget example há 11 anos atrás
normalize_row_sums.h df7b363ece rotation widget example há 11 anos atrás
on_boundary.cpp b473232452 preprend license header to every file há 11 anos atrás
on_boundary.h b473232452 preprend license header to every file há 11 anos atrás
orient_outward.cpp b473232452 preprend license header to every file há 11 anos atrás
orient_outward.h b473232452 preprend license header to every file há 11 anos atrás
orth.cpp b473232452 preprend license header to every file há 11 anos atrás
orth.h b473232452 preprend license header to every file há 11 anos atrás
partition.cpp c39ca7747a fixed many style issues, missing copyrights, inlines há 11 anos atrás
partition.h c39ca7747a fixed many style issues, missing copyrights, inlines há 11 anos atrás
path_to_executable.cpp c39ca7747a fixed many style issues, missing copyrights, inlines há 11 anos atrás
path_to_executable.h d10afaa873 fixed many missing IGL_INLINEs há 11 anos atrás
pathinfo.cpp b473232452 preprend license header to every file há 11 anos atrás
pathinfo.h b3914046f0 fix alignment in Camera há 11 anos atrás
per_corner_normals.cpp 2513a565df added some template instantiations há 11 anos atrás
per_corner_normals.h b473232452 preprend license header to every file há 11 anos atrás
per_face_normals.cpp 2513a565df added some template instantiations há 11 anos atrás
per_face_normals.h f4ee805a31 fixed bug in quicklook há 11 anos atrás
per_vertex_attribute_smoothing.cpp b473232452 preprend license header to every file há 11 anos atrás
per_vertex_attribute_smoothing.h b473232452 preprend license header to every file há 11 anos atrás
per_vertex_normals.cpp b473232452 preprend license header to every file há 11 anos atrás
per_vertex_normals.h b473232452 preprend license header to every file há 11 anos atrás
plot_vector.cpp b473232452 preprend license header to every file há 11 anos atrás
plot_vector.h b473232452 preprend license header to every file há 11 anos atrás
point_in_circle.cpp b473232452 preprend license header to every file há 11 anos atrás
point_in_circle.h b473232452 preprend license header to every file há 11 anos atrás
point_in_poly.cpp b473232452 preprend license header to every file há 11 anos atrás
point_in_poly.h b473232452 preprend license header to every file há 11 anos atrás
polar_dec.cpp b473232452 preprend license header to every file há 11 anos atrás
polar_dec.h b473232452 preprend license header to every file há 11 anos atrás
polar_svd.cpp 04d3a59a57 floats and doubles for arap_dof há 11 anos atrás
polar_svd.h b473232452 preprend license header to every file há 11 anos atrás
pos.h c39ca7747a fixed many style issues, missing copyrights, inlines há 11 anos atrás
principal_curvature.cpp 44b10fb975 added options to principal_curvature há 11 anos atrás
principal_curvature.h 44b10fb975 added options to principal_curvature há 11 anos atrás
print_gl_get.cpp b473232452 preprend license header to every file há 11 anos atrás
print_gl_get.h b473232452 preprend license header to every file há 11 anos atrás
print_ijv.cpp b473232452 preprend license header to every file há 11 anos atrás
print_ijv.h b473232452 preprend license header to every file há 11 anos atrás
print_program_info_log.cpp b473232452 preprend license header to every file há 11 anos atrás
print_program_info_log.h b473232452 preprend license header to every file há 11 anos atrás
print_shader_info_log.cpp b473232452 preprend license header to every file há 11 anos atrás
print_shader_info_log.h b473232452 preprend license header to every file há 11 anos atrás
project.cpp 404a719d25 stl file format há 11 anos atrás
project.h b473232452 preprend license header to every file há 11 anos atrás
project_to_line.cpp 865b841fb1 openmp if catch in project_to_line* há 11 anos atrás
project_to_line.h df7b363ece rotation widget example há 11 anos atrás
project_to_line_segment.cpp 865b841fb1 openmp if catch in project_to_line* há 11 anos atrás
project_to_line_segment.h e5bca62822 wrong include há 11 anos atrás
quat_conjugate.cpp b473232452 preprend license header to every file há 11 anos atrás
quat_conjugate.h b473232452 preprend license header to every file há 11 anos atrás
quat_mult.cpp b473232452 preprend license header to every file há 11 anos atrás
quat_mult.h b473232452 preprend license header to every file há 11 anos atrás
quat_to_axis_angle.cpp b473232452 preprend license header to every file há 11 anos atrás
quat_to_axis_angle.h b473232452 preprend license header to every file há 11 anos atrás
quat_to_mat.cpp b473232452 preprend license header to every file há 11 anos atrás
quat_to_mat.h b473232452 preprend license header to every file há 11 anos atrás
quats_to_column.cpp 3ee6fa10ec mouse controller and quaternion io há 11 anos atrás
quats_to_column.h 3ee6fa10ec mouse controller and quaternion io há 11 anos atrás
random_dir.cpp d10afaa873 fixed many missing IGL_INLINEs há 11 anos atrás
random_dir.h d10afaa873 fixed many missing IGL_INLINEs há 11 anos atrás
random_points_on_mesh.cpp b9babab1cf note in random_points_on_mesh about alias table method há 11 anos atrás
random_points_on_mesh.h d14905d818 migrated a lot of the FAST code including interface to Sifakis' fast 3x3 svd with SSE and AVX support (determined during compile) há 11 anos atrás
randperm.cpp 3d9295b22a templates há 11 anos atrás
randperm.h b473232452 preprend license header to every file há 11 anos atrás
ray_sphere_intersect.cpp c39ca7747a fixed many style issues, missing copyrights, inlines há 11 anos atrás
ray_sphere_intersect.h 609c7351ec rotating widget example with dependencies há 11 anos atrás
read.cpp 2513a565df added some template instantiations há 11 anos atrás
read.h b473232452 preprend license header to every file há 11 anos atrás
readCSV.cpp 7afa4c43c9 renamed read_eigen... to readCSV to match others há 11 anos atrás
readCSV.h 7afa4c43c9 renamed read_eigen... to readCSV to match others há 11 anos atrás
readDMAT.cpp 6025da57dc ARAp example há 11 anos atrás
readDMAT.h b473232452 preprend license header to every file há 11 anos atrás
readMESH.cpp b473232452 preprend license header to every file há 11 anos atrás
readMESH.h b473232452 preprend license header to every file há 11 anos atrás
readNODE.cpp b473232452 preprend license header to every file há 11 anos atrás
readNODE.h b473232452 preprend license header to every file há 11 anos atrás
readOBJ.cpp 404a719d25 stl file format há 11 anos atrás
readOBJ.h b473232452 preprend license header to every file há 11 anos atrás
readOFF.cpp 027a77cb5c readOFF: quenched a warning há 11 anos atrás
readOFF.h b473232452 preprend license header to every file há 11 anos atrás
readSTL.cpp c39ca7747a fixed many style issues, missing copyrights, inlines há 11 anos atrás
readSTL.h 404a719d25 stl file format há 11 anos atrás
readTGF.cpp df7b363ece rotation widget example há 11 anos atrás
readTGF.h df7b363ece rotation widget example há 11 anos atrás
readWRL.cpp b473232452 preprend license header to every file há 11 anos atrás
readWRL.h b473232452 preprend license header to every file há 11 anos atrás
removeDuplicates.cpp b473232452 preprend license header to every file há 11 anos atrás
removeDuplicates.h b473232452 preprend license header to every file há 11 anos atrás
removeUnreferenced.cpp 306c5b7a31 cleaned up removeUnreferenced (we should rename this remove_unreferenced to match style and the corresponding matlab func) há 11 anos atrás
removeUnreferenced.h 306c5b7a31 cleaned up removeUnreferenced (we should rename this remove_unreferenced to match style and the corresponding matlab func) há 11 anos atrás
remove_duplicate_vertices.cpp b473232452 preprend license header to every file há 11 anos atrás
remove_duplicate_vertices.h b473232452 preprend license header to every file há 11 anos atrás
render_to_tga.cpp c39ca7747a fixed many style issues, missing copyrights, inlines há 11 anos atrás
render_to_tga.h c39ca7747a fixed many style issues, missing copyrights, inlines há 11 anos atrás
reorder.cpp c39ca7747a fixed many style issues, missing copyrights, inlines há 11 anos atrás
reorder.h b473232452 preprend license header to every file há 11 anos atrás
repdiag.cpp b473232452 preprend license header to every file há 11 anos atrás
repdiag.h b473232452 preprend license header to every file há 11 anos atrás
repmat.cpp b473232452 preprend license header to every file há 11 anos atrás
repmat.h 0d2b528651 path to executable (working on OSX), dated copy of file with permissions, draw_mesh less kruft há 11 anos atrás
report_gl_error.cpp 1a493e2836 template há 11 anos atrás
report_gl_error.h 1a493e2836 template há 11 anos atrás
rgb_to_hsv.cpp d10afaa873 fixed many missing IGL_INLINEs há 11 anos atrás
rgb_to_hsv.h d10afaa873 fixed many missing IGL_INLINEs há 11 anos atrás
right_axis.cpp b473232452 preprend license header to every file há 11 anos atrás
right_axis.h b473232452 preprend license header to every file há 11 anos atrás
rotate_by_quat.cpp b473232452 preprend license header to every file há 11 anos atrás
rotate_by_quat.h b473232452 preprend license header to every file há 11 anos atrás
round.cpp b473232452 preprend license header to every file há 11 anos atrás
round.h b473232452 preprend license header to every file há 11 anos atrás
rows_to_matrix.cpp b473232452 preprend license header to every file há 11 anos atrás
rows_to_matrix.h b473232452 preprend license header to every file há 11 anos atrás
sample_edges.cpp b473232452 preprend license header to every file há 11 anos atrás
sample_edges.h d10afaa873 fixed many missing IGL_INLINEs há 11 anos atrás
shine_textures.h.REMOVED.git-id c39ca7747a fixed many style issues, missing copyrights, inlines há 11 anos atrás
slice.cpp 3d9295b22a templates há 11 anos atrás
slice.h 3d9295b22a templates há 11 anos atrás
slice_into.cpp b473232452 preprend license header to every file há 11 anos atrás
slice_into.h b473232452 preprend license header to every file há 11 anos atrás
snap_points.cpp 801315915a snap points and templates há 11 anos atrás
snap_points.h 801315915a snap points and templates há 11 anos atrás
snap_to_canonical_view_quat.cpp 5b73716bcf major camera refactor há 11 anos atrás
snap_to_canonical_view_quat.h ecf569d7bf improved documentation snap_to_canonical_view_quat há 11 anos atrás
snap_to_fixed_up.cpp 4d48550bb1 camera example with twbar há 11 anos atrás
snap_to_fixed_up.h 4d48550bb1 camera example with twbar há 11 anos atrás
sort.cpp c39ca7747a fixed many style issues, missing copyrights, inlines há 11 anos atrás
sort.h b473232452 preprend license header to every file há 11 anos atrás
sort_triangles.cpp b473232452 preprend license header to every file há 11 anos atrás
sort_triangles.h b473232452 preprend license header to every file há 11 anos atrás
sortrows.cpp b473232452 preprend license header to every file há 11 anos atrás
sortrows.h b473232452 preprend license header to every file há 11 anos atrás
sparse.cpp b473232452 preprend license header to every file há 11 anos atrás
sparse.h b473232452 preprend license header to every file há 11 anos atrás
speye.cpp b473232452 preprend license header to every file há 11 anos atrás
speye.h b473232452 preprend license header to every file há 11 anos atrás
stdin_to_temp.cpp b473232452 preprend license header to every file há 11 anos atrás
stdin_to_temp.h b473232452 preprend license header to every file há 11 anos atrás
sum.cpp b473232452 preprend license header to every file há 11 anos atrás
sum.h b473232452 preprend license header to every file há 11 anos atrás
svd.cpp b473232452 preprend license header to every file há 11 anos atrás
svd.h b473232452 preprend license header to every file há 11 anos atrás
texture_from_tga.cpp c39ca7747a fixed many style issues, missing copyrights, inlines há 11 anos atrás
texture_from_tga.h c39ca7747a fixed many style issues, missing copyrights, inlines há 11 anos atrás
tga.cpp 5e178e4771 fixed compilation error with clang há 11 anos atrás
tga.h 79341b5bd6 compress in tutorial, better header in compress, ifndef IGL_NO_OPENGL and IGL_NO_ANTTWEAKBAR guards, compress compiles without these, undo svd há 11 anos atrás
trackball.cpp 2b40471f2b trackball: int to double há 11 anos atrás
trackball.h 2b40471f2b trackball: int to double há 11 anos atrás
transpose_blocks.cpp b473232452 preprend license header to every file há 11 anos atrás
transpose_blocks.h b473232452 preprend license header to every file há 11 anos atrás
triangle_fan.cpp 946a60f916 mv most winding number code from project há 11 anos atrás
triangle_fan.h 946a60f916 mv most winding number code from project há 11 anos atrás
triangulate.cpp b473232452 preprend license header to every file há 11 anos atrás
triangulate.h b473232452 preprend license header to every file há 11 anos atrás
tt.cpp 1ca72046b6 fixed lots of issues with file_dialog.*, template in tt há 11 anos atrás
tt.h b473232452 preprend license header to every file há 11 anos atrás
two_axis_valuator_fixed_up.cpp 4d48550bb1 camera example with twbar há 11 anos atrás
two_axis_valuator_fixed_up.h 4d48550bb1 camera example with twbar há 11 anos atrás
uniform_type_to_string.cpp b473232452 preprend license header to every file há 11 anos atrás
uniform_type_to_string.h b473232452 preprend license header to every file há 11 anos atrás
uniformly_sample_two_manifold.cpp c39ca7747a fixed many style issues, missing copyrights, inlines há 11 anos atrás
uniformly_sample_two_manifold.h d14905d818 migrated a lot of the FAST code including interface to Sifakis' fast 3x3 svd with SSE and AVX support (determined during compile) há 11 anos atrás
unique.cpp b473232452 preprend license header to every file há 11 anos atrás
unique.h b473232452 preprend license header to every file há 11 anos atrás
unique_simplices.cpp b473232452 preprend license header to every file há 11 anos atrás
unique_simplices.h b473232452 preprend license header to every file há 11 anos atrás
unproject.cpp 1a493e2836 template há 11 anos atrás
unproject.h b473232452 preprend license header to every file há 11 anos atrás
unproject_to_zero_plane.cpp 801315915a snap points and templates há 11 anos atrás
unproject_to_zero_plane.h b473232452 preprend license header to every file há 11 anos atrás
up_axis.cpp b473232452 preprend license header to every file há 11 anos atrás
up_axis.h b473232452 preprend license header to every file há 11 anos atrás
upsample.cpp b473232452 preprend license header to every file há 11 anos atrás
upsample.h b473232452 preprend license header to every file há 11 anos atrás
verbose.h b473232452 preprend license header to every file há 11 anos atrás
vf.cpp 2513a565df added some template instantiations há 11 anos atrás
vf.h e74ac9d4df notes in vf.* há 11 anos atrás
view_axis.cpp df7b363ece rotation widget example há 11 anos atrás
view_axis.h df7b363ece rotation widget example há 11 anos atrás
volume.cpp 38cd4684cd better cross, volume and new barycentric coordinates (tets only) há 11 anos atrás
volume.h 38cd4684cd better cross, volume and new barycentric coordinates (tets only) há 11 anos atrás
winding_number.cpp 946a60f916 mv most winding number code from project há 11 anos atrás
winding_number.h 946a60f916 mv most winding number code from project há 11 anos atrás
write.cpp b473232452 preprend license header to every file há 11 anos atrás
write.h b473232452 preprend license header to every file há 11 anos atrás
writeDMAT.cpp b473232452 preprend license header to every file há 11 anos atrás
writeDMAT.h b473232452 preprend license header to every file há 11 anos atrás
writeMESH.cpp b473232452 preprend license header to every file há 11 anos atrás
writeMESH.h b473232452 preprend license header to every file há 11 anos atrás
writeOBJ.cpp b473232452 preprend license header to every file há 11 anos atrás
writeOBJ.h b473232452 preprend license header to every file há 11 anos atrás
writeOFF.cpp b473232452 preprend license header to every file há 11 anos atrás
writeOFF.h b473232452 preprend license header to every file há 11 anos atrás
writeSTL.cpp c39ca7747a fixed many style issues, missing copyrights, inlines há 11 anos atrás
writeSTL.h 404a719d25 stl file format há 11 anos atrás
writeTGF.cpp b473232452 preprend license header to every file há 11 anos atrás
writeTGF.h b473232452 preprend license header to every file há 11 anos atrás

readMESH.cpp

// This file is part of libigl, a simple c++ geometry processing library.
//
// Copyright (C) 2013 Alec Jacobson
//
// This Source Code Form is subject to the terms of the Mozilla Public License
// v. 2.0. If a copy of the MPL was not distributed with this file, You can
// obtain one at http://mozilla.org/MPL/2.0/.
#include "readMESH.h"

#include
#include "verbose.h"

template
IGL_INLINE bool igl::readMESH(
const std::string mesh_file_name,
std::vector > & V,
std::vector > & T,
std::vector > & F)
{
using namespace std;
using namespace igl;
FILE * mesh_file = fopen(mesh_file_name.c_str(),"r");
if(NULL==mesh_file)
{
fprintf(stderr,"IOError: %s could not be opened...",mesh_file_name.c_str());
return false;
}
#ifndef LINE_MAX
# define LINE_MAX 2048
#endif
char line[LINE_MAX];
bool still_comments;
V.clear();
T.clear();
F.clear();

// eat comments at beginning of file
still_comments= true;
while(still_comments)
{
fgets(line,LINE_MAX,mesh_file);
still_comments = (line[0] == '#' || line[0] == '\n');
}

char str[LINE_MAX];
sscanf(line," %s",str);
// check that first word is MeshVersionFormatted
if(0!=strcmp(str,"MeshVersionFormatted"))
{
fprintf(stderr,
"Error: first word should be MeshVersionFormatted not %s\n",str);
fclose(mesh_file);
return false;
}
int one = -1;
if(2 != sscanf(line,"%s %d",str,&one))
{
// 1 appears on next line?
fscanf(mesh_file," %d",&one);
}
if(one != 1)
{
fprintf(stderr,"Error: second word should be 1 not %d\n",one);
fclose(mesh_file);
return false;
}

// eat comments
still_comments= true;
while(still_comments)
{
fgets(line,LINE_MAX,mesh_file);
still_comments = (line[0] == '#' || line[0] == '\n');
}

sscanf(line," %s",str);
// check that third word is Dimension
if(0!=strcmp(str,"Dimension"))
{
fprintf(stderr,"Error: third word should be Dimension not %s\n",str);
fclose(mesh_file);
return false;
}
int three = -1;
if(2 != sscanf(line,"%s %d",str,&three))
{
// 1 appears on next line?
fscanf(mesh_file," %d",&three);
}
if(three != 3)
{
fprintf(stderr,"Error: only Dimension 3 supported not %d\n",three);
fclose(mesh_file);
return false;
}

// eat comments
still_comments= true;
while(still_comments)
{
fgets(line,LINE_MAX,mesh_file);
still_comments = (line[0] == '#' || line[0] == '\n');
}

sscanf(line," %s",str);
// check that fifth word is Vertices
if(0!=strcmp(str,"Vertices"))
{
fprintf(stderr,"Error: fifth word should be Vertices not %s\n",str);
fclose(mesh_file);
return false;
}

//fgets(line,LINE_MAX,mesh_file);

int number_of_vertices;
if(1 != fscanf(mesh_file," %d",&number_of_vertices) || number_of_vertices > 1000000000)
{
fprintf(stderr,"Error: expecting number of vertices less than 10^9...\n");
fclose(mesh_file);
return false;
}
// allocate space for vertices
V.resize(number_of_vertices,vector(3,0));
int extra;
for(int i = 0;i {
double x,y,z;
if(4 != fscanf(mesh_file," %lg %lg %lg %d",&x,&y,&z,&extra))
{
fprintf(stderr,"Error: expecting vertex position...\n");
fclose(mesh_file);
return false;
}
V[i][0] = x;
V[i][1] = y;
V[i][2] = z;
}

// eat comments
still_comments= true;
while(still_comments)
{
fgets(line,LINE_MAX,mesh_file);
still_comments = (line[0] == '#' || line[0] == '\n');
}

sscanf(line," %s",str);
// check that sixth word is Triangles
if(0!=strcmp(str,"Triangles"))
{
fprintf(stderr,"Error: sixth word should be Triangles not %s\n",str);
fclose(mesh_file);
return false;
}
int number_of_triangles;
if(1 != fscanf(mesh_file," %d",&number_of_triangles))
{
fprintf(stderr,"Error: expecting number of triangles...\n");
fclose(mesh_file);
return false;
}
// allocate space for triangles
F.resize(number_of_triangles,vector(3));
// triangle indices
int tri[3];
for(int i = 0;i {
if(4 != fscanf(mesh_file," %d %d %d %d",&tri[0],&tri[1],&tri[2],&extra))
{
printf("Error: expecting triangle indices...\n");
return false;
}
for(int j = 0;j<3;j++)
{
F[i][j] = tri[j]-1;
}
}

// eat comments
still_comments= true;
while(still_comments)
{
fgets(line,LINE_MAX,mesh_file);
still_comments = (line[0] == '#' || line[0] == '\n');
}

sscanf(line," %s",str);
// check that sixth word is Triangles
if(0!=strcmp(str,"Tetrahedra"))
{
fprintf(stderr,"Error: seventh word should be Tetrahedra not %s\n",str);
fclose(mesh_file);
return false;
}
int number_of_tetrahedra;
if(1 != fscanf(mesh_file," %d",&number_of_tetrahedra))
{
fprintf(stderr,"Error: expecting number of tetrahedra...\n");
fclose(mesh_file);
return false;
}
// allocate space for tetrahedra
T.resize(number_of_tetrahedra,vector(4));
// tet indices
int a,b,c,d;
for(int i = 0;i {
if(5 != fscanf(mesh_file," %d %d %d %d %d",&a,&b,&c,&d,&extra))
{
fprintf(stderr,"Error: expecting tetrahedra indices...\n");
fclose(mesh_file);
return false;
}
T[i][0] = a-1;
T[i][1] = b-1;
T[i][2] = c-1;
T[i][3] = d-1;
}
fclose(mesh_file);
return true;
}

#include
#include "list_to_matrix.h"


template
IGL_INLINE bool igl::readMESH(
const std::string mesh_file_name,
Eigen::PlainObjectBase& V,
Eigen::PlainObjectBase& T,
Eigen::PlainObjectBase& F)
{
using namespace std;
using namespace igl;
FILE * mesh_file = fopen(mesh_file_name.c_str(),"r");
if(NULL==mesh_file)
{
fprintf(stderr,"IOError: %s could not be opened...",mesh_file_name.c_str());
return false;
}
#ifndef LINE_MAX
# define LINE_MAX 2048
#endif
char line[LINE_MAX];
bool still_comments;

// eat comments at beginning of file
still_comments= true;
while(still_comments)
{
fgets(line,LINE_MAX,mesh_file);
still_comments = (line[0] == '#' || line[0] == '\n');
}

char str[LINE_MAX];
sscanf(line," %s",str);
// check that first word is MeshVersionFormatted
if(0!=strcmp(str,"MeshVersionFormatted"))
{
fprintf(stderr,
"Error: first word should be MeshVersionFormatted not %s\n",str);
fclose(mesh_file);
return false;
}
int one = -1;
if(2 != sscanf(line,"%s %d",str,&one))
{
// 1 appears on next line?
fscanf(mesh_file," %d",&one);
}
if(one != 1)
{
fprintf(stderr,"Error: second word should be 1 not %d\n",one);
fclose(mesh_file);
return false;
}

// eat comments
still_comments= true;
while(still_comments)
{
fgets(line,LINE_MAX,mesh_file);
still_comments = (line[0] == '#' || line[0] == '\n');
}

sscanf(line," %s",str);
// check that third word is Dimension
if(0!=strcmp(str,"Dimension"))
{
fprintf(stderr,"Error: third word should be Dimension not %s\n",str);
fclose(mesh_file);
return false;
}
int three = -1;
if(2 != sscanf(line,"%s %d",str,&three))
{
// 1 appears on next line?
fscanf(mesh_file," %d",&three);
}
if(three != 3)
{
fprintf(stderr,"Error: only Dimension 3 supported not %d\n",three);
fclose(mesh_file);
return false;
}

// eat comments
still_comments= true;
while(still_comments)
{
fgets(line,LINE_MAX,mesh_file);
still_comments = (line[0] == '#' || line[0] == '\n');
}

sscanf(line," %s",str);
// check that fifth word is Vertices
if(0!=strcmp(str,"Vertices"))
{
fprintf(stderr,"Error: fifth word should be Vertices not %s\n",str);
fclose(mesh_file);
return false;
}

//fgets(line,LINE_MAX,mesh_file);

int number_of_vertices;
if(1 != fscanf(mesh_file," %d",&number_of_vertices) || number_of_vertices > 1000000000)
{
fprintf(stderr,"Error: expecting number of vertices less than 10^9...\n");
fclose(mesh_file);
return false;
}
// allocate space for vertices
V.resize(number_of_vertices,3);
int extra;
for(int i = 0;i {
double x,y,z;
if(4 != fscanf(mesh_file," %lg %lg %lg %d",&x,&y,&z,&extra))
{
fprintf(stderr,"Error: expecting vertex position...\n");
fclose(mesh_file);
return false;
}
V(i,0) = x;
V(i,1) = y;
V(i,2) = z;
}

// eat comments
still_comments= true;
while(still_comments)
{
fgets(line,LINE_MAX,mesh_file);
still_comments = (line[0] == '#' || line[0] == '\n');
}

sscanf(line," %s",str);
// check that sixth word is Triangles
if(0!=strcmp(str,"Triangles"))
{
fprintf(stderr,"Error: sixth word should be Triangles not %s\n",str);
fclose(mesh_file);
return false;
}
int number_of_triangles;
if(1 != fscanf(mesh_file," %d",&number_of_triangles))
{
fprintf(stderr,"Error: expecting number of triangles...\n");
fclose(mesh_file);
return false;
}
// allocate space for triangles
F.resize(number_of_triangles,3);
// triangle indices
int tri[3];
for(int i = 0;i {
if(4 != fscanf(mesh_file," %d %d %d %d",&tri[0],&tri[1],&tri[2],&extra))
{
printf("Error: expecting triangle indices...\n");
return false;
}
for(int j = 0;j<3;j++)
{
F(i,j) = tri[j]-1;
}
}

// eat comments
still_comments= true;
while(still_comments)
{
fgets(line,LINE_MAX,mesh_file);
still_comments = (line[0] == '#' || line[0] == '\n');
}

sscanf(line," %s",str);
// check that sixth word is Triangles
if(0!=strcmp(str,"Tetrahedra"))
{
fprintf(stderr,"Error: seventh word should be Tetrahedra not %s\n",str);
fclose(mesh_file);
return false;
}
int number_of_tetrahedra;
if(1 != fscanf(mesh_file," %d",&number_of_tetrahedra))
{
fprintf(stderr,"Error: expecting number of tetrahedra...\n");
fclose(mesh_file);
return false;
}
// allocate space for tetrahedra
T.resize(number_of_tetrahedra,4);
// tet indices
int a,b,c,d;
for(int i = 0;i {
if(5 != fscanf(mesh_file," %d %d %d %d %d",&a,&b,&c,&d,&extra))
{
fprintf(stderr,"Error: expecting tetrahedra indices...\n");
fclose(mesh_file);
return false;
}
T(i,0) = a-1;
T(i,1) = b-1;
T(i,2) = c-1;
T(i,3) = d-1;
}
fclose(mesh_file);
return true;
}
//{
// std::vector > vV,vT,vF;
// bool success = igl::readMESH(mesh_file_name,vV,vT,vF);
// if(!success)
// {
// // readMESH already printed error message to std err
// return false;
// }
// bool V_rect = igl::list_to_matrix(vV,V);
// if(!V_rect)
// {
// // igl::list_to_matrix(vV,V) already printed error message to std err
// return false;
// }
// bool T_rect = igl::list_to_matrix(vT,T);
// if(!T_rect)
// {
// // igl::list_to_matrix(vT,T) already printed error message to std err
// return false;
// }
// bool F_rect = igl::list_to_matrix(vF,F);
// if(!F_rect)
// {
// // igl::list_to_matrix(vF,F) already printed error message to std err
// return false;
// }
// assert(V.cols() == 3);
// assert(T.cols() == 4);
// assert(F.cols() == 3);
// return true;
//}

#ifndef IGL_HEADER_ONLY
// Explicit template specialization
// generated by autoexplicit.sh
template bool igl::readMESH, Eigen::Matrix, Eigen::Matrix >(std::basic_string, std::allocator >, Eigen::PlainObjectBase >&, Eigen::PlainObjectBase >&, Eigen::PlainObjectBase >&);
#endif