Files
OrcaSlicer/tests/libslic3r/CMakeLists.txt
T
HanifKoh 8ce5eb7b12 Bend Text Along a Circle With a Curve Slider in the Text Tool (#17943)
* Add `bend_to_arc` to Lay Aligned Text Along a Circle

* Lay Text Along a Circle When the Style Has an Arc Radius

* Save the Text Arc Radius in Projects and Styles

* Add an Arc Radius Input to the Text Gizmo

* Include What the Emboss Tests Use

* Keep Text Straight When Its Letters Do Not Fit Inside the Circle

* Draw the Arc Radius Input in the Advanced Column and Process Every Edit

The input used the helper of the Height and Depth rows, which draws in
the main column, so in the Advanced section it sat on top of its own
label. It is now drawn in the Advanced column like the sliders around
it, and the Height and Depth helpers are back to what they were.

The saved style's radius is shown at the same scale as the value, so on
a scaled object the label is not marked as changed and Revert goes back
to the style's radius.

Every edit now starts a job. Skipping the job when the volume already
had the typed radius lost the value while a job for an earlier keystroke
was still running: typing 25 over 25 passes through 2, and the 2 landed.

* Keep the Arc Radius Exact on Revert and Skip Edits That Change Nothing

Revert handed the style's radius back through the shown unit, which in
inches or on a scaled object can miss it by a rounding: the style stayed
marked as changed and picking another style asked about discarding it.
The radius now stays in mm and is converted only for the field.

An edit that changes neither the last request nor the volume starts no
job, so holding + at the limit no longer adds undo steps. An edit that
returns to the volume's radius while an earlier keystroke's job is still
running starts one, as before.

"*1e39" typed into a field showing zero gave a radius that is not a
number. It now counts as no radius.

* Name the Arc Radius Before the Edit for What It Is

It is the radius before this frame's edit, not always what the last job
was started with.

* Give the Smallest Radius a Text Fits On

* Bend Text With a Curve Slider and a Linked Radius

* Apply a Typed Radius Equal to the One Shown

* Space Letters Along Their Tops When the Text Bends Inward

* Let Short Text Close Into a Ring With the Curve Slider

* Hide the Curve Tooltip While the Slider Is Dragged
2026-11-30 18:31:21 +08:00

135 lines
4.1 KiB
CMake

get_filename_component(_TEST_NAME ${CMAKE_CURRENT_LIST_DIR} NAME)
# Observe the geometry backend's actual CGAL layout without duplicating its flags.
# This source is only added when the test suite is enabled.
target_sources(libslic3r_cgal PRIVATE texture_import_cgal.cpp)
add_executable(${_TEST_NAME}_tests
${_TEST_NAME}_tests.cpp
test_3mf.cpp
test_amf.cpp
# Import naming policy is independent of the GUI and slicing pipeline.
test_import_names.cpp
# Round-trip seam metadata and active/dormant volume settings in both formats.
test_precise_seam_3mf.cpp
# Pure perimeter extraction is independent of Print/Layer fixtures.
test_precise_seam.cpp
# Contour correspondence is pure geometry; Print integration stays in fff_print.
test_seam_contour.cpp
test_aabbindirect.cpp
test_appconfig.cpp
test_arachne_walls.cpp
test_arrange.cpp
test_assemble_list.cpp
test_bambu_networking.cpp
test_belt_brim.cpp
# Mouse ear detection is pure contour geometry; the slicing pipeline stays in fff_print.
test_brim.cpp
test_buildvolume.cpp
test_calib.cpp
test_clipper_offset.cpp
test_clipper_utils.cpp
test_cut_connectors.cpp
test_cut.cpp
test_config.cpp
test_config_variant_expansion.cpp
test_locales_utils.cpp
test_drc.cpp
test_gcodereader.cpp
test_toolordering_nozzle_group.cpp
test_parallel_for_first_error.cpp
test_parallel_resolve.cpp
test_preset_bundle_loading.cpp
test_preset_collection.cpp
test_preset_setting_id.cpp
test_preset_diff.cpp
test_publish_settings.cpp
test_vendor_cache.cpp
test_preset_options.cpp
test_edge_grid.cpp
test_elephant_foot_compensation.cpp
test_emboss.cpp
test_expolygon.cpp
test_exclusion_volumes.cpp
test_fill_corner_smoothing.cpp
test_filament_mixer.cpp
test_fill_plane_path.cpp
test_adaptive_infill_field.cpp
test_geometry.cpp
test_measure.cpp
test_kdtree.cpp
test_lightning.cpp
test_imex_arrange.cpp
test_imex_helpers.cpp
test_imex_zones.cpp
test_multimaterial_segmentation.cpp
test_placeholder_parser.cpp
test_png_read_write.cpp
test_polygon.cpp
test_mutable_polygon.cpp
test_mutable_priority_queue.cpp
test_minimum_spanning_tree.cpp
test_nozzle_volume_type.cpp
test_obj.cpp
test_painted_modifier.cpp
test_step.cpp
test_stl.cpp
test_triangle_mesh_deal.cpp
test_triangle_selector.cpp
test_meshboolean.cpp
test_mesh_repair.cpp
test_trianglemesh_slicer.cpp
test_marchingsquares.cpp
test_lay_on_face.cpp
test_model.cpp
test_utils.cpp
test_miniz_extension.cpp
test_timeutils.cpp
test_semver.cpp
test_voronoi.cpp
test_wipe_tower_estimate.cpp
test_wipe_tower.cpp
test_wipe_path.cpp
test_slicing.cpp
test_optimizers.cpp
test_ordering_strategies.cpp
test_parameter_utils.cpp
test_shortest_path.cpp
# test_png_io.cpp
test_indexed_triangle_set.cpp
test_connected_bodies.cpp
test_texture_displacement.cpp
test_texture_import.cpp
test_instance_lock.cpp
../libnest2d/printer_parts.cpp
)
if (SLIC3R_CAD)
target_sources(${_TEST_NAME}_tests PRIVATE
test_caddocument.cpp
test_sketchconstraints.cpp
test_sketchedit.cpp
test_sketchprofile.cpp
test_sketchimport.cpp
test_sketchinference.cpp
test_slvs_constraints.cpp)
endif ()
if (TARGET OpenVDB::openvdb)
target_sources(${_TEST_NAME}_tests PRIVATE test_hollowing.cpp)
endif()
# libslic3r links Draco privately; test_drc.cpp encodes its own fixtures.
find_package(Draco REQUIRED)
target_link_libraries(${_TEST_NAME}_tests test_common libslic3r draco::draco Catch2::Catch2WithMain)
target_include_directories(${_TEST_NAME}_tests PRIVATE ${CMAKE_SOURCE_DIR}/src)
if (SLIC3R_PCH AND NOT SLIC3R_SYNTAXONLY)
add_precompiled_header(${_TEST_NAME}_tests ${CMAKE_SOURCE_DIR}/src/libslic3r/pchheader.hpp FORCEINCLUDE)
endif ()
set_property(TARGET ${_TEST_NAME}_tests PROPERTY FOLDER "tests")
orcaslicer_copy_test_dlls()
orcaslicer_discover_tests(${_TEST_NAME}_tests)