mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-10-04 22:31:02 +00:00
Clean design Docs and move context (#15803)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// GENERATED FILE — DO NOT EDIT.
|
||||
// Source: docs/ux/tool_atlas.json Generator: docs/ux/mockups/gen_offer_table.py
|
||||
// Source: scripts/CAD/tool_atlas.json Generator: scripts/CAD/gen_offer_table.py
|
||||
//
|
||||
// The object-driven tool offer (charter 4.1): every verb has ONE row index, that index
|
||||
// is the same in every selection it appears in, and verbs that do not apply are shown
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#include "slic3r/GUI/CAD/DesignPanel.hpp"
|
||||
#include "slic3r/GUI/CAD/DesignCanvas.hpp"
|
||||
#include "slic3r/GUI/CAD/DesignSketchTool.hpp"
|
||||
#include "slic3r/GUI/CAD/DesignOffer.hpp" // generated offer table — see docs/ux/tool_atlas.json
|
||||
#include "slic3r/GUI/CAD/DesignOffer.hpp" // generated offer table — see scripts/CAD/tool_atlas.json
|
||||
#include "libslic3r/CAD/GeometryEngine.hpp" // face_by_index for face-extrude gizmo anchor
|
||||
#include "libslic3r/TriangleMesh.hpp" // mesh import: STL/OBJ -> indexed_triangle_set
|
||||
#include "libslic3r/Format/OBJ.hpp"
|
||||
@@ -6067,7 +6067,7 @@ bool DesignPanel::sketch_plane_target(wxString& what) const
|
||||
// ---------------------------------------------------------------------------------------------
|
||||
// The object-driven offer (charter §4.1). Right-click the geometry and get a vertical list in the
|
||||
// ratified row order, with the verbs that do not apply DISABLED IN PLACE carrying their reason.
|
||||
// The rows come from DesignOffer.hpp, generated from docs/ux/tool_atlas.json — the same file the
|
||||
// The rows come from DesignOffer.hpp, generated from scripts/CAD/tool_atlas.json — the same file the
|
||||
// mockups are drawn from, so a drawing and the product cannot drift apart.
|
||||
// ---------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
@@ -4034,7 +4034,7 @@ void DesignSketchTool::render_mate_connectors()
|
||||
// the information. The same bear rendered flat vs in relief gives 164 vs 210 lit pixels at 16
|
||||
// degrees and 66 vs 120 at 6. So the glyph is a small shaded solid, not an outline.
|
||||
//
|
||||
// The geometry is EMITTED from the real part by doc/design/mate-connectors/emit_glyph_table.py,
|
||||
// The geometry is EMITTED from the real part by scripts/CAD/mate-glyph/emit_glyph_table.py,
|
||||
// not hand-drawn, so the glyph and the printed connector cannot drift apart. Two vertices stand
|
||||
// above the 3 mm plate in the actual B-rep, which is why the snout here is a tent with one crest
|
||||
// edge and four flanks drafted at 20 degrees rather than anything more elaborate.
|
||||
@@ -4042,7 +4042,7 @@ void DesignSketchTool::render_mate_connectors()
|
||||
// The cheek dot is the handedness mark. Without it the glyph differs from its own mirror by only
|
||||
// 5-9 % of its lit pixels, which is not enough to read; the dot roughly doubles that and, unlike
|
||||
// making the eyes uneven, identifies the side from that cheek alone instead of by comparison.
|
||||
// Emitted by doc/design/mate-connectors/emit_glyph_table.py from bear.step — do not hand-edit.
|
||||
// Emitted by scripts/CAD/mate-glyph/emit_glyph_table.py from bear.step — do not hand-edit.
|
||||
// Normalised to the part's bounding span and centred: the renderer scales by one radius.
|
||||
static const Vec2d kBearOutline[] = { // 12 verts, RDP eps 0.030, CCW
|
||||
{+0.3842, +0.3294}, {+0.3156, +0.4002}, {+0.2424, +0.3294},
|
||||
|
||||
Reference in New Issue
Block a user