Local operations on the geometric part based on half-edges

During edge split operations, new vertices, half‑edges, and faces are created. How can we ensure that their IDs are unique and different from the IDs of all existing vertices, half‑edges, and faces in the file?

In the implementations of the constructors for points, half‑edges, and faces, the uniqueness of IDs has already been ensured, so you do not need to assign IDs manually during the experiment.

The parameter can be left empty; for more details, see the developer documentation.

Through practice, an empty id is not allowed; the class does not define a constructor with a null parameter.

toolbar.cpp
scene.cpp
group.cpp
object.cpp
camera.cpp
C:\data\submissions\dandelion\src\scene\camera.cpp(55,17): error C2220: the following warning is treated as an error [C:\data\submissions\tmp\build\dandelion.vcxproj]
C:\data\submissions\dandelion\src\scene\camera.cpp(55,17): warning C4189: “right”: local variable initialized but not referenced [C:\data\submissions\tmp\build\dandelion.vcxproj]
light.cpp
stb_image_wrapper.cpp
kinetic_state.cpp
logger.cpp
rasterizer.cpp
rasterizer_renderer.cpp
C:\data\submissions\dandelion\src\render\rasterizer_renderer.cpp(101,41): error C2220: the following warning is treated as an error [C:\data\submissions\tmp\build\dandelion.vcxproj]
C:\data\submissions\dandelion\src\render\rasterizer_renderer.cpp(101,41): warning C4244: “=”: conversion from “float” to “int”, possible data loss [C:\data\submissions\tmp\build\dandelion.vcxproj]
C:\data\submissions\dandelion\src\render\rasterizer_renderer.cpp(102,41): warning C4244: “=”: conversion from “float” to “int”, possible data loss [C:\data\submissions\tmp\build\dandelion.vcxproj]
C:\data\submissions\dandelion\src\render\rasterizer_renderer.cpp(112,52): warning C4267: “initialization”: conversion from “size_t” to “unsigned int”, possible data loss [C:\data\submissions\tmp\build\dandelion.vcxproj]
whitted_renderer.cpp
render_engine.cpp
triangle.cpp
halfedge_mesh.cpp
Generating code…
Compiling…
meshedit.cpp
C:\data\submissions\dandelion\src\geometry\meshedit.cpp(76,15): error C2220: the following warning is treated as an error [C:\data\submissions\tmp\build\dandelion.vcxproj]
C:\data\submissions\dandelion\src\geometry\meshedit.cpp(76,15): warning C4189: “e2”: local variable initialized but not referenced [C:\data\submissions\tmp\build\dandelion.vcxproj]
C:\data\submissions\dandelion\src\geometry\meshedit.cpp(76,28): warning C4189: “e3”: local variable initialized but not referenced [C:\data\submissions\tmp\build\dandelion.vcxproj]
C:\data\submissions\dandelion\src\geometry\meshedit.cpp(74,30): warning C4189: “p2”: local variable initialized but not referenced [C:\data\submissions\tmp\build\dandelion.vcxproj]
halfedge.cpp
vertex.cpp
edge.cpp
face.cpp
solver.cpp
imgui.cpp
imgui_demo.cpp
imgui_draw.cpp
imgui_tables.cpp
imgui_widgets.cpp
imgui_impl_glfw.cpp
imgui_impl_opengl3.cpp
Generating code…
Submission error displayed, resulting in a huge amount of incomprehensible and useless output

First, the reason is already quite obvious: some of the source files you wrote did not suppress warnings, so the compilation failed:

C:\data\submissions\dandelion\src\scene\camera.cpp(55,17): error C2220: The following warning is treated as an error [C:\data\submissions\tmp\build\dandelion.vcxproj]

C:\data\submissions\dandelion\src\render\rasterizer_renderer.cpp(101,41): error C2220: The following warning is treated as an error [C:\data\submissions\tmp\build\dandelion.vcxproj]

The warning numbers are also provided:

C:\data\submissions\dandelion\src\scene\camera.cpp(55,17): warning C4189: “right”: local variable is initialized but not referenced [C:\data\submissions\tmp\build\dandelion.vcxproj]

Basically, if you search for a warning like C4189 you can find Microsoft’s official explanation, and then using the line and column numbers (55, 17) you can locate where the error is.

2.8 Display submission error, generating a lot of incomprehensible and useless output

So saying that is not good; I understand that everyone is nervous as the deadline approaches, but please try to control your emotions.

The Chinese prompt is very clear, how could there be no feedback?