From b4900f306aa04b1f9d2c2b91b216e19bdb5e07ad Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Sun, 9 Jul 2006 19:35:55 +0000 Subject: [PATCH] changed .C to .cpp in examples --- Polyhedron/doc_tex/Polyhedron/main.tex | 18 +++++++++--------- .../doc_tex/Polyhedron_ref/Polyhedron_3.tex | 2 +- .../Polyhedron_incremental_builder_3.tex | 2 +- .../Polyhedron_ref/Polyhedron_items_3.tex | 2 +- .../Polyhedron_ref/Polyhedron_traits_3.tex | 2 +- .../Polyhedron_traits_with_normals_3.tex | 2 +- ..._prog_color.C => polyhedron_prog_color.cpp} | 0 ...on_prog_cube.C => polyhedron_prog_cube.cpp} | 0 ...cut_cube.C => polyhedron_prog_cut_cube.cpp} | 0 ...lder.C => polyhedron_prog_incr_builder.cpp} | 0 ...g_normals.C => polyhedron_prog_normals.cpp} | 0 ...dron_prog_off.C => polyhedron_prog_off.cpp} | 0 ...rog_planes.C => polyhedron_prog_planes.cpp} | 0 ...rog_simple.C => polyhedron_prog_simple.cpp} | 0 ...rog_subdiv.C => polyhedron_prog_subdiv.cpp} | 0 ...> polyhedron_prog_subdiv_with_boundary.cpp} | 0 ..._prog_tetra.C => polyhedron_prog_tetra.cpp} | 0 ...rog_traits.C => polyhedron_prog_traits.cpp} | 0 ...rog_vector.C => polyhedron_prog_vector.cpp} | 0 ...olor.C => polyhedron_prog_vertex_color.cpp} | 0 ...mal.C => polyhedron_prog_vertex_normal.cpp} | 0 ...tion.C => polyhedron_self_intersection.cpp} | 0 22 files changed, 14 insertions(+), 14 deletions(-) rename Polyhedron/examples/Polyhedron/{polyhedron_prog_color.C => polyhedron_prog_color.cpp} (100%) rename Polyhedron/examples/Polyhedron/{polyhedron_prog_cube.C => polyhedron_prog_cube.cpp} (100%) rename Polyhedron/examples/Polyhedron/{polyhedron_prog_cut_cube.C => polyhedron_prog_cut_cube.cpp} (100%) rename Polyhedron/examples/Polyhedron/{polyhedron_prog_incr_builder.C => polyhedron_prog_incr_builder.cpp} (100%) rename Polyhedron/examples/Polyhedron/{polyhedron_prog_normals.C => polyhedron_prog_normals.cpp} (100%) rename Polyhedron/examples/Polyhedron/{polyhedron_prog_off.C => polyhedron_prog_off.cpp} (100%) rename Polyhedron/examples/Polyhedron/{polyhedron_prog_planes.C => polyhedron_prog_planes.cpp} (100%) rename Polyhedron/examples/Polyhedron/{polyhedron_prog_simple.C => polyhedron_prog_simple.cpp} (100%) rename Polyhedron/examples/Polyhedron/{polyhedron_prog_subdiv.C => polyhedron_prog_subdiv.cpp} (100%) rename Polyhedron/examples/Polyhedron/{polyhedron_prog_subdiv_with_boundary.C => polyhedron_prog_subdiv_with_boundary.cpp} (100%) rename Polyhedron/examples/Polyhedron/{polyhedron_prog_tetra.C => polyhedron_prog_tetra.cpp} (100%) rename Polyhedron/examples/Polyhedron/{polyhedron_prog_traits.C => polyhedron_prog_traits.cpp} (100%) rename Polyhedron/examples/Polyhedron/{polyhedron_prog_vector.C => polyhedron_prog_vector.cpp} (100%) rename Polyhedron/examples/Polyhedron/{polyhedron_prog_vertex_color.C => polyhedron_prog_vertex_color.cpp} (100%) rename Polyhedron/examples/Polyhedron/{polyhedron_prog_vertex_normal.C => polyhedron_prog_vertex_normal.cpp} (100%) rename Polyhedron/examples/Polyhedron/{polyhedron_self_intersection.C => polyhedron_self_intersection.cpp} (100%) diff --git a/Polyhedron/doc_tex/Polyhedron/main.tex b/Polyhedron/doc_tex/Polyhedron/main.tex index ec8504db002..800510b54f7 100644 --- a/Polyhedron/doc_tex/Polyhedron/main.tex +++ b/Polyhedron/doc_tex/Polyhedron/main.tex @@ -170,7 +170,7 @@ component referred to by the halfedge \ccc{h} and not the polyhedral surface as a whole. This examples works only on the combinatorial level of a polyhedral surface. The next example adds the geometry. -\ccIncludeExampleCode{Polyhedron/polyhedron_prog_simple.C} +\ccIncludeExampleCode{Polyhedron/polyhedron_prog_simple.cpp} % +-------------------------------------------------------------+ \subsection{Example with Geometry in Vertices} @@ -188,7 +188,7 @@ the tip of \ccc{h}, and so on. The output of the program will be ``\verb|1 0 0\n0 1 0\n0 0 1\n0 0 0\n|''. %\newpage -\ccIncludeExampleCode{Polyhedron/polyhedron_prog_tetra.C} +\ccIncludeExampleCode{Polyhedron/polyhedron_prog_tetra.cpp} The polyhedron offers a point iterator for convenience. The above \texttt{for} loop simplifies to a single statement by using @@ -228,7 +228,7 @@ and exact arithmetic. In our example a homogeneous representation with \texttt{int} coordinates is sufficient. The four plane equations of the tetrahedron are the output of the program. -\ccIncludeExampleCode{Polyhedron/polyhedron_prog_planes.C} +\ccIncludeExampleCode{Polyhedron/polyhedron_prog_planes.cpp} % +-------------------------------------------------------------+ \subsection{Example with a Vector Instead of a List Representation} @@ -271,7 +271,7 @@ requires some preconditions, such as valid incidences, to be fulfilled that only the polyhedron can guarantee. \end{ccAdvanced} -\ccIncludeExampleCode{Polyhedron/polyhedron_prog_vector.C} +\ccIncludeExampleCode{Polyhedron/polyhedron_prog_vector.cpp} % +-------------------------------------------------------------+ @@ -294,7 +294,7 @@ facets. It can be stored, for example, in the vertex itself or in a hash-structure. See also the following Section~\ref{sectionPolyIO} for file I/O. -\ccIncludeExampleCode{Polyhedron/polyhedron_prog_off.C} +\ccIncludeExampleCode{Polyhedron/polyhedron_prog_off.cpp} % +-------------------------------------------------------------+ \subsection{Example Using Euler Operators to Build a Cube} @@ -331,7 +331,7 @@ are also marked in the program code. \end{ccHtmlOnly} -\ccIncludeExampleCode{Polyhedron/polyhedron_prog_cube.C} +\ccIncludeExampleCode{Polyhedron/polyhedron_prog_cube.cpp} @@ -546,7 +546,7 @@ structure design. Pulling all pieces together, the full example program illustrates how easy the color attribute can be accessed once it is defined. -\ccIncludeExampleCode{Polyhedron/polyhedron_prog_color.C} +\ccIncludeExampleCode{Polyhedron/polyhedron_prog_color.cpp} We come back to the first template parameter, \texttt{Refs}, of the wrapper classes. This parameter provides us with local types that @@ -625,7 +625,7 @@ actually a hole whose vertex coordinates pinch the hole shut to form an edge. The example directory \texttt{examples/Polyhedron/} contains the OFF files used here. -\ccIncludeExampleCode{Polyhedron/polyhedron_prog_subdiv.C} +\ccIncludeExampleCode{Polyhedron/polyhedron_prog_subdiv.cpp} % +------------------------------------------------------------------------+ \subsection{Example Using the Incremental Builder and Modifier Mechanism} @@ -655,7 +655,7 @@ its \ccc{operator()} with a reference to its internally used halfedge data structure. Thus, this member function in \ccc{Build_triangle} can create the triangle in the halfedge data structure. -\ccIncludeExampleCode{Polyhedron/polyhedron_prog_incr_builder.C} +\ccIncludeExampleCode{Polyhedron/polyhedron_prog_incr_builder.cpp} % +--------------------------------------------------------+ diff --git a/Polyhedron/doc_tex/Polyhedron_ref/Polyhedron_3.tex b/Polyhedron/doc_tex/Polyhedron_ref/Polyhedron_3.tex index 6974815d993..547b329dad4 100644 --- a/Polyhedron/doc_tex/Polyhedron_ref/Polyhedron_3.tex +++ b/Polyhedron/doc_tex/Polyhedron_ref/Polyhedron_3.tex @@ -770,7 +770,7 @@ automatically updated. This example program instantiates a polyhedron using the default traits class and creates a tetrahedron. -\ccIncludeExampleCode{Polyhedron/polyhedron_prog_simple.C} +\ccIncludeExampleCode{Polyhedron/polyhedron_prog_simple.cpp} \end{ccRefClass} diff --git a/Polyhedron/doc_tex/Polyhedron_ref/Polyhedron_incremental_builder_3.tex b/Polyhedron/doc_tex/Polyhedron_ref/Polyhedron_incremental_builder_3.tex index 7d419c739ca..969e8632271 100644 --- a/Polyhedron/doc_tex/Polyhedron_ref/Polyhedron_incremental_builder_3.tex +++ b/Polyhedron/doc_tex/Polyhedron_ref/Polyhedron_incremental_builder_3.tex @@ -200,7 +200,7 @@ section: A modifier class creates a new triangle in the halfedge data structure using the incremental builder. -\ccIncludeExampleCode{Polyhedron/polyhedron_prog_incr_builder.C} +\ccIncludeExampleCode{Polyhedron/polyhedron_prog_incr_builder.cpp} \end{ccRefClass} diff --git a/Polyhedron/doc_tex/Polyhedron_ref/Polyhedron_items_3.tex b/Polyhedron/doc_tex/Polyhedron_ref/Polyhedron_items_3.tex index 412a3d7af1b..00dffc20bac 100644 --- a/Polyhedron/doc_tex/Polyhedron_ref/Polyhedron_items_3.tex +++ b/Polyhedron/doc_tex/Polyhedron_ref/Polyhedron_items_3.tex @@ -79,7 +79,7 @@ access to the new member variable. See also the \ccc{PolyhedronItems_3} concept for another illustrative example. -\ccIncludeExampleCode{Polyhedron/polyhedron_prog_color.C} +\ccIncludeExampleCode{Polyhedron/polyhedron_prog_color.cpp} \end{ccRefClass} diff --git a/Polyhedron/doc_tex/Polyhedron_ref/Polyhedron_traits_3.tex b/Polyhedron/doc_tex/Polyhedron_ref/Polyhedron_traits_3.tex index aa5c3abf8e0..fefcdea7d1f 100644 --- a/Polyhedron/doc_tex/Polyhedron_ref/Polyhedron_traits_3.tex +++ b/Polyhedron/doc_tex/Polyhedron_ref/Polyhedron_traits_3.tex @@ -79,7 +79,7 @@ for testing sufficiency of requirements. Instantiation of a polyhedral surface with the Cartesian kernel based on double coordinates. -\ccIncludeExampleCode{Polyhedron/polyhedron_prog_simple.C} +\ccIncludeExampleCode{Polyhedron/polyhedron_prog_simple.cpp} \end{ccRefClass} diff --git a/Polyhedron/doc_tex/Polyhedron_ref/Polyhedron_traits_with_normals_3.tex b/Polyhedron/doc_tex/Polyhedron_ref/Polyhedron_traits_with_normals_3.tex index 992c4f3a282..adcde83396e 100644 --- a/Polyhedron/doc_tex/Polyhedron_ref/Polyhedron_traits_with_normals_3.tex +++ b/Polyhedron/doc_tex/Polyhedron_ref/Polyhedron_traits_with_normals_3.tex @@ -71,7 +71,7 @@ normal vector and no plane equation for each facet. We compute the normal vector assuming exact arithmetic (integers in this example) and convex planar facets. -\ccIncludeExampleCode{Polyhedron/polyhedron_prog_normals.C} +\ccIncludeExampleCode{Polyhedron/polyhedron_prog_normals.cpp} \end{ccRefClass} diff --git a/Polyhedron/examples/Polyhedron/polyhedron_prog_color.C b/Polyhedron/examples/Polyhedron/polyhedron_prog_color.cpp similarity index 100% rename from Polyhedron/examples/Polyhedron/polyhedron_prog_color.C rename to Polyhedron/examples/Polyhedron/polyhedron_prog_color.cpp diff --git a/Polyhedron/examples/Polyhedron/polyhedron_prog_cube.C b/Polyhedron/examples/Polyhedron/polyhedron_prog_cube.cpp similarity index 100% rename from Polyhedron/examples/Polyhedron/polyhedron_prog_cube.C rename to Polyhedron/examples/Polyhedron/polyhedron_prog_cube.cpp diff --git a/Polyhedron/examples/Polyhedron/polyhedron_prog_cut_cube.C b/Polyhedron/examples/Polyhedron/polyhedron_prog_cut_cube.cpp similarity index 100% rename from Polyhedron/examples/Polyhedron/polyhedron_prog_cut_cube.C rename to Polyhedron/examples/Polyhedron/polyhedron_prog_cut_cube.cpp diff --git a/Polyhedron/examples/Polyhedron/polyhedron_prog_incr_builder.C b/Polyhedron/examples/Polyhedron/polyhedron_prog_incr_builder.cpp similarity index 100% rename from Polyhedron/examples/Polyhedron/polyhedron_prog_incr_builder.C rename to Polyhedron/examples/Polyhedron/polyhedron_prog_incr_builder.cpp diff --git a/Polyhedron/examples/Polyhedron/polyhedron_prog_normals.C b/Polyhedron/examples/Polyhedron/polyhedron_prog_normals.cpp similarity index 100% rename from Polyhedron/examples/Polyhedron/polyhedron_prog_normals.C rename to Polyhedron/examples/Polyhedron/polyhedron_prog_normals.cpp diff --git a/Polyhedron/examples/Polyhedron/polyhedron_prog_off.C b/Polyhedron/examples/Polyhedron/polyhedron_prog_off.cpp similarity index 100% rename from Polyhedron/examples/Polyhedron/polyhedron_prog_off.C rename to Polyhedron/examples/Polyhedron/polyhedron_prog_off.cpp diff --git a/Polyhedron/examples/Polyhedron/polyhedron_prog_planes.C b/Polyhedron/examples/Polyhedron/polyhedron_prog_planes.cpp similarity index 100% rename from Polyhedron/examples/Polyhedron/polyhedron_prog_planes.C rename to Polyhedron/examples/Polyhedron/polyhedron_prog_planes.cpp diff --git a/Polyhedron/examples/Polyhedron/polyhedron_prog_simple.C b/Polyhedron/examples/Polyhedron/polyhedron_prog_simple.cpp similarity index 100% rename from Polyhedron/examples/Polyhedron/polyhedron_prog_simple.C rename to Polyhedron/examples/Polyhedron/polyhedron_prog_simple.cpp diff --git a/Polyhedron/examples/Polyhedron/polyhedron_prog_subdiv.C b/Polyhedron/examples/Polyhedron/polyhedron_prog_subdiv.cpp similarity index 100% rename from Polyhedron/examples/Polyhedron/polyhedron_prog_subdiv.C rename to Polyhedron/examples/Polyhedron/polyhedron_prog_subdiv.cpp diff --git a/Polyhedron/examples/Polyhedron/polyhedron_prog_subdiv_with_boundary.C b/Polyhedron/examples/Polyhedron/polyhedron_prog_subdiv_with_boundary.cpp similarity index 100% rename from Polyhedron/examples/Polyhedron/polyhedron_prog_subdiv_with_boundary.C rename to Polyhedron/examples/Polyhedron/polyhedron_prog_subdiv_with_boundary.cpp diff --git a/Polyhedron/examples/Polyhedron/polyhedron_prog_tetra.C b/Polyhedron/examples/Polyhedron/polyhedron_prog_tetra.cpp similarity index 100% rename from Polyhedron/examples/Polyhedron/polyhedron_prog_tetra.C rename to Polyhedron/examples/Polyhedron/polyhedron_prog_tetra.cpp diff --git a/Polyhedron/examples/Polyhedron/polyhedron_prog_traits.C b/Polyhedron/examples/Polyhedron/polyhedron_prog_traits.cpp similarity index 100% rename from Polyhedron/examples/Polyhedron/polyhedron_prog_traits.C rename to Polyhedron/examples/Polyhedron/polyhedron_prog_traits.cpp diff --git a/Polyhedron/examples/Polyhedron/polyhedron_prog_vector.C b/Polyhedron/examples/Polyhedron/polyhedron_prog_vector.cpp similarity index 100% rename from Polyhedron/examples/Polyhedron/polyhedron_prog_vector.C rename to Polyhedron/examples/Polyhedron/polyhedron_prog_vector.cpp diff --git a/Polyhedron/examples/Polyhedron/polyhedron_prog_vertex_color.C b/Polyhedron/examples/Polyhedron/polyhedron_prog_vertex_color.cpp similarity index 100% rename from Polyhedron/examples/Polyhedron/polyhedron_prog_vertex_color.C rename to Polyhedron/examples/Polyhedron/polyhedron_prog_vertex_color.cpp diff --git a/Polyhedron/examples/Polyhedron/polyhedron_prog_vertex_normal.C b/Polyhedron/examples/Polyhedron/polyhedron_prog_vertex_normal.cpp similarity index 100% rename from Polyhedron/examples/Polyhedron/polyhedron_prog_vertex_normal.C rename to Polyhedron/examples/Polyhedron/polyhedron_prog_vertex_normal.cpp diff --git a/Polyhedron/examples/Polyhedron/polyhedron_self_intersection.C b/Polyhedron/examples/Polyhedron/polyhedron_self_intersection.cpp similarity index 100% rename from Polyhedron/examples/Polyhedron/polyhedron_self_intersection.C rename to Polyhedron/examples/Polyhedron/polyhedron_self_intersection.cpp