Daniele Panozzo 4582a4f49d added a function that projects a mesh onto another using embree %!s(int64=11) %!d(string=hai) anos
..
bbw 764fc12ba8 camera example working and interactive. %!s(int64=11) %!d(string=hai) anos
boost b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
embree 4582a4f49d added a function that projects a mesh onto another using embree %!s(int64=11) %!d(string=hai) anos
matlab b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
mosek b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
png b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
tetgen b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
xml b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
C_STR.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
Camera.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
Camera.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
EPS.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
EPS.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
IndexComparison.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
MCTables.hh 9f80dbdd02 minor updates to marching cubes %!s(int64=13) %!d(string=hai) anos
NormalType.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
ONE.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
OpenGL_convenience.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
PI.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
REDRUM.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
ReAntTweakBar.cpp 4874f0e624 separate camera class %!s(int64=11) %!d(string=hai) anos
ReAntTweakBar.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
STR.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
SolverStatus.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
SortableRow.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
Timer.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
Viewport.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
ZERO.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
active_set.cpp 0f69e26554 Started camera example (not working correctly yet) %!s(int64=11) %!d(string=hai) anos
active_set.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
add_barycenter.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
add_barycenter.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
adjacency_list.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
adjacency_list.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
adjacency_matrix.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
adjacency_matrix.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
all_edges.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
all_edges.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
all_pairs_distances.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
all_pairs_distances.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
avg_edge_length.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
avg_edge_length.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
axis_angle_to_quat.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
axis_angle_to_quat.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
barycenter.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
barycenter.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
barycentric2global.cpp 4582a4f49d added a function that projects a mesh onto another using embree %!s(int64=11) %!d(string=hai) anos
barycentric2global.h 4582a4f49d added a function that projects a mesh onto another using embree %!s(int64=11) %!d(string=hai) anos
basename.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
basename.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
boundary_conditions.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
boundary_conditions.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
boundary_faces.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
boundary_faces.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
bounding_box_diagonal.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
bounding_box_diagonal.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
canonical_quaternions.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
canonical_quaternions.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
cat.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
cat.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
cocoa_key_to_anttweakbar_key.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
cocoa_key_to_anttweakbar_key.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
colon.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
colon.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
concat.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
concat.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
cotangent.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
cotangent.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
cotmatrix.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
cotmatrix.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
create_index_vbo.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
create_index_vbo.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
create_mesh_vbo.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
create_mesh_vbo.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
create_shader_program.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
create_shader_program.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
create_vector_vbo.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
create_vector_vbo.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
cross.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
cross.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
destroy_shader_program.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
destroy_shader_program.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
diag.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
diag.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
dirname.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
dirname.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
dot.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
dot.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
doublearea.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
doublearea.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
draw_beach_ball.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
draw_beach_ball.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
draw_floor.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
draw_floor.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
draw_mesh.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
draw_mesh.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
draw_point.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
draw_point.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
edge_lengths.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
edge_lengths.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
edges.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
edges.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
edgetopology.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
edgetopology.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
example_fun.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
example_fun.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
face_occurences.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
face_occurences.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
faces_first.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
faces_first.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
file_contents_as_string.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
file_contents_as_string.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
file_exists.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
file_exists.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
find.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
find.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
fit_plane.cpp 5e6a231f3f updated template types in removeUnreference and fixed a minor bug %!s(int64=11) %!d(string=hai) anos
fit_plane.h 5e6a231f3f updated template types in removeUnreference and fixed a minor bug %!s(int64=11) %!d(string=hai) anos
flare_textures.h.REMOVED.git-id b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
full.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
full.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
get_seconds.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
get_seconds.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
get_seconds_hires.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
get_seconds_hires.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
gl_type_size.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
gl_type_size.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
grad.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
grad.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
gradMat.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
gradMat.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
harwell_boeing.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
harwell_boeing.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
hsv_to_rgb.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
hsv_to_rgb.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
igl_inline.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
invert_diag.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
invert_diag.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
is_border_vertex.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
is_border_vertex.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
is_dir.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
is_dir.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
is_file.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
is_file.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
is_manifold.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
is_manifold.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
is_readable.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
is_readable.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
is_sparse.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
is_sparse.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
is_symmetric.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
is_symmetric.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
is_writable.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
is_writable.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
jet.cpp 0f69e26554 Started camera example (not working correctly yet) %!s(int64=11) %!d(string=hai) anos
jet.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
launch_medit.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
launch_medit.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
lens_flare.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
lens_flare.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
limit_faces.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
limit_faces.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
list_to_matrix.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
list_to_matrix.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
load_shader.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
load_shader.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
lu_lagrange.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
lu_lagrange.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
marching_cubes.cpp 9f80dbdd02 minor updates to marching cubes %!s(int64=13) %!d(string=hai) anos
marching_cubes.h 166a191467 clean up some headers, auto doc and todos %!s(int64=12) %!d(string=hai) anos
massmatrix.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
massmatrix.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
mat_max.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
mat_max.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
mat_min.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
mat_min.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
mat_to_quat.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
mat_to_quat.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
material_colors.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
matlab_format.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
matlab_format.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
matrix_to_list.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
matrix_to_list.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
max_size.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
max_size.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
median.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
median.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
min_quad_dense.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
min_quad_dense.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
min_quad_with_fixed.cpp 764fc12ba8 camera example working and interactive. %!s(int64=11) %!d(string=hai) anos
min_quad_with_fixed.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
min_size.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
min_size.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
mode.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
mode.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
moveFV.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
moveFV.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
moveVF.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
moveVF.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
mvc.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
mvc.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
normalize_quat.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
normalize_quat.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
normalize_row_lengths.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
normalize_row_lengths.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
normalize_row_sums.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
normalize_row_sums.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
on_boundary.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
on_boundary.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
orient_outward.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
orient_outward.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
orth.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
orth.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
pathinfo.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
pathinfo.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
per_corner_normals.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
per_corner_normals.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
per_face_normals.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
per_face_normals.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
per_vertex_attribute_smoothing.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
per_vertex_attribute_smoothing.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
per_vertex_normals.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
per_vertex_normals.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
plot_vector.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
plot_vector.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
point_in_circle.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
point_in_circle.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
point_in_poly.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
point_in_poly.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
polar_dec.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
polar_dec.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
polar_svd.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
polar_svd.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
pos.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
principal_curvature.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
principal_curvature.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
print_gl_get.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
print_gl_get.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
print_ijv.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
print_ijv.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
print_program_info_log.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
print_program_info_log.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
print_shader_info_log.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
print_shader_info_log.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
project.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
project.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
project_to_line.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
project_to_line.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
quat_conjugate.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
quat_conjugate.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
quat_mult.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
quat_mult.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
quat_to_axis_angle.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
quat_to_axis_angle.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
quat_to_mat.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
quat_to_mat.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
random_dir.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
random_dir.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
randperm.cpp 3d9295b22a templates %!s(int64=11) %!d(string=hai) anos
randperm.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
read.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
read.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
readDMAT.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
readDMAT.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
readMESH.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
readMESH.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
readNODE.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
readNODE.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
readOBJ.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
readOBJ.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
readOFF.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
readOFF.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
readTGF.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
readTGF.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
readWRL.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
readWRL.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
read_eigen_from_CSV.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
read_eigen_from_CSV.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
removeDuplicates.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
removeDuplicates.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
removeUnreferenced.cpp 306c5b7a31 cleaned up removeUnreferenced (we should rename this remove_unreferenced to match style and the corresponding matlab func) %!s(int64=11) %!d(string=hai) anos
removeUnreferenced.h 306c5b7a31 cleaned up removeUnreferenced (we should rename this remove_unreferenced to match style and the corresponding matlab func) %!s(int64=11) %!d(string=hai) anos
remove_duplicate_vertices.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
remove_duplicate_vertices.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
render_to_tga.cpp 79341b5bd6 compress in tutorial, better header in compress, ifndef IGL_NO_OPENGL and IGL_NO_ANTTWEAKBAR guards, compress compiles without these, undo svd %!s(int64=12) %!d(string=hai) anos
render_to_tga.h 09ef1c952b camera class, render to png extra, yimg external, more material colors (those used in FAST paper), %!s(int64=13) %!d(string=hai) anos
reorder.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
reorder.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
repdiag.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
repdiag.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
repmat.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
repmat.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
report_gl_error.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
report_gl_error.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
rgb_to_hsv.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
rgb_to_hsv.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
right_axis.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
right_axis.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
rotate_by_quat.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
rotate_by_quat.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
round.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
round.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
rows_to_matrix.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
rows_to_matrix.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
sample_edges.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
sample_edges.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
shine_textures.h.REMOVED.git-id b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
slice.cpp 3d9295b22a templates %!s(int64=11) %!d(string=hai) anos
slice.h 3d9295b22a templates %!s(int64=11) %!d(string=hai) anos
slice_into.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
slice_into.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
snap_to_canonical_view_quat.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
snap_to_canonical_view_quat.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
snap_to_fixed_up.cpp 4d48550bb1 camera example with twbar %!s(int64=11) %!d(string=hai) anos
snap_to_fixed_up.h 4d48550bb1 camera example with twbar %!s(int64=11) %!d(string=hai) anos
sort.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
sort.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
sort_triangles.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
sort_triangles.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
sortrows.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
sortrows.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
sparse.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
sparse.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
speye.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
speye.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
stdin_to_temp.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
stdin_to_temp.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
sum.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
sum.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
svd.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
svd.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
texture_from_tga.cpp 79341b5bd6 compress in tutorial, better header in compress, ifndef IGL_NO_OPENGL and IGL_NO_ANTTWEAKBAR guards, compress compiles without these, undo svd %!s(int64=12) %!d(string=hai) anos
texture_from_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 %!s(int64=12) %!d(string=hai) anos
tga.cpp 5e178e4771 fixed compilation error with clang %!s(int64=11) %!d(string=hai) anos
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 %!s(int64=12) %!d(string=hai) anos
trackball.cpp 764fc12ba8 camera example working and interactive. %!s(int64=11) %!d(string=hai) anos
trackball.h 764fc12ba8 camera example working and interactive. %!s(int64=11) %!d(string=hai) anos
transpose_blocks.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
transpose_blocks.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
triangulate.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
triangulate.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
tt.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
tt.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
two_axis_valuator_fixed_up.cpp 4d48550bb1 camera example with twbar %!s(int64=11) %!d(string=hai) anos
two_axis_valuator_fixed_up.h 4d48550bb1 camera example with twbar %!s(int64=11) %!d(string=hai) anos
uniform_type_to_string.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
uniform_type_to_string.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
unique.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
unique.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
unique_simplices.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
unique_simplices.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
unproject.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
unproject.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
unproject_to_zero_plane.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
unproject_to_zero_plane.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
up_axis.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
up_axis.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
upsample.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
upsample.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
verbose.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
vf.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
vf.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
view_axis.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
view_axis.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
write.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
write.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
writeDMAT.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
writeDMAT.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
writeMESH.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
writeMESH.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
writeOBJ.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
writeOBJ.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
writeOFF.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
writeOFF.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
writeTGF.cpp b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos
writeTGF.h b473232452 preprend license header to every file %!s(int64=11) %!d(string=hai) anos

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