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

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