Sync pinned main into render (#5869)

* Viewport: show reference geometry through bodies (Preferences, off by default) (#2697)

A new Graphics preference, "Show reference geometry through bodies", draws
inactive sketch contours, origin and construction planes and their axes over
shaded bodies. It is off by default, so the viewport looks as before: reference
geometry is depth-tested and a section leaves it whole (#1229); Create Sketch
and dialogs picking a plane still draw the planes through the model.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* ui-egui tests: offscreen GPU tests start their devices one at a time (#3989) (#3990)

* claim: #3989

* ui-egui tests: offscreen GPU tests start their devices one at a time

Every offscreen test started a wgpu instance of its own, and starting one
makes the Vulkan loader scan its drivers. With several test threads two
tests doing that at once crashed the test process with SIGSEGV inside the
loader (loader_icd_scan). offscreen_device now holds a process-wide lock
while it starts the instance, adapter and device; each test keeps its own
device and the rendering still runs side by side.

* DXF: write and read a Bézier at its own degree (#5269) (#5281)

* claim: #5269

* DXF: write and read a Bézier at its own degree (#5269)

The DXF writer and reader held a spline's degree to 7, the value MAX_BEZIER_DEGREE had before
#1642 raised it to 9. A G4 blend (one Bézier of degree 9) was written as a degree-7 SPLINE over
its first 8 control points, so a flat pattern's cut-out stopped 4.444 mm short in the file.

- seg_shape takes its limit from MAX_BEZIER_DEGREE: a Bézier is written whole, at its own degree.
- read_dxf reads SPLINE degrees 1 to MAX_BEZIER_DEGREE, the degrees a sketch spline takes.
- Tests: every Bézier degree 4 to 9, a degree-9 round trip, the reader's degrees, hostile SPLINE
  degrees and too few control points, the G4 cut-out exported and read back with its areas, and a
  degree-9 SPLINE with 2 to 10 points inserted into a sketch.

Fixes #5269

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Renaming a plane keeps its projections, canvases and hidden state (#4353) (#4354)

* claim: #4353

* Renaming a plane keeps its projections, canvases and hidden state (#4353)

timeline.rename only renamed the feature in other features' references. A sketch's
projection of a construction plane, a canvas placed on it and the hidden list keep it
by name too, so they lost it: the sketch warned that the plane no longer exists, the
canvas left the view and a hidden plane showed again. Document::rename_feature_keys
renames it in sketch links and canvases, as rename_body_keys does for bodies; the
selection follows in the command, and the hidden list in Session::refresh_from, so a
hidden plane stays hidden through undo and redo too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Browser: add Rename and Delete to feature menus (#3839, #4343) (#4342)

* claim: #3839

* fix(ui): add Rename and Delete to browser feature menus

* Browser: a second click on a Document Settings entry closes its window (#4150) (#4152)

* claim: #4150

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Browser: a second click on a Document Settings entry closes its window (#4150)

Each entry under Document Settings only opened its window. A second click on
Units closed the menu on the press (the row is outside it) and opened it again
on the release; Precision left Preferences open; Parameters and Design
Properties came back as a fresh copy. Now a click on an entry whose window is
open closes it the way the window's own x does:
- Units: context_menu::toggle_for with the row as the opener, the fix #1522
  made for the workspace button's menu. A right-click still opens it at the
  pointer.
- Precision: prefs::close(app, true), the Cancel/x path that puts back what
  changed since the window opened (now pub(crate)).
- Parameters and Design Properties: the window is dropped, as its x does. A
  Parameters value typed but not applied yet is dropped with it, as today's
  second click already drops it.

Fixes #4150

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Preserve expression-positioned sketch fillet corners (#4097) (#4106)

* claim: #4097

* Sketch fillet keeps a corner placed by an expression (#4097)

Filleting a corner whose position comes from parameter expressions deleted
the point and its expressions, so the sketch gained two degrees of freedom
and later parameter changes distorted the outline. keep_corner now also
keeps fixed or expression-positioned points as virtual sharp corners.

* Fix feature editor picks after upstream sketch resizing (#4083) (#4084)

* claim: #4083

* Feature editors refill named edges and faces where they are now (#4083)

After an upstream sketch change, Fillet, Chamfer, Shell and Draft evaluated
correctly, but their editors refilled the originally clicked points and
could then fail with "no edge at ...". Resolve the stored names through the
document's naming helpers first, keep the resolved index, and map the pick
into the displayed body's frame; the point lookup stays as the fallback.

* ui-egui tests: clear the texture deltas of the frames they run (#4039)

Nine tests dropped an egui frame's output with its texture delta still
unapplied (the expression completion editor's frames, the slot preview's
three, the browser's feature rows). epaint asserts against that in debug
builds, so they failed under the dev profile and passed only where debug
assertions are off. They clear the delta as the other tests do; one more
hover test that dropped its output the same way does too.

* Frames: profile library, members along frame sketch lines, and the Frame Member dialog (#4003) (#4004)

* claim: #4003

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Frames: the profile library (#4003)

The first slice of frames and weldments: the cross-sections structural members
will be made of, each SolidCraft's own parametric definition built in code
(no vendor or standard size tables are shipped).

- solidcraft_doc::frame: bar, round bar, rectangular and round tube, angle,
  channel, I-beam and a generic T-slot extrusion as exact line/arc regions,
  with defaults worked out from the profile's size, refusals that name the
  dimension that does not fit, anchors and placement, and exact section
  properties (area, centroid, Ixx/Iyy/Ixy by Green's theorem).
- frame.profile.list, frame.profile.properties (with mass per metre for a
  density) and frame.profile.insert (draws a profile into a sketch, locked by
  default, at a point, anchor and angle).
- Tests against hand-computed values (rectangles, circles, composite
  rectangles by the parallel-axis theorem, fillet spandrels), hostile input,
  extrusion volume, undo; catalog entries in every locale; docs/frames.md;
  ROADMAP M15.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Frames: drop the built-in T-slot profile (#4003)

Aluminium extrusions and other vendor sections come from the user's own
sketch (drawn or inserted from the vendor's DXF), so the library keeps the
plain steel shapes only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Frames: members along frame sketch lines (#4003)

frame.member lays one body per straight line of a frame sketch (2D lines or
3D sketch lines), its cross-section square to the line from end to end:

- profile: a built-in profile, or profile_sketch, a sketch whose material
  (nested loops alternating, so two circles make a tube) is the section in
  its own x and y around its origin; profiles picks override it.
- anchor (origin, centre, centroid or a bounding-box corner or edge middle),
  angle (an angle expression, so a parameter), mirror.
- Orientation: the profile's y as near world up as the line allows, x
  square to both; a vertical member's x is world X (frame::member_axes).
- Members follow sketch and parameter edits, undo as one step, save and
  reopen (format: pending/frame-members.rs), and are named after the profile
  (Rect Tube 40x40x3, (2)…), numbering on past names already taken.

Tests against hand-computed volumes and bounding boxes (rectangle, 3D
tower lines, parameter edit, sketch tube profile and picks, anchor/angle/
mirror), refusals, undo/redo and reopen; walk fixtures and goldens; docs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Frames: fixes from the adversarial review (#4003)

- Default member lines are what was drawn: projected and other linked curves
  and 3D wires (a face sketch's edges) and lines of no length are left out.
- A profile sketch's material starts from its drawn profiles, as
  solid.extrude's "all" does, so a section sketched on a face works; the
  even-odd test uses outlines and boxes worked out once, capped at 256.
- Member names are pinned to their lines (`names`, by line id; `body_name`
  is the base): deleting or adding a line, or deleting another feature, no
  longer renames other members, and frame.member stores every name it gives.
  body.rename renames a member on its line (also for later member features);
  a copy whose body_names were set still names its members by position.
- Built-in profile dimensions are expressions (ProfileSpec): they follow
  parameters, bare numbers take the design's units, and they are feature
  inputs. frame.profile.properties/insert read them the same way.
- Default root/toe radii shrink to the room a thick section leaves; radii
  given are checked by name; a radius must be 0 or at least 0.01 mm; error
  messages report the wall or flange value given, not twice it.
- A line within 1e-6 rad of vertical orients as vertical, so rounding never
  turns a post a quarter turn.
- A 2D frame sketch in a differently placed component is mapped into the
  member's frame, and member features recompute when placements change.
- Caps before lookups for a design's `lines`; a line listed twice is
  refused; a 3D wire that runs back on itself is not a line.

Regression tests for each, from the review's scenarios.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Frames: the Frame Member dialog on the ribbon (#4003)

- Frame Member (MODEL > Create) opens a dialog: the frame sketch's lines
  picked in the view (or All Lines), a built-in profile and its dimensions or
  a section picked in another sketch, anchor, angle, mirror and name, with a
  live preview. Edit Feature reopens it filled in.
- Lines picked in the view keep their sketch (a SKETCH_LINES input picks
  ExternalSketchCurve): line ids are each sketch's own, so two 3D sketches
  both have a `w2`, and the members went on the newer sketch's lines.
- timeline.redefine takes frame.member. Members keep their names through an
  edit unless it gives them a new body_name; frame.member takes `names`.
- A member whose section is a whole profile sketch keeps it when edited
  (the dialog shows the sketch instead of picking every region, which would
  fill a tube's hole).
- An original frame_member icon, open for review, on the ribbon, timeline
  and browser.
- The angle profile is listed as L-Angle, and web and flange as Web/Flange
  thickness, so they translate apart from the existing Angle, Web and Flange;
  the dialog's labels are in en, ja and zh. en-GB no longer repeats the frame
  command labels it spells the same.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Rectangular and circular pattern: copies that miss the body are reported (#3042) (#3919)

* claim: #3042

* Warn when cut pattern copies remove no material

A rectangular or circular pattern whose copies miss the body succeeded silently and those copies did nothing. The pattern now reports how many of its cut copies removed no material, and keeps the copies that land.

* Delete in a rolled-back history warns about the features after the marker (#3471) (#3698)

* claim: #3471

* Delete in a rolled-back history warns about the features after the marker (#3471)

With the timeline rolled back, the checks a delete runs first (the
confirmation's "these features will fail", timeline.dependents and
selection.delete's would_fail) compared models evaluated only up to the
marker. Features after it, broken by the delete, were not listed, so their
error marks turned up only once the timeline moved to the end.

newly_broken_in_history evaluates both sides over the whole history when
either has a marker (on copies; the model and document are unchanged) and is
used by the delete's report and by timeline.dependents.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* macOS: Fusion navigation preset does not support Shift + two-finger orbit (#3446)

* Macos: keep touchpad/key modifiers true to fusion

* fix: remove obsolete orbit snap reset from trackpad navigation

Upstream removed ViewportState::orbit_snap. The new trackpad orbit path retained one reference, causing E0609 in the PR merge build.

Validation: all seven trackpad tests pass; cargo check -p solidcraft-ui-egui --all-targets passes on the exact failing CI merge 66a2791b with this fix applied; rustfmt and diff checks pass.

Co-Authored-By: GitHub Copilot <noreply@github.com>

* fix: retain Fusion trackpad help in refactored preferences

Preserve upstream's new preferences pages and apply the translated Fusion trackpad tooltip in prefs/navigation.rs.

Validation: cargo build -p solidcraft passed. Tests and full CI were not run, as requested.

Co-Authored-By: GitHub Copilot <noreply@github.com>

* style: format Fusion trackpad preferences tooltip

Apply rustfmt's required wrapping for the relocated tooltip. No behavior changes.

Validation: cargo fmt --all -- --check and git diff --check passed.

Co-Authored-By: GitHub Copilot <noreply@github.com>

---------

Co-authored-by: GitHub Copilot <noreply@github.com>

* 2-point circle takes a typed diameter (#3278) (#3335)

* claim: #3278

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* 2-point circle takes a typed diameter (#3278)

After its first point the 2-point circle tool showed no value box, so the
circle could only be sized with the cursor. It now shows a Diameter box,
like the centre circle: the typed value puts the second point that far
along the cursor's direction, and Enter draws the circle.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Phanoob <phanoob@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Reorder design tabs by dragging them (#3187) (#3188)

* claim: #3187

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Reorder design tabs by dragging them (#3187)

A tab dragged along the strip follows the pointer while the others make
room, and lands where it is released; Escape, or releasing down the
window, leaves the order as it was. With the custom title bar a drag that
starts mostly up or down (or on the only tab) still moves the window.
The control channel's ui.documents gains a move action (from, to).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Phanoob <phanoob@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Renaming a body keeps the evaluated timeline, off the window thread (#2467) (#2468)

* Renaming a body that later features change evaluates nothing (#2467)

Model::rename_body now keeps the results when later features change the
body (a pattern, a chamfer, a join). It still evaluates when a body of
that name comes and goes or isn't the same body throughout, when a later
body's name is worked out from it (X (2)), or when a message quotes it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Rename box: rename off the window thread, and locked bodies follow a rename (#2467)

The rename box commits body.rename through run_heavy, so a rename that
still evaluates later features (one names the body in its targets)
computes beside the window instead of freezing it. Locked bodies now
follow a body.rename from anywhere (the rename box, the control channel,
scripts), not only the rename box.

---------

Co-authored-by: bherbruck <brennen.herbruck@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Toolbar: a constraint dragged out of the small box becomes a full button (#5254) (#5456)

* claim: #5254

* Toolbar: a constraint dragged out of the small box becomes a full button (#5254)

The Constrain panel's small box of constraint icons was a fixed list, so
dragging one onto the full-size buttons saved a new order but it was still
drawn in the box. The toolbar settings now remember, per tab, which box
commands were moved out; those are drawn as full buttons, the box closes
up, and dropping one back on a box icon returns it. Reset Toolbar restores
the default box, and settings saved before this load unchanged.

* Sketch offset keeps its source lines free to turn (#4464) (#4466)

* claim: #4464

* Sketch offset keeps its source lines free to turn (#4464)

An offset adds a Parallel between each source line and its offset line.
Since offsets became associative, the offset's points are held during a
solve, so each Parallel pinned its source line to the offset line's
current direction: a closed chain lost its turning freedom (8 degrees of
freedom became 6), and Horizontal or an angle edit on a source line was
refused as conflicting.

The solver and the constructive reading now leave out a Parallel that
ties an offset line to the source it follows while the association lives;
the association already keeps them parallel. After Break the stored
Parallel drives again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Flat Pattern view draws perforations (#4440) (#4441)

* claim: #4440

* Flat Pattern view: draw perforation holes (#4440)

The flat view drew the outline, cut-outs, pockets and bend lines but not
perforation fields, though the flat-pattern data and the DXF export list
their holes. The view now reads the hole centres from the sheet through
SheetBody::perforation_holes, caches them per model state and body, and
draws them as circles in the cut-out style. Holes outside the viewport or
smaller than one pixel are skipped, and the cache is capped at one million
holes.

* "Don't Save" looks like a button in the Save changes prompt (#4380) (#4400)

* claim: #4380

* "Don't Save" looks like a button in the Save changes prompt (#4380)

The prompt's third action used the kit's low-emphasis text style, so it
didn't read as clickable and people thought Cancel was the only way out.
Add an opt-in secondary_left style to the confirm footer (a framed
secondary button from the theme tokens) and use it for Don't Save.

* Save prompt test: clear each frame's texture delta once it is applied

egui 0.36 panics when a TexturesDelta with unapplied deltas is dropped;
the test kept only the last frame's output and dropped the earlier ones.

* 3D mouse test: clear the frame's texture changes, so it passes in debug builds (#4382)

each_frame_hands_the_view_its_motion_through_the_drivers_mapping dropped
the output of a frame it ran (`let _ = ctx.run_ui(...)`). epaint panics
in debug builds when a TexturesDelta is dropped with deltas left ("Dropped
TexturesDelta with 1 unapplied deltas"), so the test failed under a plain
`cargo test` on every platform while the ci profile passed. It now clears
them, as the other UI tests do since #60.

Co-authored-by: Tyler Chiriboga <18270301+Tyler-Chiriboga@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Spanish (es-ES): catch up with en.json (#4292)

Co-authored-by: carlymx <24634598+carlymx@users.noreply.github.com>

* Esc ends the navigation bar's Pan, Orbit and Zoom modes (#4226) (#4233)

* claim: #4226

* Esc ends the navigation bar's Pan, Orbit and Zoom modes (#4226)

The nav bar toggled a mode on, but nothing cleared it on Esc, so a left drag
kept panning, orbiting or zooming. Esc now ends an active nav mode first;
the next Esc reaches the tool or dialog as before.

* Keep long Select Other labels inside the popup (#4209) (#4225)

* claim: #4209

* fix(ui): bound Select Other labels and expose full names (#4209)

* Deleting an inserted file removes its components, placements and joints (#4100) (#4113)

* claim: #4100

* Deleting an inserted file removes its components, placements and joints (#4100)

A STEP or mesh file inserted into a design makes a component tree. Deleting
its feature left that tree behind: the components, their occurrences, the
rigid joints that hold them and the bodies' component assignments. A later
body that took an imported body's name was then placed in the stale component.

Document::remove_component_tree removes a component subtree and everything
that refers to it: the features made inside it, its occurrences, the joints
on them with their motion links, joint origins, contact set members, motion
study keys and exploded moves, body component and offset entries, standard
part and link records, and configuration columns. Deleting an inserted
file's feature and component.delete both use it; component.delete now also
removes joints left pointing at a deleted occurrence. The body transfer
refusal moves with it, unchanged.

* Only an inserted file's feature takes its component tree when deleted

Mark the feature a STEP, IGES or mesh insert makes (`inserted`), and remove
the component tree on delete only for those and for a linked design's
feature. Deleting a copied component's independent base deletes just that
feature, as before. Older designs get the mark as they open (pending format
change), except copied components' independent bases.

* Rigid joint saved with the wrong occurrence when two occurrences share a component (#3857) (#3939)

* claim: #3857

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* Joint dialog: a body of a further instance picks that occurrence, not the component's first (#3857)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>

* Cancel Sketch: leave a sketch without keeping its changes (#3838) (#3938)

* claim: #3838

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SBN24y2TcqRcm2zn8Gkj27

* Cancel Sketch: leave a sketch without keeping its changes (#3838)

sketch.cancel (Cancel Sketch, ribbon Exit group and the sketch's
right-click menu) puts the design back as it was when the open sketch
was created or opened for editing: a new sketch is removed with its
dimension parameters, an edited one returns to how it was. It is one
undo step, so Undo goes back into the sketch.

The session remembers the design and the undo history at the point a
sketch is entered. Cancel uses that only while the history still runs
through it (the same steps before, every step since taken in this
sketch); otherwise it refuses and points to Undo, so a stale entry can
never throw away later work.

The icon is the approved close glyph in the sketch accent (alias
sketch_cancel); ja and zh carry the new label.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SBN24y2TcqRcm2zn8Gkj27

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* 3MF import: name a Bambu Studio project's bodies after its objects (#3858) (#3859)

* claim: #3858 (3MF import: names from a Bambu Studio project)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* 3MF import: name a Bambu Studio project's bodies after its objects (#3858)

Bambu Studio leaves the name off the root model's objects and keeps it in
Metadata/model_settings.config (<config><object id="N"><metadata key="name">),
so every object of a project came in as Mesh1, Mesh2, ... A build item whose
root object has no name of its own now takes the object's name from those
settings. A name in the model still comes first, and part names, other
settings and objects of other model parts are left alone.

The settings are read only when a body needs a name, within what the model
parts left of the 1 GB budget. Settings that can't be read (malformed, nested
too deeply, too large) never fail the import: the bodies keep the generic
names, with a warning saying why.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Tyler Chiriboga <18270301+Tyler-Chiriboga@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Viewport: right-click keeps a multi-selection of faces and edges (#3733) (#3788)

* claim: #3733

* Viewport: right-click keeps a multi-selection of faces and edges (#3733)

---------

Co-authored-by: AhmetV <344941595+ahmetv10@users.noreply.github.com>

* Parameter import and image pickers offer their own file types (#3216) (#3314)

* claim: #3216

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Parameter import and canvas image pickers offer their file types (#3216)

Both opened the picker with no file type of their own, so it listed only
designs, CAD files and meshes (and All files). macOS lets you pick only
the types a filter names: CSV parameters, and PNG or JPEG images for a
canvas, were greyed out. They now ask for csv/json and png/jpg/jpeg,
which the picker lists first (#1801).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Phanoob <phanoob@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Return to the originating tab after finishing a sketch (#3250) (#3264)

* claim: #3250

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* Return to the originating toolbar tab after finishing a sketch (#3250)

A sketch started from SHEET METAL or PLASTIC always ended on the SOLID
tab. Remember the tab that was active when the sketch began
(UiState::sketch_return_tab, not saved) and go back to it when the
sketch ends. Falls back to SOLID when that is not one of the normal
toolbar tabs. A sketch started from SOLID behaves as before.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* Test: no one-element loop in the return-tab test (clippy single_element_loop)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>

* STEP import: let a cancelled import release the import slot (#3171) (#3189)

* claim: #3171

* Release cancelled file import slots (#3171)

* Dragging a part along its joint no longer highlights what's under the pointer (#5137) (#5140)

* claim: #5137

* Dragging a part along its joint no longer highlights what's under the pointer (#5137)

The viewport's hover pick was skipped during a box selection and camera
moves, but not while a jointed part was dragged, so faces and edges under
the pointer lit up on every frame of the drag. The pick now waits until
the joint drag ends.

* Browser: a body picked in the viewport is opened to and scrolled to (#3005) (#3081)

* claim: #3005

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Browser: a body picked in the viewport is shown in the Browser (#3005)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Merge main; viewport::select takes a toggle flag now

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Phanoob <phanoob@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Line tool snaps a diameter through the circle centre (#4326) (#4327)

A line drawn across a circle only snapped its end onto the curve, so a
diameter could miss the centre at any angle. Near the centre the line now
locks onto the radial line: on the rim it stays on the circle and the centre
is kept on the line, and on the centre point the end lands there.

* Flatpak: find the host's fonts for CJK text and the font list (#5124) (#5127)

* claim: #5124

* Flatpak: find the host's fonts for CJK text and the font list (#5124)

Inside the Flatpak sandbox the host's fonts are mounted at /run/host/fonts
and /run/host/user-fonts, which no font search looked at. Japanese and
Chinese text fell back to boxes, and the font list missed the host's
families.

- Search both folders for the CJK and Chinese fallbacks and for the
  installed-font list.
- The CJK fallback reads SOLIDCRAFT_FONT_DIRS (a path list, as the font
  list already does), with CRAFT_FONTS_DIR kept as a fallback.

* Crash reports: keep component.activate in the journal (#5079) (#5121)

* claim: #5079

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Crash journal keeps component.activate (#5079)

Activating a component changes only the session's active component and
occurrence path, not the design, so the journal dropped the command and a
crash report's replay built later parts under the previously active
component. The journal now also keeps a command that changes either.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Control channel and MCP on by default, with a setting to turn it off (#5561)

The app opens its localhost control channel on port 27878 (or the next free
one) unless Preferences > Assistant turns it off; --control and
SOLIDCRAFT_CONTROL_PORT still win. A current.port discovery file lets
solidcraft-cli mcp find the running app with no arguments.

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>

* Tests: moving an occurrence recomputes only the cuts and joins it touches (#4965) (#4982)

* claim: #4965

* Joins and cuts follow only the placements they depend on (#4965)

Tests that turning a joint between parts cuts no hole again, and that a
tool cutting another part cuts again when that part moves relative to it,
while an unrelated part moving keeps the result.

Booleans and Combine now hash only the placements of the bodies they take
as inputs, relative to the frame that evaluates them (#3397), so these
pin that behaviour for joins and cuts with named targets across parts.

* fix(ui): preview shortcut chords and wait for complete modifier input (#1810)

Keep physical modifier events out of the ordinary-key slot, preview held keys immediately, and confirm after release and a one-second settling interval. Preserve legacy control-channel modifier behavior while allowing explicit physical Control/Command input. Add regression coverage, a UI scenario, localized guidance and documentation.

Fixes #1809.

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>

* Move: scope box selection to the active component (#4459) (#4527)

* claim: #4459

* fix: scope Move box selection to active component (#4459)

* Delete removes a selected construction axis (#4692) (#4695)

* claim: #4692

* Delete removes a selected construction axis (#4692)

Delete on a construction axis skipped it with "the origin axes can't be
deleted". It now deletes the construction axis feature, like construction
planes; the origin axes X, Y and Z are still refused.

* Agent chat: end the agent's process group where `kill` is busybox' (#4587) (#4588)

* claim: #4587

* Agent chat: end the agent's process group with the system call (#4587)

The group was signalled with a `kill` program: `kill -s TERM -- -<pgid>`.
That works with procps' `kill` and with BSD's, but busybox' `kill` takes no
`--`: it prints its usage, exits 1 and signals nothing. The agent's helpers
(the CLI an adapter wraps, the MCP servers it starts) then stay alive after
the agent is ended.

The group is signalled with the system call instead, so no `kill` program and
no shell are needed and the behaviour is the same everywhere. `nix` (MIT) is
already in the tree through zip, and only on Unix: the browser build does not
take it.

The two tests that cover this now pass where they failed before:
`agent_chat::process::tests::dropping_the_process_ends_its_group` and
`agent_chat::process::tests::stopping_the_agent_leaves_no_helpers_running`.

* Extrude: picking a face, vertex or parallel plane off the profile switches the extent to To Object (#2855)

* Extrude: picking a face, vertex or parallel plane off the profile turns the extent to To Object

With profiles picked, a face off their plane (or curved), a vertex off it, or a
construction plane parallel to it is taken as the To Object target instead of
another profile: the extent switches without the Extent Type choice, and the
distance shows how far the target is. Coplanar faces still join the profiles.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Extrude: automatic To Object is a Preferences setting, off by default

Preferences > Design > "Extrude to a picked target" (`extrude_auto_to_object`, default
false) turns the automatic To Object on. Off, picks in the Extrude dialog only add
profiles and the distance is not synced to a target, as before this change.

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: bherbruck <brennen.herbruck@gmail.com>

* Regenerate THIRD-PARTY-LICENSES.txt and docs/features.md [skip ci]

* FreeCAD/Rhino import: decode caps with room for detailed parts (#1783) (#3209)

* claim: #1783

* FreeCAD/Rhino import: decode caps with room for detailed parts (#1783)

cadmpeg decoded FreeCAD and Rhino files under its service profile, whose
million collection items and 2.56e8 work units a detailed part (a sprocket,
a threaded rod, a part with a few hundred faces) runs past: the import was
refused with "resource limit on CollectionItems: BudgetExceeded". Allow
8 million items and 2e9 work units, half of cadmpeg's desktop profile; the
input-size cap stays SolidCraft's STEP limit and every other cap stays at
the service profile's.

decoding_is_capped checks the two raised caps (and that they stay below the
desktop profile's) and that every other cap is still the service one.

Fixes #1783

* A spherical shell revolves into a solid with a void, and cuts and joins with hollow tools work (#451) (#4182)

* Assembly: ground the first part; drag free joint chains (#2804) (#2805)

* assembly(feat): ground first parts and drag free joint chains

Ground the first top-level part when it is created and let face dragging reposition free occurrences or any member of a floating joint chain in one undo step. Preserve exact repeated-placement frames, joint values, modifier selection and Escape cancellation. Keep the accumulated fixture, viewport layout and documentation integration fixes from the existing PR.

Signed-off-by: Karl Von Richter<karl@embeint.com>

* assembly(fix): update movable fixtures for first-part grounding

Accept the documented grounded override in component creation, explicitly free movement fixtures, and keep linked clipboard pastes movable even in an empty document. Cover first and reused linked pastes, default insertion grounding, and single-step undo in the existing link tests.

Signed-off-by: Karl Von Richter<karl@embeint.com>

* assembly(test): keep the motion-cost crank free

Unground the first component in the document-level joint-face measurement fixture so its motion samples can rotate after first-part grounding. Preserve the rotation and shared-measurement assertions that caught the Linux CI failure.

Signed-off-by: Karl Von Richter<karl@embeint.com>

* assembly(test): free the frame placement fixture

Create the frame-member placement fixture ungrounded before moving it above its root sketch. Keep its world-space member assertions while respecting first-part grounding in the frame tests added on main.

Signed-off-by: Karl Von Richter<karl@embeint.com>

---------

Signed-off-by: Karl Von Richter<karl@embeint.com>

* UI: integrate theme radii, borders, palettes and viewport refresh (#5045) (#5046)

* claim: #4922

* UI: let themes own corner radii

* UI: use four-point panel and window radii in SolidCraft 95

* UI: align the 95 radius assertion with four-point panels

* claim: #4953

* UI: let themes own structural and control borders

* UI: single Blueprint outlines and dotted secondary rules

* UI: separate container outlines and add theme-owned 95 bevels

* claim: #5007

* UI: apply theme palettes to icons, workspace tabs and Gruvbox settings

* claim: #5045

* Viewport: invalidate cached geometry colours when the theme palette changes

* UI: preserve legacy theme logo colours with the borderless mark

* Section Analysis: OK with no plane picked turns the section off (#2410) (#2411)

While a section is on, Section Analysis opened with no plane picked now
says "No plane picked: OK turns the section off." and OK runs
inspect.section {"clear": true}. With no section on, OK with no plane
still asks for a plane.

Fixes #2410.

* Regenerate THIRD-PARTY-LICENSES.txt and docs/features.md [skip ci]

* Close Change Parameters with Escape (#3372) (#3399)

* claim: #3372

* Fix Escape cancellation in Change Parameters

Consume Escape before parameter editors can commit pending text on focus loss, while preserving autocomplete and shortcut capture priority. Add 11 UI regressions covering draft cancellation, preview cleanup, document and history preservation, and reopening saved values.

* Preserve construction references when axes and points are renamed (#4419) (#4449)

* claim: #4419

* fix: preserve renamed construction references (#4419)

* Browser: route body picks into open command dialogs (#2560) (#4371)

* claim: #2560

* fix(ui): route Browser body picks into active dialogs

* Fix midpoint picks in sketch dimensions (#4872)

Retain MID snaps across both picks and materialize reusable midpoint
constraints for point-to-line and point-to-point dimensions. Let midpoint
pairs choose horizontal or vertical spans with pointer placement before
entering a value.

Cover projected model edges, overlapping geometry, helper reuse,
undo/cancel/reopen, and existing angular and line-circle workflows.

* Sketch slots: provide typed dimension inputs for every variant (#2423) (#4318)

* claim: #2423

* fix(sketch): add typed dimensions to every slot tool (#2423)

* Version 0.21.0 on main (released from rc.2's code) (#5774)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* docs(mcp): Windows setup for Claude Desktop (#3794)

* docs(mcp): Windows setup for Claude Desktop (paths, two servers, Store config file)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(mcp): say the Store build can keep the config elsewhere, not that the other path fails

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Regenerate THIRD-PARTY-LICENSES.txt and docs/features.md [skip ci]

* MCP: wait out long requests, honest batch outcomes, batch tool aliases (#2901)

Rebased onto main as one commit (was 120d26f7, df488f9a, db9d1073 plus
merges of main).

- A request the app reports as still running (#1618) is waited for on the
  same connection through `control.pending`; past the wait the error says it
  was not cancelled and will still apply (or only write its file), later calls
  are not sent behind it, and the new read-only `pending` tool returns its
  result once it lands.
- A failed batch says what really happened: `rolled_back` only when the
  design is back where the batch started (as #3288 / #3242 on main: the app's
  `rolled_back` is believed; for an older app, every completed step undone;
  only a rollback asked for is reported as one), plus `applied`, `not_run` and
  `failed.still_running`.
- A batch step may name a tool (set_parameter, list_commands,
  describe_command, execute, measure, inspect_design, undo, redo, export, save,
  open, new_design, crash_reports); screenshot, body_topology, batch and
  pending are refused before anything is sent.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* 3D mouse: driver choice, guided calibration, button mapping and a picture of the device (#1463) (#3825)

* Add a small test boat to steer around with the 3D mouse

A little hull in its own camera, drawn by the UI itself and not the CAD
viewport, so a 3D mouse can be tried out without opening a design. It
brings the model (generated by assets/models/make_test_boat.py) and the
tests for how the camera moves it.

Nothing uses it yet; Preferences picks it up with the rest of the 3D mouse
work.

* UI kit: keep a choice row from flipping with the scrollbar

A choice row picks segments or a dropdown by whether its labels fit. A page
scrollbar that comes and goes narrows the row by its own width, so the row
could flip back and forth between the two on a page that sits right at the
edge. It is now judged on the whole row and through a small helper,
fits_steadily, that only changes its answer once the miss is wider than the
scrollbar.

Also tests for that, for typed numbers in a slider's value box, and a
test hook to put up the issue-report input barrier by hand.

* 3D mouse: device model, guided calibration, buttons and a picture

The 3D mouse becomes a device we know something about instead of six raw
numbers.

The reader picks between spacenavd and the direct hidraw driver, falls back
from one to the other, and says so when it can't open the device. Guided
calibration asks whether the device is a spring cap or a trackball, adds a
touch step, and uses a settle filter so a ball let go of stops reading as
motion. Buttons get jobs (keys, held modifiers, commands), saved per
device, with defaults for the SpaceMouse Pro.

Preferences gets a picture of the device that moves as it does, next to the
test boat, and the same picture can sit in the 3D view at Left Viewport,
Right Viewport or Left Window, above the floating History card like the
legend and readouts.

These ride together because the crate's calibration types, the Preferences
page, the Linux reader and the button hook all use each other.

* 3D mouse: offer to calibrate an uncalibrated device

When a 3D mouse shows up that has not been calibrated, a card in the 3D
view offers to calibrate it, to swap drivers when the other one would work
better, to close, or to never ask again. It is made once per device, goes
away after 30 seconds in view, and gives way to a status or computing
toast instead of stacking on it.

The card is the shared toast, which now takes buttons: they group by
purpose, wrap inside the card at narrow widths, and do nothing while an
issue report holds CAD input. The picture of the device in the 3D view
keeps clear of the card.

* 3D mouse: translations and attribution

The 3D mouse strings (ui.3d_mouse_*, the calibration steps and the offer
card) in every shipped language, the Japanese catalog note, and the credit
for the test boat model in ATTRIBUTION.md.

This is last because the code before it only looks keys up: it builds and
runs without these, falling back to English until they land.

* 3D mouse: draw its preferences with the settings kit like the rest of Navigation

The 3D mouse section was a folded header with its own layout. It now
uses the same kit as the sections above it: a settings_section card,
settings_form rows with the shared label column, dividers between the
device, axes, picture and buttons groups, Text::Hint for the helper
lines, and settings_control_width for the dropdowns.

The section is open like every other one (the header still folds it),
so the device badge on the folded header is gone; the calibration row
already names the device. Every setting, string and key is unchanged.
Tests that unfolded the section no longer click it, and the hint lines
are looked up as hints instead of notes.

* 3D mouse: show each axis's live tilt in Preferences, like main's axis rows

Each view axis row is main's axis row again: a meter that follows the tilt of the motion driving it, with the dead zone marked, next to Invert, Speed and the "driven by" menu. The meter reads the calibrated travel when the device has a calibration and the raw reading over full scale when it does not, and asks for a frame whenever the reading changes. The helpers are back as they are on main, and the calibration state is a badge by the enable toggle.

* 3D mouse: line its preferences up with the rest of Navigation

- The two checkboxes sit side by side in the same two-column grid as Wheel and trackpad.
- Row labels stop repeating "3D mouse" and use sentence case: Calibration, Driver, Restore defaults, Reset view, Left viewport, Right viewport, Left window.
- Hints line up under the control column instead of the left edge.
- The six view axes are named Pan X, Pan Y, Zoom, Orbit X, Orbit Y and Roll so they fit the name column.
- Buttons are a divider and rows in a form like the other groups, without the bold sub-heading.
- The driver, dead zone, axes, picture and buttons sit behind a collapsed Advanced section, since most people never touch them.

* 3D mouse: tidy the Advanced test for clippy

* Timeline: suppressing a feature keeps later features' body names (#4302) (#4311)

* claim: #4302

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Timeline: suppressing a feature keeps later features' body names (#4302)

Bodies numbered by the counter (`BodyN`) take the next free number on every
recompute, so suppressing a feature that made one moved every later counted
body down one (`Body2` became `Body1`) and broke what named it, such as a
Move of `Body2`. timeline.suppress now stores the current names of later
features' counted bodies in their `body_names` first, as body.rename already
does for a renamed counted body (#1109). Engine only: no evaluation or
design-format change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Timeline: a body made while a feature is suppressed keeps its name (#4302)

Suppressing a feature freed its counted name (`Body1`), so a body made
meanwhile took it and became `Body3` once the feature was back. Suppress
now also stores the suppressed feature's own counted names, and the
evaluator adds the names stored on earlier suppressed features to the
state's `reserved_body_names` (the names a rename freed, #4957), which the
`BodyN` counter passes by. They are taken from the design before each
feature is computed and are part of the state digest, so a cached result
is only reused when they match.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* cadmpeg 0.6.3: FreeCAD and Rhino import in the browser too (#4482)

cadmpeg 0.6.3 is pure Rust (ruzstd instead of the zstd C library, zip 9), so
solidcraft-io depends on it on every target and the wasm build reads .FCStd
and .3dm files like the desktop app. The browser's file pickers offer them.

0.6.3 replaces DecodeOptions::container_only with a decode depth; ask for
Geometry, what its STEP writer reads. zip 8 leaves the tree, and with it the
three cargo-deny advisory exceptions kept for it.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Pattern dialogs: Quantity fields get up/down step arrows (#4260) (#4264)

A new kit control, `ui_kit::count_field` / `count_row`, is an expression field for a
whole-number count with stacked step arrows at its right edge. An arrow steps the
evaluated count by one within the field's limits: a plain number is replaced, an
expression keeps its parameters and gains or adjusts a trailing `+ n`. The text
changes as typing changes it, so the live preview follows.

Used by the Quantity rows of the sketch Rectangular (1-500, both directions together
at most 500) and Circular (2-500) patterns, and the solid Rectangular, Circular and
Path patterns (1-1000).

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Regenerate THIRD-PARTY-LICENSES.txt and docs/features.md [skip ci]

* Join: say so when the joined piece doesn't touch the body (#4434) (#4436)

* claim: #4434

* Join: say so when the joined piece doesn't touch the body (#4434)

A Join (extrude, revolve, sweep, loft, pipe, coil, primitives, thicken,
boundary fill, surface network) whose material meets none of its targets
still joins it to the first target as a separate piece. The result stays
as it was; the feature now warns: "the joined piece doesn't touch `Body1`,
so `Body1` is now in 2 separate pieces (New Body makes it a body of its
own)". History marks it and the command reply carries it.

The check compares pieces (outer shells, not voids) of the bodies the
feature changed or absorbed before and after it, so it holds for the
batched multi-profile path too, stays quiet for a join that bridges
pieces or closes a cavity, and leaves Combine (which joins the bodies it
is given) alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Hole: snap to face and round-edge centres, drag placed holes, section in the dialog (#2171) (#2912)

Placing a Single hole put it exactly where the click landed, with nothing to line it up by and no
way to move it but taking it out and picking again; the dialog was a list of size fields.

- Preferences › Design › Create Hole has two settings, both off by default, so a new installation
  places holes as before:
  - Snap to face and edge centres (`hole_snaps`): the planar face under the cursor offers its
    middle and the centres of its round edges (a boss, a rounded corner, a hole already there) as
    marks; a pick near one, or on or beside such an edge, takes that centre and the mark is named.
    Sketch points on the face still come first; Alt or Ctrl held places it where clicked.
  - Move holes by clicking or dragging (`hole_moves`): each placed hole has a handle that drags it
    (snapping when snaps are on) and takes it out when clicked, and a pick elsewhere on its face
    moves it there. Edit Feature shows the handle too, so a hole can be moved later (#1047).
- The Hole dialog draws a section of the hole as its options make it, with each size in a field
  beside the dimension it sets; a hovered or focused field lights its dimension. The layout is a
  new kit element, `ui_kit::figure_rows` (a caller-painted figure beside captioned fields).

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Hole: place a Single hole by distances from reference edges (#37) (#2931)

A Single hole can take up to two straight edges of its face as references,
each with the distance of the hole's centre from that edge's line, measured
in the face's plane. `solid.hole` takes them as `references: [{edge, distance}]`;
the edges are found again by their persistent names, else their points, so
the hole follows them when the part changes, and each distance is a
parameter. A bad reference (no edge there, a curved edge, one square to the
face, parallel edges, a negative distance, a centre off the face) is refused.

In the Hole dialog, Reference 1 and 2 follow the face, each with its Distance
row; the canvas shows each distance as a dimension from its edge to the hole,
with a box just past the edge to type it in. Picking an edge measures its
distance (and its box takes the keyboard), typing one moves the hole, and
moving the hole measures them again. Edit Feature picks the edges again with
their distances.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

---------

Signed-off-by: Karl Von Richter<karl@embeint.com>
Co-authored-by: Frank <58932224+plexi32@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: raykholo <raykholo@users.noreply.github.com>
Co-authored-by: CamWight <91156642+CamWight@users.noreply.github.com>
Co-authored-by: SS-EN <84559909+SS-EN@users.noreply.github.com>
Co-authored-by: Colin Faulkingham <colin.faulkingham@gmail.com>
Co-authored-by: Karl Von Richter <karl@von-richter.net>
Co-authored-by: HiroKenEz <59478073+HiroKenEz@users.noreply.github.com>
Co-authored-by: Peppe Bergqvist <p@bergqvi.st>
Co-authored-by: GitHub Copilot <noreply@github.com>
Co-authored-by: phanoob <lesur.Stephane@wanadoo.fr>
Co-authored-by: Phanoob <phanoob@gmail.com>
Co-authored-by: Kai Evans <nemshilov@gmail.com>
Co-authored-by: bherbruck <brennen.herbruck@gmail.com>
Co-authored-by: Tyler Chiriboga <tylerchiriboga.apps@gmail.com>
Co-authored-by: Tyler Chiriboga <18270301+Tyler-Chiriboga@users.noreply.github.com>
Co-authored-by: CaRLymx <carlymx@gmail.com>
Co-authored-by: carlymx <24634598+carlymx@users.noreply.github.com>
Co-authored-by: Loohi <78334654+Loohi@users.noreply.github.com>
Co-authored-by: leValdemar19 <valdemarnord@hotmail.com>
Co-authored-by: AhmetV <mihendiz10@gmail.com>
Co-authored-by: AhmetV <344941595+ahmetv10@users.noreply.github.com>
Co-authored-by: rlartot <94693724+rlartot@users.noreply.github.com>
Co-authored-by: Christian Svensson <blue@cmd.nu>
Co-authored-by: Thodoris Tsagkogeorgas <thodoristsagko@gmail.com>
Co-authored-by: ahmetalpcelik <80778880+ahmetalpcelik@users.noreply.github.com>
Co-authored-by: ealitt <ealitt@gmail.com>
Co-authored-by: Homero Thompson <vdirienzo@gmail.com>
Co-authored-by: Diogo Soares Rodrigues <dsrodrigues20@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Artem Sushchev <Suschev.Artem+github@gmail.com>
Co-authored-by: Nathan Dane <nathandane.dev@gmail.com>
Co-authored-by: Kai Evans <hi@kaievans.co>
Co-authored-by: Victor Santos Oliveira <56417388+Vittuu@users.noreply.github.com>
Co-authored-by: cronos <crono2250@users.noreply.github.com>
Co-authored-by: rbousigues88 <rbousigues@gmail.com>
Co-authored-by: The Nomad <nomad@positron3d.com>
Co-authored-by: Jackson Oursland <jacob.oursland@gmail.com>
Co-authored-by: Jacques <59315319+Jacquesvdberg92@users.noreply.github.com>
This commit is contained in:
selune
2026-10-24 08:09:20 +02:00
committed by GitHub
parent 0b3e9a9e1e
commit d4ec5e6811
350 changed files with 27722 additions and 3195 deletions
+5 -2
View File
@@ -37,6 +37,8 @@ Editable drawing code, native projects and shipped exports are collected under `
| assets/icons/app/macos/exports/Assets.car | SolidCraft contributors | Apple actool compilation of assets/icons/app/macos/source/SolidCraft.icon for macOS; contains original artwork only | MIT OR Apache-2.0 |
| assets/archive/icons/macos-v1/source/icon.vectorcraft | SolidCraft contributors | retained editable historical VectorCraft source, with named face and background layers; redundant exports retired | MIT OR Apache-2.0 |
| assets/icons/app/macos/exports/icon.icns | SolidCraft contributors | macOS fallback compiled by Apple's actool from the approved assets/icons/app/macos/source/SolidCraft.icon composition | MIT OR Apache-2.0 |
| assets/models/test_boat.bin | 3DBenchy.com | 3DBenchy.com | Public Domain |
| assets/models/make_test_boat.py | SolidCraft contributors | original script that packs a model into the compact file above | MIT OR Apache-2.0 |
| docs/screenshots/class-a-blend.png | SolidCraft contributors | screenshot of SolidCraft itself: two boxes bridged by `surface.blend` (a 40x10 sheet, `solidcraft-cli snapshot` of plan/evidence script ev_blend) | MIT OR Apache-2.0 |
| docs/screenshots/class-a-crown.png | SolidCraft contributors | screenshot of SolidCraft itself: a patch crowned with `surface.patch crown=0.3` over a saddle rim (`solidcraft-cli snapshot`) | MIT OR Apache-2.0 |
| docs/screenshots/class-a-boundary.png | SolidCraft contributors | screenshot of SolidCraft itself: a patch through two sketch lines built by `surface.boundary` with `crown: 0.4` (`solidcraft-cli snapshot`) | MIT OR Apache-2.0 |
@@ -355,6 +357,7 @@ Editable drawing code, native projects and shipped exports are collected under `
| assets/icons/ui/design/svg/flat/stop.svg | SolidCraft contributors | original icon master (64 grid) | MIT OR Apache-2.0 |
| assets/icons/ui/design/svg/flat/shield.svg | SolidCraft contributors | original icon master (64 grid) | MIT OR Apache-2.0 |
| assets/icons/ui/design/svg/model/status_recovery.svg | SolidCraft contributors | original icon master (64 grid) | MIT OR Apache-2.0 |
| assets/icons/ui/design/svg/model/frame_member.svg | SolidCraft contributors | original icon master (64 grid) | MIT OR Apache-2.0 |
| assets/icons/ui/design/svg/model/placeholder.svg | SolidCraft contributors | two-tone modelling icon master (64 grid), original SolidCraft artwork | MIT OR Apache-2.0 |
| assets/icons/ui/design/svg/model/plane.svg | SolidCraft contributors | two-tone modelling icon master (64 grid), original SolidCraft artwork | MIT OR Apache-2.0 |
| assets/icons/ui/design/svg/model/plane_angle.svg | SolidCraft contributors | two-tone modelling icon master (64 grid), original SolidCraft artwork | MIT OR Apache-2.0 |
@@ -538,9 +541,9 @@ crates/engine/src/tests/gltf_import.rs); no third-party models are committed.
## FreeCAD and Rhino import library
FreeCAD `.FCStd` and Rhino `.3dm` files are read with [cadmpeg](https://github.com/cadmpeg/cadmpeg)
0.6.1 (Apache-2.0), linked as the crates `cadmpeg-core`, `cadmpeg-ir`, `cadmpeg-registry`,
0.6.3 (Apache-2.0), linked as the crates `cadmpeg-core`, `cadmpeg-ir`, `cadmpeg-registry`,
`cadmpeg-container`, `cadmpeg-codec-freecad`, `cadmpeg-codec-rhino` and `cadmpeg-codec-step`
in native builds (`crates/io/src/native_cad.rs`). Only those open-format codecs are built: no
in native and browser builds (`crates/io/src/native_cad.rs`). Only those open-format codecs are built: no
default features, so cadmpeg's codecs for commercial CAD formats and its ShapeManager/ACIS
codec are not compiled in. Its licence text is in THIRD-PARTY-LICENSES.txt; no code from it is
copied into SolidCraft.
Generated
+54 -98
View File
@@ -590,9 +590,9 @@ checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04"
[[package]]
name = "cadmpeg-codec-freecad"
version = "0.6.1"
version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2a5257265c2549cf59a8457b3c7aadcc96c95abe20205232553766993a808812"
checksum = "3c4a8fa61748cbb3ce80838b00a8cebfe553460583941f5aba6e2b97c16b4d37"
dependencies = [
"cadmpeg-container",
"cadmpeg-core",
@@ -601,14 +601,14 @@ dependencies = [
"serde",
"serde_json",
"tempfile",
"zip 8.6.0",
"zip",
]
[[package]]
name = "cadmpeg-codec-rhino"
version = "0.6.1"
version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7d88b42fb91c7e5af4c75c0433029771f7e3233a0b72ec3d0b2e5ff2c72bed07"
checksum = "d7af41440d4c1d69e88e612de02cc3c9bad79d03429531e640ac924fef53c6bf"
dependencies = [
"cadmpeg-container",
"cadmpeg-core",
@@ -625,53 +625,53 @@ dependencies = [
[[package]]
name = "cadmpeg-codec-step"
version = "0.6.1"
version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e83a52258c129a683f77fb360ca30af54ae34339625ad890be12621128a5811c"
checksum = "35e1b6d17cf26b31f59f2edab8ef5c29d2a33216c581fd913f012ad4869bd559"
dependencies = [
"base64",
"cadmpeg-container",
"cadmpeg-core",
"cadmpeg-ir",
"encoding_rs",
"serde",
"serde_json",
"thiserror 2.0.21",
"zip 8.6.0",
"zip",
]
[[package]]
name = "cadmpeg-container"
version = "0.6.1"
version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c110508cd9155e905f52906de505dfd42dc70a0321f5e90b5f68c28ba207686e"
checksum = "5ab7bcef48ac7480b4917820272d85cd2c9533e17904e15b0e4d22f19a6045bd"
dependencies = [
"cadmpeg-core",
"crc32fast",
"flate2",
"zip 8.6.0",
"zstd 0.14.2",
"zip",
]
[[package]]
name = "cadmpeg-core"
version = "0.6.1"
version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "21b1147e51a74e7c52da5b393a0344597238cdc622fac6443eb2fd526759f6fa"
checksum = "e86bb7a40521832504bb1f5953a1c706b2c52aad73bf6d84e1b35e5cb0beae3f"
dependencies = [
"flate2",
"memchr",
"roxmltree",
"ruzstd",
"serde",
"serde_json",
"thiserror 2.0.21",
"zstd 0.14.2",
]
[[package]]
name = "cadmpeg-ir"
version = "0.6.1"
version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "71ff19f019f013d97e353bb802c5d2e253c2859aaa5422009aa933dc2f2e7dbc"
checksum = "b570a1a8c579e407a9fd7bb10fa1900f8827f1d578b8fcb4ea2a056b5f323c72"
dependencies = [
"base64",
"cadmpeg-core",
@@ -684,9 +684,9 @@ dependencies = [
[[package]]
name = "cadmpeg-registry"
version = "0.6.1"
version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "66046f1a694926707bea8944f861e699964b04c68972708588f97e14ccee3c5d"
checksum = "b2be23469a9bca0b684f1811118fffb581ebd32ded08e6cc8b0716a41f8c1377"
dependencies = [
"cadmpeg-codec-freecad",
"cadmpeg-codec-rhino",
@@ -3786,6 +3786,15 @@ version = "1.0.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f"
[[package]]
name = "ruzstd"
version = "0.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "69e4ce4a039f42bf25920b95667e4d789e98749ab11bbb8d2c2936f788421bb5"
dependencies = [
"twox-hash",
]
[[package]]
name = "same-file"
version = "1.0.6"
@@ -4199,7 +4208,7 @@ dependencies = [
[[package]]
name = "solidcraft"
version = "0.21.0-rc.2"
version = "0.21.0"
dependencies = [
"block2 0.6.2",
"eframe",
@@ -4231,11 +4240,11 @@ dependencies = [
[[package]]
name = "solidcraft-3dx-client"
version = "0.21.0-rc.2"
version = "0.21.0"
[[package]]
name = "solidcraft-cli"
version = "0.21.0-rc.2"
version = "0.21.0"
dependencies = [
"image",
"log",
@@ -4247,7 +4256,7 @@ dependencies = [
[[package]]
name = "solidcraft-derive"
version = "0.21.0-rc.2"
version = "0.21.0"
dependencies = [
"proc-macro2",
"quote",
@@ -4256,7 +4265,7 @@ dependencies = [
[[package]]
name = "solidcraft-doc"
version = "0.21.0-rc.2"
version = "0.21.0"
dependencies = [
"log",
"serde",
@@ -4273,7 +4282,7 @@ dependencies = [
[[package]]
name = "solidcraft-engine"
version = "0.21.0-rc.2"
version = "0.21.0"
dependencies = [
"log",
"schemars",
@@ -4292,7 +4301,7 @@ dependencies = [
[[package]]
name = "solidcraft-geom"
version = "0.21.0-rc.2"
version = "0.21.0"
dependencies = [
"serde",
"serde_json",
@@ -4301,7 +4310,7 @@ dependencies = [
[[package]]
name = "solidcraft-gpu"
version = "0.21.0-rc.2"
version = "0.21.0"
dependencies = [
"image",
"log",
@@ -4320,7 +4329,7 @@ dependencies = [
[[package]]
name = "solidcraft-io"
version = "0.21.0-rc.2"
version = "0.21.0"
dependencies = [
"cadmpeg-core",
"cadmpeg-ir",
@@ -4338,12 +4347,12 @@ dependencies = [
"solidcraft-geom",
"solidcraft-kernel",
"thiserror 2.0.21",
"zip 9.0.4",
"zip",
]
[[package]]
name = "solidcraft-kernel"
version = "0.21.0-rc.2"
version = "0.21.0"
dependencies = [
"log",
"proptest",
@@ -4363,7 +4372,7 @@ dependencies = [
[[package]]
name = "solidcraft-mcp"
version = "0.21.0-rc.2"
version = "0.21.0"
dependencies = [
"serde_json",
"solidcraft-engine",
@@ -4372,7 +4381,7 @@ dependencies = [
[[package]]
name = "solidcraft-render"
version = "0.21.0-rc.2"
version = "0.21.0"
dependencies = [
"image",
"moxcms",
@@ -4386,7 +4395,7 @@ dependencies = [
[[package]]
name = "solidcraft-sketch"
version = "0.21.0-rc.2"
version = "0.21.0"
dependencies = [
"serde",
"serde_json",
@@ -4397,14 +4406,14 @@ dependencies = [
[[package]]
name = "solidcraft-space-mouse"
version = "0.21.0-rc.2"
version = "0.21.0"
dependencies = [
"serde",
]
[[package]]
name = "solidcraft-ui-egui"
version = "0.21.0-rc.2"
version = "0.21.0"
dependencies = [
"arboard",
"egui",
@@ -4412,6 +4421,7 @@ dependencies = [
"image",
"log",
"minisign-verify",
"nix 0.31.3",
"pollster 0.4.0",
"proc-macro2",
"semver",
@@ -4427,12 +4437,12 @@ dependencies = [
"ttf-parser",
"web-time",
"winreg",
"zip 9.0.4",
"zip",
]
[[package]]
name = "solidcraft-web"
version = "0.21.0-rc.2"
version = "0.21.0"
dependencies = [
"eframe",
"egui",
@@ -4881,6 +4891,12 @@ version = "0.25.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d2df906b07856748fa3f6e0ad0cbaa047052d4a7dd609e231c4f72cee8c36f31"
[[package]]
name = "twox-hash"
version = "2.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "86a801b3cea342a06d468c8710662aa29e5e05e4f5c0d62f00bbb7f2ad7941c2"
[[package]]
name = "type-map"
version = "0.5.1"
@@ -5962,7 +5978,7 @@ checksum = "e450f9b2ed1dff33c94c12589a87338689467b9c4f5d8a5710bd09a847d2c8a7"
[[package]]
name = "xtask"
version = "0.21.0-rc.2"
version = "0.21.0"
dependencies = [
"proc-macro2",
"serde_json",
@@ -6255,20 +6271,6 @@ dependencies = [
"syn 3.0.6",
]
[[package]]
name = "zip"
version = "8.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2d04a6b5381502aa6087c94c669499eb1602eb9c5e8198e534de571f7154809b"
dependencies = [
"crc32fast",
"flate2",
"indexmap",
"memchr",
"typed-path",
"zstd 0.13.3",
]
[[package]]
name = "zip"
version = "9.0.4"
@@ -6308,52 +6310,6 @@ dependencies = [
"simd-adler32",
]
[[package]]
name = "zstd"
version = "0.13.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e91ee311a569c327171651566e07972200e76fcfe2242a4fa446149a3881c08a"
dependencies = [
"zstd-safe 7.3.0",
]
[[package]]
name = "zstd"
version = "0.14.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "057cfd910cfac363a0ada849592624b4c9ff2e10bef504c3433810d78ed96f93"
dependencies = [
"zstd-safe 8.1.0",
]
[[package]]
name = "zstd-safe"
version = "7.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "64d80649ab6db9d9f6f9c80a40becd948eda4714a0a5ac8c4d157a32231c7882"
dependencies = [
"zstd-sys",
]
[[package]]
name = "zstd-safe"
version = "8.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bdd44c6a7284e91f3717755b24315a302edd9153a01f753c3cba3d765e8eafac"
dependencies = [
"zstd-sys",
]
[[package]]
name = "zstd-sys"
version = "2.1.1+zstd.1.5.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "aeec9eaf2dffbbd09201e23bd0ffcbaa33bb8e9266a10734fd7ed90a85eca078"
dependencies = [
"cc",
"pkg-config",
]
[[package]]
name = "zune-core"
version = "0.5.3"
+8 -5
View File
@@ -5,7 +5,7 @@ members = ["crates/*", "apps/*", "xtask"]
exclude = ["vendor"]
[workspace.package]
version = "0.21.0-rc.2"
version = "0.21.0"
edition = "2024"
license = "MIT OR Apache-2.0"
rust-version = "1.95"
@@ -67,17 +67,20 @@ encoding_rs = "0.8"
# read by crates/io itself, so no image decoding or file access comes with it.
gltf = { version = "1.4", default-features = false, features = ["names"] }
# FreeCAD and Rhino import (Apache-2.0, pure Rust apart from zstd; native builds only).
# FreeCAD and Rhino import (Apache-2.0, pure Rust; native and browser builds).
# Pinned: its IR and codec APIs change between minor versions. Open formats only: no default
# features, so cadmpeg's codecs for commercial formats (f3d, sldprt, inventor, catia, creo, nx)
# and its ShapeManager/ACIS `sat` codec are not compiled in. `step` is the writer we restate through.
cadmpeg-core = "=0.6.1"
cadmpeg-ir = "=0.6.1"
cadmpeg-registry = { version = "=0.6.1", default-features = false, features = ["fcstd", "rhino", "step"] }
cadmpeg-core = "=0.6.3"
cadmpeg-ir = "=0.6.3"
cadmpeg-registry = { version = "=0.6.3", default-features = false, features = ["fcstd", "rhino", "step"] }
# fonts (sketch text outlines; MIT OR Apache-2.0, pure Rust)
ttf-parser = { version = "0.25", default-features = false, features = ["std"] }
# Ends a process group with the system call (MIT; already in the tree through zip).
nix = { version = "0.31", default-features = false, features = ["signal"] }
# images
image = { version = "0.25", default-features = false, features = ["png", "hdr"] }
png = "0.18.1"
+10 -2
View File
@@ -51,9 +51,9 @@ PCB / Package, Render, Animation, Simulation, Manufacture/CAM, Drawings.
|---|---|---|---|
| M0 | Vertical slice | done | — |
| M1 | Sketch depth: command coverage implemented — projection/intersect/include as linked geometry (auto-project on faces, lost-reference warnings, break link), full SKETCH create/modify set (slots, polygons, tangent arcs/circles, ellipse, fit/control splines, conic, text, trim/extend/break, fillet/chamfer, offset, mirror, patterns, move/scale, blend curve, centerline), constraints incl. curvature and polygon with over-constraint refusal, Shift-picked line midpoints in Horizontal/Vertical using persisted points and ordinary constraints (#2087), driven/arc-length/linear-diameter dimensions, AutoConstrain, DXF/SVG insert, 3D sketch curves (Project To Surface, Intersection Curve, Isoparametric Curve, Spun Profile), exact free-form profiles (B-spline/NURBS edges, any spline degree, curves cut by crossings), sweeps and pipes along 3D sketch curves, canvases and decals, curvature combs. Exact free-form Extend and certified associative offsets now preserve geometry and IDs through edits, deletion and reopen. Occurrence-frame 3D wires now store explicit coordinate spaces and retain points and analytic fits through moves, refresh, undo and reopen. Constructive sketch solving (Owen 1991, Fudos & Hoffmann 1997) ahead of the numerical solver: points and rigid clusters are placed on the branch the sketch had, so dimension edits and drags keep their solution; edits that would turn a sketch over are refused; drags re-solve only the sketch per frame. Remaining workflow repairs: mixed offset junctions, legacy natural-spline seams, and damaged legacy wire links lacking frame provenance | in progress | 4 |
| M2 | Robust modelling: coplanar booleans in the kernel, holes (placed on faces and on sketch points), threads (cosmetic, then modelled), patterns, mirror, shell, draft, split, construction geometry | in progress | 16 |
| M2 | Robust modelling: coplanar booleans in the kernel, holes (placed on faces, at distances from reference edges, and on sketch points), threads (cosmetic, then modelled), patterns, mirror, shell, draft, split, construction geometry | in progress | 16 |
| M3 | General fillets and chamfers (curved edges, chains, vertex blends); saddle rolling-ball surfaces now use continuous seam sections and arc-length fitting with shared contact boundaries and bounded accuracy checks; tiny rim edges remain selected instead of nearby wall seams when filleting (#2498) | in progress | 30 |
| M4 | Files: STEP import (done — [docs/step-import.md](docs/step-import.md)), FreeCAD/Rhino solids through cadmpeg (done, desktop and CLI), 3MF export and 3MF/STL import as mesh bodies (done), 3MF with B-rep face tags ([docs/formats/3mf-face-tags.md](docs/formats/3mf-face-tags.md), done), constant-section parametric mesh reconstruction, DXF sketches, OBJ import | in progress | 6 |
| M4 | Files: STEP import (done — [docs/step-import.md](docs/step-import.md)), FreeCAD/Rhino solids through cadmpeg (done, desktop, browser and CLI), 3MF export and 3MF/STL import as mesh bodies (done), 3MF with B-rep face tags ([docs/formats/3mf-face-tags.md](docs/formats/3mf-face-tags.md), done), constant-section parametric mesh reconstruction, DXF sketches, OBJ import | in progress | 6 |
| M5 | Persistent naming of faces and edges (docs/book/src/dev/naming.md): faces named from their exact kernel-reported history (sketch curve sides, caps, revolve sections, primitive sides, blends, shell inner walls, pattern/mirror copies; split pieces told apart by the faces around them, lumps of a cut body named after their faces), edges by their faces; fillets/chamfers, sketches on faces, shell/draft/offset/replace faces, hole placements, joint origins and face appearances resolve by name first and warn when the entity split or vanished: done. sheet metal edges by base sketch line and flange side, shell inner faces, sweep and loft roles: done. kernel-reported face history: done (merged faces answer to every name; operations without history yet fall back to geometric names, flagged unverified; format 14 keeps older designs' geometric names). Left: history through sheet metal, plastic, surface and emboss features; FaceSource certificates through history | in progress | 20 |
| M6 | UI depth: selection feedback and origin (done), timeline editing (done: hover and selection highlight modifier faces, including fillets and chamfers; edit feature, history marker drag, dependency-checked single and multi-item reorder, suppress, rename, delete with dependents, re-resolved references; redefining selections refreshes persistent edge/face references while retaining feature identity and dimension names; responsive feature history with width-driven icons/names/title, snapping width resize, bottom/left/browser-stack docking, shared-column collapse, rollback bar, multi-selection and persistent folders), right-docked dialogs (done), live previews for every feature dialog (done), keyboard-first commands with on-canvas value boxes and sketch inline dimensions (done), drag manipulators with automatic join/cut (done: extrude incl. two sides, fillet, shell, hole depth, move, pattern spacing, revolve rotator, extrude taper), dark theme (done), right-click menu with Repeat (done), measure tool (done), section analysis (done), selection filter (done), drag-solve of sketch points (done); appearance controls now preserve body/face/component targeting, named transparent looks, reuse/search and override removal; preferences | in progress | 6 |
| M7 | Thin extrude (walls along open or closed curves: centre, inside, outside or two sides; mitred corners, crossing walls joined; #721), sweep, loft (incl. to a point), rib and web (to next / depth), emboss (planar faces and exact radial emboss/deboss of bounded orthogonal profiles on complete exterior cylinders/sleeves), thread (cosmetic, and modelled M3–M20 outside and inside: the ISO profile screwed in as a faceted cut), coil (smooth B-spline helical walls), pipe, pattern on path, patterns of bodies and components, replace face (parallel), align, remove, feature copy/paste: done. Unique eligible cylindrical targets are inferred for new Emboss features. Left: general curved-face emboss and exact (unfaceted) modelled threads | in progress | 12 |
@@ -64,11 +64,15 @@ PCB / Package, Render, Animation, Simulation, Manufacture/CAM, Drawings.
| M12 | Release: cross-platform packages, verification and deliberate publication implemented; original current-UI demo refreshed. Trusted distribution signing and broader performance work remain | in progress | 16 |
| M14 | Configurations: a table of rows (parameter expressions and feature suppressions per row) switched with config.activate (undoable, all or nothing), kept through parameter renames and feature deletes (config.configure, config.table, config.column/row/activate). Per-row body materials and appearances (library looks, custom colour/opacity and clearing overrides), undoable activation and save/reopen: done. Ordered typed configuration rules, atomic validation and structured rule editing: done. Component appearance and certified semantic face style columns, atomic preview/apply and independent-copy remapping: done. Exact constructed sketch-side and immutable imported-face lineage now preserve legacy names and reject retargeting. Left: ambiguous shifted/two-sided caps | in progress | 4 |
| M13 | Never lose work: atomic saves (temporary file, flush, rename; a crash at any moment leaves the old file or the new one) with the replaced version kept as `<file>.bak`; autosave of unsaved changes to the recovery folder every 5 minutes (preference) and after big operations, only when something changed; "Recover unsaved design?" on the next launch (`doc.recovery_list`, `doc.recover`, `doc.recovery_discard`); a kill-mid-save test (process killed while saving a 0.5 MB design 25 times). File format: `"format": "solidcraft/12"`, older formats upgraded step by step (`doc::format`), newer ones refused with a message, out-of-range numbers and broken placements refused; a corpus of designs saved by M0, components-era, joints-era and current builds (apps/solidcraft-cli/tests/corpus) that must open and evaluate as saved; damaged and hostile variants (truncation, bit flips, hostile values, removed keys, repeated features, deep nesting) never panic | done | 6 |
| M15 | Frames and weldments (#4003): structural members along 2D and 3D sketch lines, butt and mitre corners, trim to faces and bodies, end caps, gussets, cosmetic welds and a cut list. Done: the profile library (`frame.profile.list`, `frame.profile.properties`, `frame.profile.insert`): bar, round bar, rectangular and round tube, angle, channel and I-beam, each SolidCraft's own parametric definition with exact fillet arcs and exact section properties (area, centroid, second moments), tested against hand-computed values; members (`frame.member`): one body per straight line of a 2D or 3D frame sketch, following parameter edits, with a built-in profile (its dimensions parameter expressions) or a profile sketch (its drawn material by alternating nested loops), anchor, angle and mirror; each member's name kept with its line. Left: corners, trims, end caps, gussets, welds, cut list, FRAME tab and dialogs | in progress | 60 |
M6 navigation preferences include **Touchpad**: Shift + pointer movement pans, Alt/Option +
pointer movement orbits without a mouse button, and vertical scrolling zooms. Other presets
retain their saved two-finger scroll preference; camera motion is available through
`view.navigate` and modifier-aware `ui.move` automation.
With the **Fusion** preset and two-finger pan enabled, two fingers pan and Shift + two fingers
orbit freely, with pinch zoom and mouse bindings unchanged. The shared navigation handler
applies the same gestures to model and Render views and blocks orbit on flat pages.
UI redesign (#2016): the File/start view (#2027) uses shared light/dark navigation,
action tiles, recent rows and sample cards, with recovery review and Save As/Export
@@ -583,6 +587,10 @@ completed drawings publish atomically. The browser still exports synchronously.
continuous collision detection; local thin walls and small details remain limitations.
See [contact-set limits and recovery](docs/contact-sets.md).
## Assembly dragging
The design's first part is grounded when it is made, and a left-button drag repositions a free part (`occurrence.drag`: one undo step, exact occurrence paths including repeated jointed definitions, any floating-chain member carries the chain, grounded parts and joints hold where present, Escape cancels).
## 3D sketch bridges
3D sketch drawing snaps to points on other visible sketch planes without flattening them onto
+70 -105
View File
@@ -1,6 +1,6 @@
Third-party software in SolidCraft
SolidCraft (the desktop app, solidcraft-cli and the web app) is built from the 563 crates below.
SolidCraft (the desktop app, solidcraft-cli and the web app) is built from the 559 crates below.
Generated by `cargo xtask licences` from Cargo.lock and the crates' own licence files.
SolidCraft's own licence is in LICENSE-MIT and LICENSE-APACHE, and NOTICE.
@@ -60,13 +60,13 @@ bytemuck_derive 1.12.1 (Zlib OR Apache-2.0 OR MIT)
byteorder 1.5.0 (Unlicense OR MIT)
byteorder-lite 0.1.0 (Unlicense OR MIT)
bytes 1.12.1 (MIT)
cadmpeg-codec-freecad 0.6.1 (Apache-2.0)
cadmpeg-codec-rhino 0.6.1 (Apache-2.0)
cadmpeg-codec-step 0.6.1 (Apache-2.0)
cadmpeg-container 0.6.1 (Apache-2.0)
cadmpeg-core 0.6.1 (Apache-2.0)
cadmpeg-ir 0.6.1 (Apache-2.0)
cadmpeg-registry 0.6.1 (Apache-2.0)
cadmpeg-codec-freecad 0.6.3 (Apache-2.0)
cadmpeg-codec-rhino 0.6.3 (Apache-2.0)
cadmpeg-codec-step 0.6.3 (Apache-2.0)
cadmpeg-container 0.6.3 (Apache-2.0)
cadmpeg-core 0.6.3 (Apache-2.0)
cadmpeg-ir 0.6.3 (Apache-2.0)
cadmpeg-registry 0.6.3 (Apache-2.0)
calloop 0.13.0 (MIT)
calloop 0.14.5 (MIT)
calloop-wayland-source 0.3.0 (MIT)
@@ -355,6 +355,7 @@ rustls-platform-verifier 0.7.1 (MIT OR Apache-2.0)
rustls-platform-verifier-android 0.2.0 (MIT OR Apache-2.0)
rustls-webpki 0.103.15 (ISC)
rustversion 1.0.23 (MIT OR Apache-2.0)
ruzstd 0.9.1 (MIT)
schannel 0.1.29 (MIT)
schemars 1.2.3 (MIT)
schemars_derive 1.2.3 (MIT)
@@ -432,6 +433,7 @@ truck-shapeops 0.4.0 (Apache-2.0)
truck-stepio 0.3.0 (Apache-2.0)
truck-topology 0.6.0 (Apache-2.0)
ttf-parser 0.25.1 (MIT OR Apache-2.0)
twox-hash 2.1.5 (MIT)
type-map 0.5.1 (MIT/Apache-2.0)
typed-path 0.12.3 (MIT OR Apache-2.0)
typeid 1.0.3 (MIT OR Apache-2.0)
@@ -549,16 +551,10 @@ zeroize_derive 1.5.0 (Apache-2.0 OR MIT)
zerotrie 0.2.5 (Unicode-3.0)
zerovec 0.11.8 (Unicode-3.0)
zerovec-derive 0.11.6 (Unicode-3.0)
zip 8.6.0 (MIT)
zip 9.0.4 (MIT)
zlib-rs 0.6.8 (Zlib)
zmij 1.0.23 (MIT)
zopfli 0.8.3 (Apache-2.0)
zstd 0.13.3 (MIT)
zstd 0.14.2 (BSD-3-Clause)
zstd-safe 7.3.0 (BSD-3-Clause)
zstd-safe 8.1.0 (BSD-3-Clause)
zstd-sys 2.1.1+zstd.1.5.7 (BSD-3-Clause)
zune-core 0.5.3 (MIT OR Apache-2.0 OR Zlib)
zune-jpeg 0.5.15 (MIT OR Apache-2.0 OR Zlib)
zvariant 4.2.0 (MIT)
@@ -12457,6 +12453,32 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
The files under third-party/chromium are licensed as described in
third-party/chromium/LICENSE.
================================================================================
ruzstd 0.9.1
================================================================================
MIT License
Copyright (c) 2019 Moritz Borcherding
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
================================================================================
schannel 0.1.29
================================================================================
@@ -13718,6 +13740,32 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
================================================================================
twox-hash 2.1.5
================================================================================
The MIT License (MIT)
Copyright (c) 2015 Jake Goulding
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
================================================================================
type-map 0.5.1
================================================================================
@@ -16339,7 +16387,7 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
================================================================================
zip 8.6.0, zip 9.0.4
zip 9.0.4
================================================================================
The MIT License (MIT)
@@ -16594,89 +16642,6 @@ Apache License
See the License for the specific language governing permissions and
limitations under the License.
================================================================================
zstd 0.13.3
================================================================================
The MIT License (MIT)
Copyright (c) 2016 Alexandre Bury
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
================================================================================
zstd 0.14.2, zstd-safe 7.3.0, zstd-safe 8.1.0, zstd-sys 2.1.1+zstd.1.5.7
================================================================================
BSD 3-Clause License
Copyright (c) 2026, Alexandre Bury
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
================================================================================
zstd-sys 2.1.1+zstd.1.5.7
================================================================================
The auto-generated bindings are under the 3-clause BSD license:
BSD License
For Zstandard software
Copyright (c) Meta Platforms, Inc. and affiliates. All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name Facebook, nor Meta, nor the names of its contributors may
be used to endorse or promote products derived from this software without
specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
================================================================================
zune-core 0.5.3, zune-jpeg 0.5.15
================================================================================
@@ -16744,13 +16709,13 @@ accesskit_winit 0.32.2: Apache-2.0 (https://github.com/AccessKit/accesskit)
array-macro 2.1.8: MIT OR Apache-2.0 (https://codeberg.org/xfix/array-macro)
block2 0.5.1: MIT (https://github.com/madsmtm/objc2)
block2 0.6.2: MIT (https://github.com/madsmtm/objc2)
cadmpeg-codec-freecad 0.6.1: Apache-2.0 (https://github.com/cadmpeg/cadmpeg)
cadmpeg-codec-rhino 0.6.1: Apache-2.0 (https://github.com/cadmpeg/cadmpeg)
cadmpeg-codec-step 0.6.1: Apache-2.0 (https://github.com/cadmpeg/cadmpeg)
cadmpeg-container 0.6.1: Apache-2.0 (https://github.com/cadmpeg/cadmpeg)
cadmpeg-core 0.6.1: Apache-2.0 (https://github.com/cadmpeg/cadmpeg)
cadmpeg-ir 0.6.1: Apache-2.0 (https://github.com/cadmpeg/cadmpeg)
cadmpeg-registry 0.6.1: Apache-2.0 (https://github.com/cadmpeg/cadmpeg)
cadmpeg-codec-freecad 0.6.3: Apache-2.0 (https://github.com/cadmpeg/cadmpeg)
cadmpeg-codec-rhino 0.6.3: Apache-2.0 (https://github.com/cadmpeg/cadmpeg)
cadmpeg-codec-step 0.6.3: Apache-2.0 (https://github.com/cadmpeg/cadmpeg)
cadmpeg-container 0.6.3: Apache-2.0 (https://github.com/cadmpeg/cadmpeg)
cadmpeg-core 0.6.3: Apache-2.0 (https://github.com/cadmpeg/cadmpeg)
cadmpeg-ir 0.6.3: Apache-2.0 (https://github.com/cadmpeg/cadmpeg)
cadmpeg-registry 0.6.3: Apache-2.0 (https://github.com/cadmpeg/cadmpeg)
clipboard-win 5.4.1: BSL-1.0 (https://github.com/DoumanAsh/clipboard-win)
convert_case 0.4.0: MIT (https://github.com/rutrum/convert-case)
dispatch 0.2.0: MIT (http://github.com/SSheldon/rust-dispatch)
+2 -1
View File
@@ -36,8 +36,9 @@ impl Script {
);
}
/// A part placed after it is built: free, even as the design's first part (#2804).
fn component(&mut self, name: &str) {
self.c("component.create", json!({"name": name}));
self.c("component.create", json!({"name": name, "grounded": false}));
}
fn root(&mut self) {
+22 -2
View File
@@ -15,7 +15,7 @@
//! solidcraft-cli commands the command registry as JSON
//! solidcraft-cli recipe <recipe.json> translate an oracle recipe to a script
//! solidcraft-cli oracle <case-dir>... replay recipes and compare with expected.json
//! solidcraft-cli mcp [--in design|script] [--connect HOST:PORT [--token T]] [--allow-path DIR]... [--allow-any-path]
//! solidcraft-cli mcp [--headless] [--in design|script] [--connect HOST:PORT [--token T]] [--allow-path DIR]... [--allow-any-path]
//! [--param-check off|warn|strict]
//! MCP server on stdio (docs/mcp.md)
//! solidcraft-cli licences SolidCraft's licence and the third-party licences
@@ -82,7 +82,7 @@ const USAGE: &str = "usage:
solidcraft-cli recipe <recipe.json>
solidcraft-cli oracle <case-dir>... [--json]
solidcraft-cli fuzz [--from N] [--count N] [--jobs J] [--timeout S] [--steps N] [--minimise] [--out DIR] [--report FILE]
solidcraft-cli mcp [--in design.solidcraft|script.json] [--connect 127.0.0.1:PORT [--token T]] [--allow-path DIR]... [--allow-any-path]
solidcraft-cli mcp [--headless] [--in design.solidcraft|script.json] [--connect 127.0.0.1:PORT [--token T]] [--allow-path DIR]... [--allow-any-path]
[--param-check off|warn|strict]
solidcraft-cli crashes [list [--json] | show <id> | replay <id> | dir | clear [<id>]]
solidcraft-cli licences
@@ -601,17 +601,37 @@ fn cmd_mcp(args: &[String]) -> Result<(), String> {
Box::new(remote)
}
(None, Some(path)) => Box::new(solidcraft_mcp::Headless::new(load_checked(path, param_check)?)),
// No arguments: the running desktop app, found through the discovery file it wrote
// (docs/control-protocol.md); none running (or `--headless`): a session of its own.
(None, None) => {
if !args.iter().any(|a| a == "--headless")
&& let Some(port) = discover_app()
{
eprintln!("solidcraft mcp: bridged to the running app at 127.0.0.1:{port} (--headless starts a session of its own)");
return serve_mcp(Box::new(solidcraft_mcp::Remote::new(&format!("127.0.0.1:{port}"), flag(args, "--token"))), scope);
}
let mut headless = solidcraft_mcp::Headless::default();
headless.session.param_check = param_check;
Box::new(headless)
}
};
serve_mcp(backend, scope)
}
fn serve_mcp(backend: Box<dyn solidcraft_mcp::Backend>, scope: Option<solidcraft_engine::io::vfs::PathScope>) -> Result<(), String> {
let stdin = std::io::stdin();
let stdout = std::io::stdout();
solidcraft_mcp::Server::new(backend).with_path_scope(scope).serve(stdin.lock(), stdout.lock()).map_err(|e| e.to_string())
}
/// The port of the running desktop app: the one its discovery file names, if something listens
/// there (a file left by an app that crashed names a closed port).
fn discover_app() -> Option<u16> {
let port = solidcraft_engine::control_auth::read_current_port()?;
let addr = std::net::SocketAddr::from(([127, 0, 0, 1], port));
std::net::TcpStream::connect_timeout(&addr, std::time::Duration::from_millis(500)).ok().map(|_| port)
}
/// `save-stress <path> <rounds>`: save a design of a few hundred kilobytes `rounds` times, its
/// parameter `save_round` set to the round number each time.
fn cmd_save_stress(args: &[String]) -> Result<(), String> {
+1 -1
View File
@@ -1412,7 +1412,7 @@ fn a_sketch_on_a_patterned_boss_top() {
fn construction_geometry_and_holes_on_a_moved_component() {
let moved = || {
vec![
json!({"command": "component.create", "params": {"name": "Arm"}}),
json!({"command": "component.create", "params": {"name": "Arm", "grounded": false}}),
json!({"command": "solid.box", "params": {"corner": [20, 0, 0], "length": 10, "width": 4, "height": 4, "body_name": "ArmBody"}}),
json!({"command": "component.activate", "params": {"component": 0}}),
json!({"command": "occurrence.move", "params": {"occurrence": "Arm:1", "translate": [0, 50, 0]}}),
@@ -1,6 +1,6 @@
{"commands": [
{"command": "solid.box", "params": {"length": 10, "width": 10, "height": 10, "body_name": "Base"}},
{"command": "component.create", "params": {"name": "Arm"}},
{"command": "component.create", "params": {"name": "Arm", "grounded": false}},
{"command": "solid.box", "params": {"corner": [20, 0, 0], "length": 10, "width": 4, "height": 4, "body_name": "ArmBody"}},
{"command": "solid.fillet", "params": {"edges": [[25, 4, 4]], "radius": 1}},
{"command": "component.activate", "params": {"component": 0}},
+62
View File
@@ -89,3 +89,65 @@ fn mcp_connect_without_a_port_is_refused_at_start() {
assert!(stderr.contains("HOST:PORT"), "{addr}: {stderr}");
}
}
/// `mcp` with no arguments finds the running app through the discovery file and uses that
/// launch's token; with no app behind the file it stays a headless session.
#[test]
fn mcp_without_arguments_finds_the_running_app() {
let listener = TcpListener::bind("127.0.0.1:0").unwrap();
let port = listener.local_addr().unwrap().port();
let control_dir = std::env::temp_dir().join(format!("solidcraft-mcp-discover-{}-{port}", std::process::id()));
std::fs::create_dir_all(&control_dir).unwrap();
let token = "fedcba9876543210".repeat(4);
std::fs::write(control_dir.join(format!("{port}.token")), &token).unwrap();
std::fs::write(control_dir.join("current.port"), format!("{port}\n")).unwrap();
let app = std::thread::spawn(move || {
// The discovery probe connects and leaves without a request; the tool call follows.
let (stream, line) = loop {
let (stream, _) = listener.accept().unwrap();
let mut line = String::new();
BufReader::new(stream.try_clone().unwrap()).read_line(&mut line).unwrap();
if !line.is_empty() {
break (stream, line);
}
};
let req: Value = serde_json::from_str(&line).unwrap();
let ok = req["token"] == json!(token);
let reply = json!({"id": req["id"], "ok": ok, "result": {"bodies": [], "method": req["method"]}, "error": "unauthorized"});
writeln!(&stream, "{reply}").unwrap();
});
let mut child = Command::new(env!("CARGO_BIN_EXE_solidcraft-cli"))
.args(["mcp", "--allow-any-path"])
.env("SOLIDCRAFT_CONTROL_DIR", &control_dir)
.env_remove("SOLIDCRAFT_CONTROL_TOKEN")
.stdin(Stdio::piped())
.stdout(Stdio::piped())
.stderr(Stdio::piped())
.spawn()
.unwrap();
let mut stdin = child.stdin.take().unwrap();
let mut stdout = BufReader::new(child.stdout.take().unwrap());
writeln!(stdin, "{}", json!({"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "measure", "arguments": {}}})).unwrap();
let mut line = String::new();
stdout.read_line(&mut line).unwrap();
let r: Value = serde_json::from_str(&line).unwrap_or_else(|e| panic!("{e}: {line:?}"));
assert_ne!(r["result"]["isError"], true, "{r}");
assert!(r["result"]["content"][0]["text"].as_str().unwrap_or_default().contains("engine.execute"), "{r}");
app.join().unwrap();
drop(stdin);
assert!(child.wait().unwrap().success());
// The file names a port nothing listens on (the app crashed): a headless session instead.
let closed = TcpListener::bind("127.0.0.1:0").unwrap();
let dead = closed.local_addr().unwrap().port();
drop(closed);
std::fs::write(control_dir.join("current.port"), format!("{dead}\n")).unwrap();
let out = Command::new(env!("CARGO_BIN_EXE_solidcraft-cli"))
.args(["mcp", "--allow-any-path"])
.env("SOLIDCRAFT_CONTROL_DIR", &control_dir)
.stdin(Stdio::null())
.output()
.unwrap();
assert!(!String::from_utf8_lossy(&out.stderr).contains("bridged to the running app"), "{}", String::from_utf8_lossy(&out.stderr));
std::fs::remove_dir_all(&control_dir).ok();
}
+1 -1
View File
@@ -294,7 +294,7 @@ mod web {
let options = Object::new();
let _ = Reflect::set(&options, &"multiple".into(), &JsValue::FALSE);
let extensions = Array::new();
for e in [".solidcraft", ".solvecraft", ".json", ".step", ".stp", ".3mf", ".stl", ".obj", ".glb", ".gltf"] {
for e in [".solidcraft", ".solvecraft", ".json", ".step", ".stp", ".3mf", ".stl", ".obj", ".glb", ".gltf", ".fcstd", ".3dm"] {
extensions.push(&e.into());
}
let accept = Object::new();
+3 -2
View File
@@ -499,8 +499,9 @@ fn input_picker(files: &Rc<Files>, intent: Intent) {
let Some(doc) = web_sys::window().and_then(|w| w.document()) else { return };
let Ok(input) = doc.create_element("input").map(|e| e.unchecked_into::<web_sys::HtmlInputElement>()) else { return };
input.set_type("file");
// Everything the browser build imports, from the format registry (no cadmpeg formats here).
let accept = solidcraft_engine::io::formats::open_extensions(false).iter().map(|e| format!(".{e}")).collect::<Vec<_>>().join(",");
// Everything the browser build imports, from the format registry: cadmpeg is pure Rust, so
// FreeCAD and Rhino files are part of it.
let accept = solidcraft_engine::io::formats::open_extensions(true).iter().map(|e| format!(".{e}")).collect::<Vec<_>>().join(",");
input.set_accept(&accept);
// Attached (hidden) while it is open: some browsers ignore a click on a detached input.
let _ = input.set_attribute("style", "display:none");
+2 -2
View File
@@ -246,11 +246,11 @@ mod tests {
let axis =
|source, rest, full| solidcraft_ui_egui::space_mouse::AxisCalibration { source, reversed: false, rest, dead_zone: 0, full: [full; 2] };
// A short-range device: 15 of its 50 is under the raw dead zone, but 105 of 350 calibrated.
let short = Calibration { dead_zone_share: 0.0, axes: std::array::from_fn(|r| axis(r, 0, 50)) };
let short = Calibration { dead_zone_share: 0.0, kind: Default::default(), axes: std::array::from_fn(|r| axis(r, 0, 50)) };
let push = Axes { translation: [15, 0, 0], rotation: [0; 3] };
assert!(!push.moving() && moving(push, Some(short)));
// A device resting at 100 on every axis: past the raw dead zone, but at rest calibrated.
let offset = Calibration { dead_zone_share: 0.0, axes: std::array::from_fn(|r| axis(r, 100, 350)) };
let offset = Calibration { dead_zone_share: 0.0, kind: Default::default(), axes: std::array::from_fn(|r| axis(r, 100, 350)) };
let resting = Axes { translation: [100; 3], rotation: [100; 3] };
assert!(resting.moving() && !moving(resting, Some(offset)));
// Without a calibration, as read.
+96 -15
View File
@@ -11,6 +11,7 @@ use std::time::{Duration, Instant};
use serde_json::{Value, json};
use solidcraft_engine::MAX_LINE;
use solidcraft_engine::control_auth;
use solidcraft_engine::control_pending;
use solidcraft_ui_egui::ControlRequest;
/// Connections served at once, so a flood must not be able to spawn threads without end.
@@ -19,7 +20,7 @@ const MAX_CONNECTIONS: usize = 16;
const MAX_BAD_LINES: usize = 8;
static OPEN: AtomicUsize = AtomicUsize::new(0);
/// The token files this launch wrote (its `--control` port, the agent chat's endpoint), removed
/// The token files this launch wrote (its control port, the agent chat's endpoint), removed
/// when the app ends.
static TOKEN_FILES: std::sync::Mutex<Vec<std::path::PathBuf>> = std::sync::Mutex::new(Vec::new());
@@ -37,14 +38,42 @@ pub fn remove_token_file() {
let _ = std::fs::remove_file(p);
}
}
if let Some(port) = APP_PORT.lock().ok().and_then(|p| *p) {
control_auth::remove_current_port(port);
}
}
pub fn start(port: u16, ctx: egui::Context) -> Receiver<ControlRequest> {
/// The port the app's own channel listens on, for removing the discovery file at exit.
static APP_PORT: std::sync::Mutex<Option<u16>> = std::sync::Mutex::new(None);
pub fn start(listen_on: control_auth::Listen, ctx: egui::Context) -> Receiver<ControlRequest> {
let (tx, rx) = channel::<ControlRequest>();
// Every connection must show the token before anything runs (docs/control-protocol.md).
match control_auth::env_token().or_else(new_token) {
Some(token) => {
listen(port, token, tx, ctx, false);
let listener = match listen_on {
control_auth::Listen::Exact(port) => TcpListener::bind(("127.0.0.1", port)),
control_auth::Listen::Default => control_auth::bind_with_fallback(control_auth::DEFAULT_PORT, control_auth::PORT_TRIES),
};
match listener {
Ok(l) => {
if let Some(port) = listen_on_listener(l, token, tx, ctx, false) {
if matches!(listen_on, control_auth::Listen::Default) {
eprintln!("solidcraft: control channel on the default port 127.0.0.1:{port} (Preferences > Assistant turns it off)");
}
// The discovery file: where `solidcraft-cli mcp` finds this app with no arguments.
match control_auth::write_current_port(port) {
Ok(_) => {
if let Ok(mut p) = APP_PORT.lock() {
*p = Some(port);
}
}
Err(e) => eprintln!("solidcraft: could not write the control discovery file ({e})"),
}
}
}
Err(e) => eprintln!("solidcraft: control server failed to bind 127.0.0.1: {e}"),
}
}
None => eprintln!("solidcraft: control server not started: no random token available"),
}
@@ -60,20 +89,20 @@ pub fn listen_agent(tx: Sender<ControlRequest>, ctx: egui::Context) -> Option<u1
eprintln!("solidcraft: agent chat endpoint not started: no random token available");
return None;
};
listen(0, token, tx, ctx, true)
}
/// Listen on `port` (0: a free port the system picks) with `token`; the port it listens on.
/// `patient`: every request may wait as long as a batch (a person decides on it).
fn listen(port: u16, token: String, tx: Sender<ControlRequest>, ctx: egui::Context, patient: bool) -> Option<u16> {
let listener = match TcpListener::bind(("127.0.0.1", port)) {
let listener = match TcpListener::bind(("127.0.0.1", 0)) {
Ok(l) => l,
Err(e) => {
eprintln!("solidcraft: control server failed to bind 127.0.0.1:{port}: {e}");
eprintln!("solidcraft: control server failed to bind 127.0.0.1: {e}");
return None;
}
};
let port = listener.local_addr().map(|a| a.port()).unwrap_or(port);
listen_on_listener(listener, token, tx, ctx, true)
}
/// Serve `listener` (loopback) with `token`; the port it listens on.
/// `patient`: every request may wait as long as a batch (a person decides on it).
fn listen_on_listener(listener: TcpListener, token: String, tx: Sender<ControlRequest>, ctx: egui::Context, patient: bool) -> Option<u16> {
let port = listener.local_addr().ok()?.port();
match control_auth::token_path(port) {
Some(path) => match control_auth::write_token_file(&path, &token) {
Ok(()) => {
@@ -176,6 +205,8 @@ const WAITS: Waits = Waits { short: Duration::from_secs(60), long: Duration::fro
struct Pending {
id: Value,
method: String,
/// The request in messages ("`engine.execute` (solid.fillet)").
what: String,
reply: Receiver<Value>,
}
@@ -296,6 +327,35 @@ fn watch(reply: Receiver<Value>, ticket: Ticket) -> Receiver<Value> {
late_rx
}
/// The reply text for a request that outlasts its wait. A request that only reads changes
/// nothing when it finishes; an export or a save still writes its file, and any other request
/// still applies, as it was not cancelled.
fn timeout_message(what: &str, effect: control_pending::Effect) -> String {
match effect {
control_pending::Effect::ReadsOnly => {
format!("timeout: {what} is still running in the app ({}); ask `control.pending` for its answer", effect.when_done())
}
control_pending::Effect::WritesFile => format!(
"timeout: {what} is still running in the app and will still write the file when it finishes (it was not cancelled: \
don't send it again; the design does not change); ask `control.pending` for its result"
),
control_pending::Effect::Changes => format!(
"timeout: {what} is still running in the app and will still apply when it finishes (it was not cancelled: don't send it \
again); ask `control.pending` for its result"
),
}
}
/// The reply text for a request refused because an earlier one on the connection still runs.
fn busy_message(p: &Pending, method: &str) -> String {
let method: String = method.chars().take(128).collect();
format!(
"busy: request {} ({}) is still running, so `{method}` was not run; ask `control.pending` for that request's result, then \
send this one again",
p.id, p.what
)
}
fn serve(stream: TcpStream, token: &str, tx: Sender<ControlRequest>, ctx: egui::Context, patient: bool) {
serve_with(stream, token, tx, ctx, patient, WAITS, &RUNNING);
}
@@ -364,7 +424,7 @@ fn serve_with(
}
} else if let Some(p) = pending.as_ref().filter(|_| late.is_none()) {
// Nothing more is queued behind it, to run unseen when it ends.
json!({"ok": false, "busy": true, "error": format!("busy: request {} (`{}`) is still running; ask `control.pending` for its result", p.id, p.method)})
json!({"ok": false, "busy": true, "error": busy_message(p, &method)})
} else {
if late.is_some() {
// Finished, and the client moved on without asking: it is dropped.
@@ -372,6 +432,8 @@ fn serve_with(
}
// A batch replaces many short requests: the whole of it may take long (#743).
let wait = if patient || method == "engine.batch" { waits.long } else { waits.short };
let what = control_pending::describe(&method, &params);
let effect = control_pending::effect(&method, &params);
let (req, rrx) = ControlRequest::new(method.clone(), params);
let ticket = running.add(connection, &id, &req);
if tx.send(req).is_err() {
@@ -381,8 +443,8 @@ fn serve_with(
match rrx.recv_timeout(wait) {
Ok(r) => r,
Err(_) => {
let r = json!({"ok": false, "running": true, "error": format!("timeout: `{method}` is still running in the app and will still apply; ask `control.pending` for its result")});
pending = Some(Pending { id: id.clone(), method, reply: watch(rrx, ticket) });
let r = json!({"ok": false, "running": true, "error": timeout_message(&what, effect)});
pending = Some(Pending { id: id.clone(), method, what, reply: watch(rrx, ticket) });
r
}
}
@@ -577,6 +639,25 @@ mod tests {
assert_eq!((&r["result"]["pending"], &r["result"]["done"]), (&json!(7), &json!(true)), "{r}");
}
/// A timed-out request that only reads is not said to "still apply", nor is one that only
/// writes a file (an export, #1989); a change is, by name.
#[test]
fn timeout_text_tells_reads_from_changes() {
let says = |method: &str, p: Value| timeout_message(&control_pending::describe(method, &p), control_pending::effect(method, &p));
let read = says("ui.inspect", json!({}));
assert!(read.starts_with("timeout") && read.contains("only reads") && !read.contains("will still apply"), "{read}");
let read = says("engine.execute", json!({"command": "sketch.inspect"}));
assert!(read.contains("only reads") && read.contains("sketch.inspect"), "{read}");
let change = says("engine.execute", json!({"command": "solid.fillet"}));
assert!(change.starts_with("timeout") && change.contains("will still apply") && change.contains("solid.fillet"), "{change}");
let export = says("engine.execute", json!({"command": "file.export", "params": {"path": "/tmp/wall.step"}}));
assert!(export.contains("will still write the file") && !export.contains("apply") && export.contains("file.export"), "{export}");
let save = says("engine.execute", json!({"command": "file.save"}));
assert!(save.contains("will still write the file") && !save.contains("apply"), "{save}");
let render = says("ui.render", json!({"path": "/tmp/a.png"}));
assert!(render.contains("will still write the file"), "{render}");
}
/// #205: a connection runs nothing until a request carries the launch's token; a wrong or
/// missing token, or garbage, is refused and the connection closed. Once shown, the token
/// need not be repeated on that connection.
+10 -4
View File
@@ -10,6 +10,7 @@
//!
//! `--control <port>` (or `SOLIDCRAFT_CONTROL_PORT`) starts a localhost JSON-lines control
//! server: `{"id":1,"method":"engine.execute","params":{"command":"solid.box","params":{…}}}`.
//! Without them the channel still opens, on the default port, unless Preferences turns it off.
//! See `solidcraft_ui_egui::control` and docs/control-protocol.md.
#![cfg_attr(all(target_os = "windows", not(debug_assertions)), windows_subsystem = "windows")]
#![deny(clippy::unwrap_used, clippy::expect_used, clippy::panic, clippy::unimplemented, clippy::todo, clippy::unreachable)]
@@ -140,14 +141,17 @@ impl eframe::App for App {
ctx.send_viewport_cmd(egui::ViewportCommand::Close);
}
}
fn raw_input_hook(&mut self, _ctx: &egui::Context, raw: &mut egui::RawInput) {
fn raw_input_hook(&mut self, ctx: &egui::Context, raw: &mut egui::RawInput) {
#[cfg(target_os = "macos")]
if let Some(menu) = &mut self.native_menu {
menu.raw_input_hook(&mut self.solve, _ctx, raw);
menu.raw_input_hook(&mut self.solve, ctx, raw);
}
// Before the app's own hook, which adds the control channel's events.
#[cfg(any(target_os = "windows", target_os = "linux", target_os = "macos"))]
self.space_mouse.raw_input_hook(self.solve.preferences.space_mouse_enabled, raw);
// The 3D mouse's buttons, before the app reads the frame: Esc and held modifiers join its input.
#[cfg(any(target_os = "windows", target_os = "linux", target_os = "macos"))]
solidcraft_ui_egui::space_mouse::buttons_hook(&mut self.solve, ctx, self.space_mouse.buttons(), raw);
self.solve.raw_input_hook(raw);
}
fn ui(&mut self, ui: &mut egui::Ui, _frame: &mut eframe::Frame) {
@@ -741,8 +745,10 @@ fn main() -> eframe::Result {
));
}
mark("viewport pipelines");
if let Some(port) = control_port {
let rx = control_server::start(port, cc.egui_ctx.clone());
// `--control`/the environment name a port; otherwise the preference (on by default)
// opens the default one (docs/control-protocol.md).
if let Some(listen_on) = solidcraft_engine::control_auth::plan(control_port, app.preferences.agent_control) {
let rx = control_server::start(listen_on, cc.egui_ctx.clone());
app = app.with_control(rx);
}
// The agent chat's MCP bridge reaches the app through an endpoint of its own, started
File diff suppressed because it is too large Load Diff
+44
View File
@@ -15,6 +15,12 @@ const DEV: &str = "/dev";
/// a read with nothing to read returns at once and the reader can see whether it should stop.
pub const O_NONBLOCK: i32 = 0o4000;
/// Opens a hidraw node the way the Direct reader reads it: read-only and non-blocking.
pub fn open(path: &Path) -> std::io::Result<std::fs::File> {
use std::os::unix::fs::OpenOptionsExt;
std::fs::OpenOptions::new().read(true).custom_flags(O_NONBLOCK).open(path)
}
/// How long the reader waits when the device has nothing to say, which is also the most a report
/// can be delayed.
const IDLE_POLL: Duration = Duration::from_millis(5);
@@ -76,6 +82,44 @@ fn ids(uevent: &str) -> Option<(u16, u16)> {
mod tests {
use super::*;
/// A real EACCES, as a user without the udev rule gets: a file of the user's own with no permission
/// bits. Skipped for root, which can open anything.
#[test]
fn a_device_without_permission_is_denied_and_the_daemon_takes_over_within_the_backoff() {
use std::os::unix::fs::{MetadataExt, PermissionsExt};
if std::fs::metadata("/proc/self").is_ok_and(|meta| meta.uid() == 0) {
return;
}
let dir = std::env::temp_dir().join(format!("sc-hidraw-denied-{}", std::process::id()));
std::fs::create_dir_all(&dir).unwrap();
let node = dir.join("hidraw0");
std::fs::write(&node, [0_u8; 4]).unwrap();
std::fs::set_permissions(&node, std::fs::Permissions::from_mode(0o000)).unwrap();
let denied = open(&node);
std::fs::set_permissions(&node, std::fs::Permissions::from_mode(0o600)).unwrap();
assert!(open(&node).is_ok(), "the same node opens once it is readable");
std::fs::remove_dir_all(&dir).ok();
assert_eq!(denied.err().map(|error| error.kind()), Some(std::io::ErrorKind::PermissionDenied));
// The failure is the choice's `since_failed`, with an injected clock: inside the backoff the
// daemon is read, whichever driver was asked for; after it the device is tried again.
use super::super::{Pick, SpaceMouseDriver, UNREADABLE_RETRY, choose, direct_usable};
for wanted in [SpaceMouseDriver::Automatic, SpaceMouseDriver::Spacenavd, SpaceMouseDriver::Direct] {
for ago in [Duration::ZERO, Duration::from_secs(29)] {
assert_eq!(choose(wanted, true, direct_usable(true, Some(ago), UNREADABLE_RETRY)), Some(Pick::Spacenavd), "{wanted:?} {ago:?}");
}
}
assert_eq!(choose(SpaceMouseDriver::Direct, true, direct_usable(true, Some(UNREADABLE_RETRY), UNREADABLE_RETRY)), Some(Pick::Direct));
// And the daemon's own reader delivers over a fake connection.
let (mut daemon, client) = std::os::unix::net::UnixStream::pair().unwrap();
let mut record = [0_u8; 32];
record[4..8].copy_from_slice(&100_i32.to_ne_bytes());
std::io::Write::write_all(&mut daemon, &record).unwrap();
drop(daemon);
let mut seen = 0;
super::super::spacenavd::read(client, |_| seen += 1, |_, _| {}, || false, Duration::from_secs(3600));
assert_eq!(seen, 1);
}
#[test]
fn reports_come_through_idle_gaps_until_the_device_ends_or_a_stop() {
use crate::space_mouse::fake::Script;
+90 -10
View File
@@ -3,7 +3,8 @@
//! to its clients, so a program that reads the HID device itself bypasses that setup. Over its
//! socket the daemon sends fixed 32-byte records: eight native-endian `i32`, the first the kind of
//! record (0 for motion, then x y z rx ry rz and the milliseconds since the last record).
//! Other records (button presses, from newer daemons also configuration changes) are ignored.
//! Button records (1 pressed, 2 released, then the button's number from 0) are read too; other
//! records (from newer daemons also configuration changes) are ignored.
//!
//! The socket is plain file I/O, so no library is needed, and it needs no udev rule: the daemon
//! is what has access to the device.
@@ -11,6 +12,7 @@
use std::io::Read;
use std::os::unix::net::UnixStream;
use std::path::Path;
use std::time::{Duration, Instant};
use solidcraft_ui_egui::space_mouse::{Axes, FULL_SCALE};
@@ -54,6 +56,22 @@ fn decode(record: &[u8; RECORD_BYTES]) -> Option<Axes> {
})
}
/// The button a button record is about, from 0, and whether it went down; `None` for any other
/// record, or a button past the 32 a bitmask holds.
fn button(record: &[u8; RECORD_BYTES]) -> Option<(u32, bool)> {
let mut data = [0_i32; 2];
for (slot, bytes) in data.iter_mut().zip(record.as_chunks::<4>().0) {
*slot = i32::from_ne_bytes(*bytes);
}
let [kind, number] = data;
let number = u32::try_from(number).ok().filter(|&n| n < 32)?;
match kind {
1 => Some((number, true)),
2 => Some((number, false)),
_ => None,
}
}
/// A daemon value in our raw units. Out-of-range values stay in `i16`: they are input from another
/// process.
fn unit(value: impl Into<i64>) -> i16 {
@@ -61,14 +79,30 @@ fn unit(value: impl Into<i64>) -> i16 {
i16::try_from(scaled.clamp(i64::from(i16::MIN), i64::from(i16::MAX))).unwrap_or_default()
}
/// Hands every motion record to `publish` until the daemon closes the connection or fails, or
/// `stop` says so. A stream with a read timeout (`set_read_timeout`) times out when the daemon is
/// quiet, which is no record and no disconnect: `stop` is asked, and the read goes on, with what
/// of a record had arrived kept. A partial record at the end is dropped.
pub fn read(mut stream: impl Read, mut publish: impl FnMut(Axes), mut stop: impl FnMut() -> bool) {
/// Hands every motion record to `publish` and every button record to `pressed` until the daemon
/// closes the connection or fails, or `stop` says so. A stream with a read timeout
/// (`set_read_timeout`) times out when the daemon is quiet, which is no record and no disconnect:
/// `stop` is asked, and the read goes on, with what of a record had arrived kept. `stop` is also asked
/// at least every `check_every` while records keep arriving, so a daemon that never pauses for that
/// long (a moving cap sends every few milliseconds) does not keep the reader from noticing that the
/// device it prefers is back. A partial record at the end is dropped.
pub fn read(
mut stream: impl Read,
mut publish: impl FnMut(Axes),
mut pressed: impl FnMut(u32, bool),
mut stop: impl FnMut() -> bool,
check_every: Duration,
) {
let mut record = [0_u8; RECORD_BYTES];
let mut filled = 0;
let mut asked = Instant::now();
loop {
if asked.elapsed() >= check_every {
asked = Instant::now();
if stop() {
return;
}
}
match stream.read(record.get_mut(filled..).unwrap_or_default()) {
Ok(0) => {
log::info!("3D mouse: spacenavd connection ended");
@@ -80,11 +114,14 @@ pub fn read(mut stream: impl Read, mut publish: impl FnMut(Axes), mut stop: impl
filled = 0;
if let Some(axes) = decode(&record) {
publish(axes);
} else if let Some((number, down)) = button(&record) {
pressed(number, down);
}
}
}
Err(error) if error.kind() == std::io::ErrorKind::Interrupted => {}
Err(error) if matches!(error.kind(), std::io::ErrorKind::WouldBlock | std::io::ErrorKind::TimedOut) => {
asked = Instant::now();
if stop() {
return;
}
@@ -134,6 +171,10 @@ mod tests {
fn other_records_and_hostile_values_are_harmless() {
// A button record (kind 1, press) and one of an unknown kind are not motion.
assert_eq!(decode(&record([1, 0, 1, 0, 0, 0, 0, 0])), None);
// Nor are hostile button numbers a button.
assert_eq!(button(&record([1, -1, 0, 0, 0, 0, 0, 0])), None);
assert_eq!(button(&record([1, i32::MAX, 0, 0, 0, 0, 0, 0])), None);
assert_eq!(button(&record([7, 3, 0, 0, 0, 0, 0, 0])), None);
assert_eq!(decode(&record([7, 500, 500, 500, 500, 500, 500, 0])), None);
// Nothing overflows on the extremes of `i32`.
let extreme = decode(&record([0, i32::MIN, i32::MIN, i32::MAX, i32::MAX, i32::MIN, i32::MIN, -1]));
@@ -147,14 +188,17 @@ mod tests {
let (mut daemon, client) = UnixStream::pair().expect("a socket pair");
let mut bytes = Vec::new();
bytes.extend(record([0, 100, 0, 0, 0, 0, 0, 8]));
bytes.extend(record([2, 1, 0, 0, 0, 0, 0, 0])); // a button release: skipped
bytes.extend(record([1, 4, 0, 0, 0, 0, 0, 0])); // button 4 down
bytes.extend(record([2, 4, 0, 0, 0, 0, 0, 0])); // and up
bytes.extend(record([1, 40, 0, 0, 0, 0, 0, 0])); // past the 32 a bitmask holds: skipped
bytes.extend(record([0, 0, 0, 0, 0, 0, 0, 900]));
bytes.extend([1, 2, 3]); // the daemon went away mid-record
daemon.write_all(&bytes).expect("written");
drop(daemon);
let mut seen = Vec::new();
read(client, |axes| seen.push(axes.translation), || false);
let (mut seen, mut buttons) = (Vec::new(), Vec::new());
read(client, |axes| seen.push(axes.translation), |number, down| buttons.push((number, down)), || false, Duration::from_secs(3600));
assert_eq!(seen, [[70, 0, 0], [0, 0, 0]]);
assert_eq!(buttons, [(4, true), (4, false)]);
}
#[test]
@@ -168,10 +212,12 @@ mod tests {
read(
script,
|axes| seen.push(axes.translation),
|_, _| {},
|| {
asked += 1;
false
},
Duration::from_secs(3600),
);
assert_eq!(seen, [[70, 0, 0]]);
assert_eq!(asked, 4, "each timeout asks whether to stop");
@@ -184,10 +230,44 @@ mod tests {
let mut script = Script::new();
script.data(&bytes).timeout(std::io::ErrorKind::WouldBlock).data(&bytes);
let mut seen = 0;
read(script, |_| seen += 1, || true);
read(script, |_| seen += 1, |_, _| {}, || true, Duration::from_secs(3600));
assert_eq!(seen, 1, "the record before the timeout arrived; the one after never was read");
}
/// A daemon that never goes quiet (a moving cap sends every few milliseconds) is still asked whether to
/// stop, at the interval given, so the reader can go back to a device that returned.
#[test]
fn a_busy_daemon_is_asked_whether_to_stop_on_a_timer() {
// Ends by itself after half a second, so a read that never asks fails the assertion below
// instead of hanging the test.
struct Busy(Instant);
impl Read for Busy {
fn read(&mut self, buf: &mut [u8]) -> std::io::Result<usize> {
if self.0.elapsed() > Duration::from_millis(500) {
return Ok(0);
}
std::thread::sleep(Duration::from_millis(2));
let bytes = record([0, 100, 0, 0, 0, 0, 0, 8]);
let size = bytes.len().min(buf.len());
buf[..size].copy_from_slice(&bytes[..size]);
Ok(size)
}
}
let (mut seen, mut asked) = (0, 0);
read(
Busy(Instant::now()),
|_| seen += 1,
|_, _| {},
|| {
asked += 1;
asked == 3
},
Duration::from_millis(10),
);
assert_eq!(asked, 3, "asked on the timer although no read ever timed out");
assert!(seen > 3, "records kept coming meanwhile: {seen}");
}
#[test]
fn no_daemon_means_no_connection() {
let missing = std::env::temp_dir().join(format!("sc-no-spnav-{}.sock", std::process::id()));
+3 -3
View File
@@ -78,7 +78,7 @@ Its projected circle uses the same axes; do not arbitrarily flatten the ellipse.
Only use the stable `source` identifiers below in model SVGs. The renderer maps roles to
light/dark theme values. `currentColor` is the background line-art role, not a way
to add arbitrary colours. All values and accents come from `design/palette.toml`.
to add arbitrary colours. Default display values and semantic accents come from `design/palette.toml`. Theme files may override those display roles and ramps through `icon_palette`; source identifiers and accent assignments stay unchanged.
| Role | Author helper | Light value | Use |
| --- | --- | --- | --- |
@@ -96,9 +96,9 @@ The source hexes identify paint roles, not the displayed colour. **Never recolou
SVG to apply a workspace accent.** Keep these identifiers and every finished shape
unchanged; the runtime and review page resolve them through `design/palette.toml`.
That file is the single colour authority: edit `light`/`dark` in the relevant
That file is the default colour authority: edit `light`/`dark` in the relevant
`accents` ramp; `active-3` is its primary stroke and `active-1/2` are shaded faces.
Do not edit a role's `source` identifier. `variants` holds colour-vision adjustments.
Do not edit a role's `source` identifier. Theme `icon_palette` overrides affect display colours only; colour-vision variants still take precedence. `variants` holds colour-vision adjustments.
A role with `use = "active-3"` follows that stroke automatically.
| Meaning | Accent | Assignment |
+1
View File
@@ -29,6 +29,7 @@ ground = "c_fix"
# Same finished drawing, different semantic operation. Colours live only in palette.toml.
sketch_break = { master = "break", accent = "sketch" }
sketch_cancel = { master = "close", accent = "sketch" }
sketch_dxf = { master = "dxf", accent = "sketch" }
sketch_move = { master = "move", accent = "sketch" }
sketch_scale = { master = "scale", accent = "sketch" }
@@ -104,6 +104,7 @@ flange false
flat false
fold false
folder false
frame_member false
gear false
graph false
ground false
@@ -211,6 +212,7 @@ shield false
silhouette false
sketch false
sketch_break false
sketch_cancel false
sketch_chamfer false
sketch_chamfer_angle false
sketch_chamfer_equal false
@@ -0,0 +1,22 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
<title>Frame Member</title>
<path d="M9.25 18.86L17.63 23.7" fill="none" stroke="#ffffff" stroke-width="4.4" stroke-linejoin="round" stroke-linecap="round"/>
<path d="M9.25 18.86L17.63 23.7" fill="none" stroke="#236ead" stroke-width="2.2" stroke-linejoin="round" stroke-linecap="round"/>
<circle cx="9.25" cy="18.86" r="3" fill="#236ead"/>
<path d="M11.88 20.39L40.62 36.98L40.62 50.25L11.88 33.66Z" fill="#328bd3"/>
<path d="M23.38 13.75L52.12 30.34L40.62 36.98L11.88 20.39Z" fill="#b9ddf8"/>
<path d="M52.12 30.34L40.62 36.98L40.62 50.25L52.12 43.61ZM49.8 34.35L42.94 38.31L42.94 46.24L49.8 42.28Z" fill="#8e9faf" fill-rule="evenodd"/>
<defs><clipPath id="fm_hole"><path d="M49.8 34.35L42.94 38.31L42.94 46.24L49.8 42.28Z" fill="none"/></clipPath></defs>
<g clip-path="url(#fm_hole)">
<path d="M49.8 34.35L42.94 38.31L42.94 46.24L49.8 42.28Z" fill="#236ead"/>
<path d="M49.8 34.35L49.8 42.28L42.86 38.27L42.86 30.34Z" fill="#328bd3"/>
<path d="M49.8 42.28L42.94 46.24L35.99 42.23L42.86 38.27Z" fill="#b9ddf8"/>
</g>
<path d="M49.8 34.35L42.94 38.31L42.94 46.24L49.8 42.28Z" fill="none" stroke="#34465b" stroke-width="2.55" stroke-linejoin="round" stroke-linecap="round"/>
<path d="M23.38 13.75L52.12 30.34L52.12 43.61L40.62 50.25L11.88 33.66L11.88 20.39Z" fill="none" stroke="#34465b" stroke-width="2.55" stroke-linejoin="round" stroke-linecap="round"/>
<path d="M11.88 20.39L40.62 36.98L52.12 30.34" fill="none" stroke="#34465b" stroke-width="2.55" stroke-linejoin="round" stroke-linecap="round"/>
<path d="M40.62 36.98L40.62 50.25" fill="none" stroke="#34465b" stroke-width="2.55" stroke-linejoin="round" stroke-linecap="round"/>
<path d="M41.74 37.62L54.75 45.14" fill="none" stroke="#ffffff" stroke-width="4.4" stroke-linejoin="round" stroke-linecap="round"/>
<path d="M41.74 37.62L54.75 45.14" fill="none" stroke="#236ead" stroke-width="2.2" stroke-linejoin="round" stroke-linecap="round"/>
<circle cx="54.75" cy="45.14" r="3" fill="#236ead"/>
</svg>

After

Width:  |  Height:  |  Size: 2.0 KiB

+34 -1
View File
@@ -1,4 +1,4 @@
//! Constraint, assembly snap and dimension marker artwork.
//! Constraint, assembly snap, hole placement and dimension marker artwork.
use crate::dialogs_assembly::SnapKind;
use crate::theme::Tokens;
use egui::{Color32, Pos2, Stroke, vec2};
@@ -57,6 +57,39 @@ pub(crate) fn snap(painter: &egui::Painter, c: Pos2, tip: Option<Pos2>, kind: Sn
painter.galley(at, g, t.text);
}
}
/// A place a hole can snap to, before the cursor reaches it: a small hollow mark of its kind
/// (a square for a face's centre, a ring for a round edge's centre).
pub(crate) fn snap_hint(painter: &egui::Painter, c: Pos2, kind: SnapKind, col: Color32) {
let ic = Tokens::get().icons;
for stroke in [Stroke::new(3.5, ic.marker_halo), Stroke::new(1.4, col)] {
match kind {
SnapKind::FaceCenter => {
painter.rect_stroke(egui::Rect::from_center_size(c, vec2(8.0, 8.0)), 1.0, stroke, egui::StrokeKind::Middle);
}
SnapKind::CircleCenter => {
painter.circle_stroke(c, 4.5, stroke);
}
SnapKind::EdgeMid | SnapKind::Vertex => {
let r = 5.0;
let diamond = vec![c + vec2(0.0, -r), c + vec2(r, 0.0), c + vec2(0.0, r), c + vec2(-r, 0.0)];
painter.add(egui::Shape::convex_polygon(diamond, Color32::TRANSPARENT, stroke));
}
}
}
painter.circle_filled(c, 1.3, col);
}
/// A placed hole's drag handle: a ring round the hole's centre with a cross through it, filled
/// while it is hovered or dragged.
pub(crate) fn hole_handle(painter: &egui::Painter, c: Pos2, col: Color32, hot: bool) {
let ic = Tokens::get().icons;
let r = 6.0;
painter.circle_filled(c, r + 3.5, ic.marker_halo);
painter.circle(c, r, if hot { col } else { col.gamma_multiply(0.35) }, Stroke::new(1.6, col));
let ink = Stroke::new(1.3, if hot { ic.highlight } else { col });
painter.line_segment([c - vec2(r + 3.0, 0.0), c + vec2(r + 3.0, 0.0)], ink);
painter.line_segment([c - vec2(0.0, r + 3.0), c + vec2(0.0, r + 3.0)], ink);
}
pub(crate) fn glyph_icon(name: &str) -> Option<&'static str> {
Some(match name {
"Coincident" => "c_coincident",
+104 -53
View File
@@ -530,6 +530,10 @@
"cmd.file_insert_step": "Vložit STEP",
"cmd.file_save_mesh": "Uložit jako síť",
"cmd.file_slicers": "Nainstalované slicery",
"cmd.frame_member": "Prvek rámu",
"cmd.frame_profile_insert": "Vložit profil",
"cmd.frame_profile_list": "Knihovna profilů",
"cmd.frame_profile_properties": "Vlastnosti profilu",
"cmd.inspect_accessibility": "Analýza přístupnosti",
"cmd.inspect_center_of_mass": "Těžiště",
"cmd.inspect_clearance": "Vůle",
@@ -1124,7 +1128,106 @@
"trace.stopped_by_contact": "Končí ve vzorku {sample}: {a} by prošlo skrz {b}",
"trace.stopped_by_loop": "Končí ve vzorku {sample}: smyčku přes {joint} už nelze dále uzavřít",
"ui.1_degree_of_freedom": "1 stupeň volnosti",
"ui.3d_mouse_axes_reassigned": "Osy jsou v Předvolbách přeřazené a to platí i po této kalibraci.",
"ui.3d_mouse_button": "Tlačítko {number}",
"ui.3d_mouse_button_nothing": "Nic",
"ui.3d_mouse_button_settings": "Nastavení 3D myši",
"ui.3d_mouse_buttons": "Tlačítka",
"ui.3d_mouse_buttons_hint": "Stiskněte tlačítko na 3D myši, ať ho tu najdete, a vyberte, co má dělat.",
"ui.3d_mouse_buttons_no_device": "Připojte 3D myš a nastavte, co dělají její tlačítka.",
"ui.3d_mouse_buttons_reset": "Obnovit výchozí tlačítka",
"ui.3d_mouse_calibrate": "Kalibrovat…",
"ui.3d_mouse_calibrate_tip": "Pohybujte hlavicí podle pokynů v okně, aby se SolidCraft naučil, kterým směrem a jak daleko se pohybuje každá osa této 3D myši. Uloží se pro tuto 3D myš.",
"ui.3d_mouse_calibrate_title": "Kalibrace 3D myši",
"ui.3d_mouse_calibrate_wait": "Jednou pohněte 3D myší, aby ji SolidCraft uviděl.",
"ui.3d_mouse_calibrated": "Zkalibrováno",
"ui.3d_mouse_calibration": "Kalibrace 3D myši",
"ui.3d_mouse_calibration_done": "Hotovo. Uložte ji a použije se vždy, když bude tato 3D myš připojená.",
"ui.3d_mouse_calibration_no_response": "Jedna osa se skoro nepohnula, takže ji nelze zkalibrovat. Začněte znovu a pokaždé hlavicí pohněte dál.",
"ui.3d_mouse_circles_help": "Kruhy ukazují, co zařízení posílá po kalibraci. Zkušební model ukazuje, co s tím udělá pohled po obrácení, rychlosti a přiřazení os.",
"ui.3d_mouse_dead_zone": "Mrtvá zóna",
"ui.3d_mouse_dead_zone_tip": "Jak daleko se musí hlavice pohnout, než se pohne pohled, jako podíl jejího plného rozsahu. Zvyšte ji, pokud pohled ujíždí, i když je hlavice v klidu.",
"ui.3d_mouse_denied": "SolidCraft vidí 3D myš, ale nesmí ji číst. Pravidlo udev najdete v poznámkách k nastavení 3D myši.",
"ui.3d_mouse_denied_short": "Nalezeno, ale nelze číst",
"ui.3d_mouse_driven_by": "Který kalibrovaný pohyb zařízení ovládá tuto osu. Když vyberete pohyb, který už používá jiná osa, obě se prohodí.",
"ui.3d_mouse_driven_by_label": "ovládá",
"ui.3d_mouse_driver": "Ovladač 3D myši",
"ui.3d_mouse_driver_auto": "Automaticky",
"ui.3d_mouse_driver_direct": "Přímo (hidraw)",
"ui.3d_mouse_driver_fallback": "Zatím se čte přes spacenavd: zařízení samotné se nepodařilo otevřít.",
"ui.3d_mouse_driver_only_direct": "Zařízení se čte přímo; spacenavd neběží",
"ui.3d_mouse_driver_only_spacenavd": "Čte se přes spacenavd, jiná možnost není",
"ui.3d_mouse_forget": "Zapomenout kalibraci",
"ui.3d_mouse_ghost_left_viewport": "Vlevo ve výřezu",
"ui.3d_mouse_ghost_left_window": "Vlevo v okně",
"ui.3d_mouse_ghost_position": "Poloha",
"ui.3d_mouse_ghost_right_viewport": "Vpravo ve výřezu",
"ui.3d_mouse_hint": "Posun a otáčení pohledu současně; náčrty používají jen posun a přiblížení.",
"ui.3d_mouse_kind_cap": "Návrat do středu",
"ui.3d_mouse_kind_question": "Jaký typ 3D myši to je?",
"ui.3d_mouse_kind_trackball": "Trackball",
"ui.3d_mouse_looks_like_cap": "Hodnota zůstává, dokud ji držíte, jako u zařízení typu „Návrat do středu“.",
"ui.3d_mouse_looks_like_trackball": "Hodnota se vrací zpět, jakmile přestanete hýbat, jako u trackballu.",
"ui.3d_mouse_motion_rotation_x": "Rotace X",
"ui.3d_mouse_motion_rotation_y": "Rotace Y",
"ui.3d_mouse_motion_rotation_z": "Rotace Z",
"ui.3d_mouse_motion_translation_x": "Posun X",
"ui.3d_mouse_motion_translation_y": "Posun Y",
"ui.3d_mouse_motion_translation_z": "Posun Z",
"ui.3d_mouse_navigate": "Navigace pomocí 3D myši",
"ui.3d_mouse_none": "3D myš nenalezena",
"ui.3d_mouse_not_calibrated": "Nezkalibrováno",
"ui.3d_mouse_offer": "Kalibrace 3D myši opraví prohozené nebo obrácené osy a nastaví její rychlost a pocit z ovládání.",
"ui.3d_mouse_offer_never": "Už nezobrazovat",
"ui.3d_mouse_offer_swap": "Přepnout na Hidraw (přímý ovladač)",
"ui.3d_mouse_reading": "Hodnoty",
"ui.3d_mouse_reset_axes": "Obnovit přiřazení os",
"ui.3d_mouse_reset_view": "Obnovit pohled",
"ui.3d_mouse_restore": "Obnovit výchozí nastavení 3D myši",
"ui.3d_mouse_restore_ask": "Vrátit nastavení 3D myši na výchozí hodnoty? Kalibrace a přiřazení tlačítek zůstanou.",
"ui.3d_mouse_section": "3D myš",
"ui.3d_mouse_show_in_view": "Zobrazit 3D myš ve 3D pohledu",
"ui.3d_mouse_show_in_view_tip": "Obrázek vaší 3D myši v levém dolním rohu, který se hýbe s ní.",
"ui.3d_mouse_skip": "Moje zařízení to neumí",
"ui.3d_mouse_skip_tip": "Přeskočí tento pohyb v obou směrech a kalibrace ho vynechá.",
"ui.3d_mouse_speed": "Rychlost 3D myši",
"ui.3d_mouse_step_lift": "Zvedněte hlavici nahoru, podržte a pusťte.",
"ui.3d_mouse_step_press": "Zatlačte hlavici dolů, podržte a pusťte.",
"ui.3d_mouse_step_pull": "Přitáhněte hlavici k sobě, podržte a pusťte.",
"ui.3d_mouse_step_push": "Odtlačte hlavici od sebe, podržte a pusťte.",
"ui.3d_mouse_step_rest": "Dejte ruku z hlavice a nechte ji v klidu.",
"ui.3d_mouse_step_rest_trackball": "Dejte ruku z kuličky a nechte ji v klidu.",
"ui.3d_mouse_step_ring_clockwise": "Otočte rolovacím kroužkem o pár cvaknutí po směru hodinových ručiček.",
"ui.3d_mouse_step_ring_counterclockwise": "Otočte rolovacím kroužkem o pár cvaknutí proti směru hodinových ručiček.",
"ui.3d_mouse_step_roll_away": "Několikrát kutálejte kuličkou od sebe, pak ji nechte zastavit.",
"ui.3d_mouse_step_roll_left": "Několikrát kutálejte kuličkou doleva, pak ji nechte zastavit.",
"ui.3d_mouse_step_roll_right": "Několikrát kutálejte kuličkou doprava, pak ji nechte zastavit.",
"ui.3d_mouse_step_roll_toward": "Několikrát kutálejte kuličkou k sobě, pak ji nechte zastavit.",
"ui.3d_mouse_step_slide_left": "Posuňte hlavici doleva, podržte a pusťte.",
"ui.3d_mouse_step_slide_right": "Posuňte hlavici doprava, podržte a pusťte.",
"ui.3d_mouse_step_spin_clockwise": "Několikrát roztočte kuličku po směru hodinových ručiček, pak ji nechte zastavit.",
"ui.3d_mouse_step_spin_counterclockwise": "Několikrát roztočte kuličku proti směru hodinových ručiček, pak ji nechte zastavit.",
"ui.3d_mouse_step_tilt_away": "Nakloňte vršek hlavice od sebe (okraj nejblíž vám jde nahoru), podržte a pusťte.",
"ui.3d_mouse_step_tilt_left": "Nakloňte hlavici doleva (levá hrana dolů), podržte a pusťte.",
"ui.3d_mouse_step_tilt_right": "Nakloňte hlavici doprava (pravá hrana dolů), podržte a pusťte.",
"ui.3d_mouse_step_tilt_toward": "Nakloňte vršek hlavice k sobě (okraj nejblíž vám jde dolů), podržte a pusťte.",
"ui.3d_mouse_step_touch": "Položte ruku na hlavici, ale netlačte na ni.",
"ui.3d_mouse_step_twist_clockwise": "Otočte hlavici po směru hodinových ručiček, podržte a pusťte.",
"ui.3d_mouse_step_twist_counterclockwise": "Otočte hlavici proti směru hodinových ručiček, podržte a pusťte.",
"ui.3d_mouse_switch_cap": "Kalibrovat jako návrat do středu",
"ui.3d_mouse_switch_trackball": "Kalibrovat jako trackball",
"ui.3d_mouse_view_axis": "Osa pohledu",
"ui.3d_mouse_view_off": "Vypnuto",
"ui.3d_mouse_view_off_tip": "Profil ovladače 3D myši tuto osu vypíná, takže její pohyb s pohledem nehýbe. Když tu vyberete pohyb jiné osy, prohodí se s ní a s pohledem přestane hýbat.",
"ui.3d_mouse_view_orbit_sideways": "Orbit vlevo / vpravo",
"ui.3d_mouse_view_orbit_up_down": "Orbit nahoru / dolů",
"ui.3d_mouse_view_pan_sideways": "Posun vlevo / vpravo",
"ui.3d_mouse_view_pan_up_down": "Posun nahoru / dolů",
"ui.3d_mouse_view_roll": "Natočení",
"ui.3d_mouse_view_unmapped": "Osa {n}",
"ui.3d_mouse_view_zoom": "Zoom",
"ui.3d_mouse_waiting": "Čeká na pohyb",
"ui.3d_mouse_wiggle": "Pokud máte nějakou připojenou, zahýbejte s ní.",
"ui.3d_sketch": "3D náčrt",
"ui.activate": "Aktivovat",
"ui.active_component": "Aktivní komponenta",
@@ -1354,6 +1457,7 @@
"ui.blocked": "Blokováno",
"ui.bodies": "Tělesa",
"ui.bodies_all_if_none": "Tělesa (všechna, pokud žádné)",
"ui.bottom": "Zespodu",
"ui.box": "Kvádr",
"ui.break": "Přerušit",
"ui.browser_bodies_one": "{count} těleso",
@@ -1797,59 +1901,6 @@
"ui.smooth_wheel_zoom": "Plynulé přiblížení kolečkem",
"ui.smooth_wheel_zoom_tip": "Vypnutím se každý pohyb kolečka projeví okamžitě, bez dobíhání",
"ui.snap": "Přichytávání",
"ui.space_mouse_axes_reassigned": "Osy jsou v Předvolbách přeřazené a to platí i po této kalibraci.",
"ui.space_mouse_calibrate": "Kalibrovat…",
"ui.space_mouse_calibrate_tip": "Pohybujte hlavicí podle pokynů v okně, aby se SolidCraft naučil, kterým směrem a jak daleko se pohybuje každá osa této 3D myši. Uloží se pro tuto 3D myš.",
"ui.space_mouse_calibrate_title": "Kalibrace 3D myši",
"ui.space_mouse_calibrated": "Zkalibrováno",
"ui.space_mouse_calibration": "Kalibrace 3D myši",
"ui.space_mouse_calibration_done": "Hotovo. Uložte ji a použije se vždy, když bude tato 3D myš připojená.",
"ui.space_mouse_calibration_no_response": "Jedna osa se skoro nepohnula, takže ji nelze zkalibrovat. Začněte znovu a pokaždé hlavicí pohněte dál.",
"ui.space_mouse_dead_zone": "Mrtvá zóna",
"ui.space_mouse_dead_zone_tip": "Jak daleko se musí hlavice pohnout, než se pohne pohled, jako podíl jejího plného rozsahu. Zvyšte ji, pokud pohled ujíždí, i když je hlavice v klidu.",
"ui.space_mouse_driven_by": "Který kalibrovaný pohyb zařízení ovládá tuto osu. Když vyberete pohyb, který už používá jiná osa, obě se prohodí.",
"ui.space_mouse_driven_by_label": "ovládá",
"ui.space_mouse_driver": "Ovladač 3D myši",
"ui.space_mouse_driver_auto": "Automaticky",
"ui.space_mouse_driver_direct": "Přímo (hidraw)",
"ui.space_mouse_driver_only_direct": "Zařízení se čte přímo; spacenavd neběží",
"ui.space_mouse_driver_only_spacenavd": "Čte se přes spacenavd, jiná možnost není",
"ui.space_mouse_forget": "Zapomenout kalibraci",
"ui.space_mouse_hint": "Posun a otáčení pohledu současně; náčrty používají jen posun a přiblížení.",
"ui.space_mouse_motion_rotation_x": "Rotace X",
"ui.space_mouse_motion_rotation_y": "Rotace Y",
"ui.space_mouse_motion_rotation_z": "Rotace Z",
"ui.space_mouse_motion_translation_x": "Posun X",
"ui.space_mouse_motion_translation_y": "Posun Y",
"ui.space_mouse_motion_translation_z": "Posun Z",
"ui.space_mouse_navigate": "Navigace pomocí SpaceNavigator / SpaceMouse",
"ui.space_mouse_none": "3D myš nenalezena",
"ui.space_mouse_not_calibrated": "Nezkalibrováno",
"ui.space_mouse_reading": "Hodnoty",
"ui.space_mouse_reset_axes": "Obnovit přiřazení os",
"ui.space_mouse_step_lift": "Zvedněte hlavici nahoru, podržte a pusťte.",
"ui.space_mouse_step_press": "Zatlačte hlavici dolů, podržte a pusťte.",
"ui.space_mouse_step_pull": "Přitáhněte hlavici k sobě, podržte a pusťte.",
"ui.space_mouse_step_push": "Odtlačte hlavici od sebe, podržte a pusťte.",
"ui.space_mouse_step_rest": "Dejte ruku z hlavice a nechte ji v klidu.",
"ui.space_mouse_step_slide_left": "Posuňte hlavici doleva, podržte a pusťte.",
"ui.space_mouse_step_slide_right": "Posuňte hlavici doprava, podržte a pusťte.",
"ui.space_mouse_step_tilt_back": "Nakloňte hlavici dozadu (přední hrana nahoru), podržte a pusťte.",
"ui.space_mouse_step_tilt_forward": "Nakloňte hlavici dopředu (přední hrana dolů), podržte a pusťte.",
"ui.space_mouse_step_tilt_left": "Nakloňte hlavici doleva (levá hrana dolů), podržte a pusťte.",
"ui.space_mouse_step_tilt_right": "Nakloňte hlavici doprava (pravá hrana dolů), podržte a pusťte.",
"ui.space_mouse_step_twist_clockwise": "Otočte hlavici po směru hodinových ručiček, podržte a pusťte.",
"ui.space_mouse_step_twist_counterclockwise": "Otočte hlavici proti směru hodinových ručiček, podržte a pusťte.",
"ui.space_mouse_view_axis": "Osa pohledu",
"ui.space_mouse_view_off": "Vypnuto",
"ui.space_mouse_view_off_tip": "Profil ovladače 3D myši tuto osu vypíná, takže její pohyb s pohledem nehýbe. Když tu vyberete pohyb jiné osy, prohodí se s ní a s pohledem přestane hýbat.",
"ui.space_mouse_view_orbit_sideways": "Orbit vlevo / vpravo",
"ui.space_mouse_view_orbit_up_down": "Orbit nahoru / dolů",
"ui.space_mouse_view_pan_sideways": "Posun vlevo / vpravo",
"ui.space_mouse_view_pan_up_down": "Posun nahoru / dolů",
"ui.space_mouse_view_roll": "Natočení",
"ui.space_mouse_view_unmapped": "Osa {n}",
"ui.space_mouse_view_zoom": "Zoom",
"ui.spacing": "Rozteč",
"ui.spacing_2": "Rozteč 2",
"ui.sphere": "Koule",
+104 -28
View File
@@ -530,6 +530,10 @@
"cmd.file_insert_step": "Indsæt STEP",
"cmd.file_save_mesh": "Gem som mesh",
"cmd.file_slicers": "Installerede slicere",
"cmd.frame_member": "Rammeelement",
"cmd.frame_profile_insert": "Indsæt profil",
"cmd.frame_profile_list": "Profilbibliotek",
"cmd.frame_profile_properties": "Profilegenskaber",
"cmd.inspect_accessibility": "Tilgængelighedsanalyse",
"cmd.inspect_center_of_mass": "Massecentrum",
"cmd.inspect_clearance": "Frigangskontrol",
@@ -1121,7 +1125,106 @@
"trace.stopped_by_contact": "Slutter ved prøve {sample}: {a} ville gå gennem {b}",
"trace.stopped_by_loop": "Slutter ved prøve {sample}: Løkken gennem {joint} kan ikke lukkes yderligere",
"ui.1_degree_of_freedom": "1 frihedsgrad",
"ui.3d_mouse_axes_reassigned": "Akserne er omtildelt i Indstillinger, og det gælder stadig oven på denne kalibrering.",
"ui.3d_mouse_button": "Knap {number}",
"ui.3d_mouse_button_nothing": "Ingenting",
"ui.3d_mouse_button_settings": "Indstillinger for 3D-mus",
"ui.3d_mouse_buttons": "Knapper",
"ui.3d_mouse_buttons_hint": "Tryk på en knap på din 3D-mus for at finde den her, og vælg så, hvad den gør.",
"ui.3d_mouse_buttons_no_device": "Tilslut en 3D-mus for at vælge, hvad dens knapper gør.",
"ui.3d_mouse_buttons_reset": "Gendan standardknapper",
"ui.3d_mouse_calibrate": "Kalibrér…",
"ui.3d_mouse_calibrate_tip": "Bevæg knoppen som vist i vinduet, så SolidCraft kan registrere retningen og bevægelsesområdet for hver akse. Indstillingerne gemmes til denne 3D-mus.",
"ui.3d_mouse_calibrate_title": "Kalibrér 3D-mus",
"ui.3d_mouse_calibrate_wait": "Bevæg 3D-musen én gang, så SolidCraft kan se den.",
"ui.3d_mouse_calibrated": "Kalibreret",
"ui.3d_mouse_calibration": "Kalibrering af 3D-mus",
"ui.3d_mouse_calibration_done": "Færdig. Gem kalibreringen, så den bruges, hver gang denne 3D-mus tilsluttes.",
"ui.3d_mouse_calibration_no_response": "En af akserne bevægede sig for lidt til at kunne kalibreres. Start forfra, og bevæg knoppen længere hver gang.",
"ui.3d_mouse_circles_help": "Cirklerne viser, hvad enheden sender efter kalibrering. Testmodellen viser, hvad visningen gør med det efter omvending, hastighed og akseplacering.",
"ui.3d_mouse_dead_zone": "Dødzone",
"ui.3d_mouse_dead_zone_tip": "Hvor langt knoppen skal bevæges, før visningen reagerer, angivet som en andel af dens fulde bevægelse. Øg værdien, hvis visningen bevæger sig, når du ikke rører knoppen.",
"ui.3d_mouse_denied": "SolidCraft kan se en 3D-mus, men må ikke læse den. Se opsætningsnoterne til 3D-mus for udev-reglen.",
"ui.3d_mouse_denied_short": "Fundet, men kan ikke læses",
"ui.3d_mouse_driven_by": "Hvilken kalibreret bevægelse af enheden der styrer denne akse. Vælger du en bevægelse, som en anden akse allerede bruger, bytter de to plads.",
"ui.3d_mouse_driven_by_label": "styres af",
"ui.3d_mouse_driver": "3D-musedriver",
"ui.3d_mouse_driver_auto": "Automatisk",
"ui.3d_mouse_driver_direct": "Direkte (hidraw)",
"ui.3d_mouse_driver_fallback": "Læser indtil videre gennem spacenavd: selve enheden kunne ikke åbnes.",
"ui.3d_mouse_driver_only_direct": "Læser enheden direkte; spacenavd kører ikke",
"ui.3d_mouse_driver_only_spacenavd": "Læser gennem spacenavd, den eneste mulighed",
"ui.3d_mouse_forget": "Slet kalibrering",
"ui.3d_mouse_ghost_left_viewport": "Venstre visningsområde",
"ui.3d_mouse_ghost_left_window": "Venstre vindue",
"ui.3d_mouse_ghost_position": "Placering",
"ui.3d_mouse_ghost_right_viewport": "Højre visningsområde",
"ui.3d_mouse_hint": "Flyt og rotér visningen samtidigt; skitser bruger kun panorering og zoom.",
"ui.3d_mouse_kind_cap": "Vend tilbage til midten",
"ui.3d_mouse_kind_question": "Hvilken slags 3D-mus er det?",
"ui.3d_mouse_kind_trackball": "Trackball",
"ui.3d_mouse_looks_like_cap": "Værdien bliver, mens du holder, som på en enhed af typen „Vend tilbage til midten“.",
"ui.3d_mouse_looks_like_trackball": "Værdien falder tilbage, så snart du stopper, som på en trackball.",
"ui.3d_mouse_motion_rotation_x": "Rotation X",
"ui.3d_mouse_motion_rotation_y": "Rotation Y",
"ui.3d_mouse_motion_rotation_z": "Rotation Z",
"ui.3d_mouse_motion_translation_x": "Forskydning X",
"ui.3d_mouse_motion_translation_y": "Forskydning Y",
"ui.3d_mouse_motion_translation_z": "Forskydning Z",
"ui.3d_mouse_navigate": "Navigér med 3D-musen",
"ui.3d_mouse_none": "Ingen 3D-mus fundet",
"ui.3d_mouse_not_calibrated": "Ikke kalibreret",
"ui.3d_mouse_offer": "Kalibrering af din 3D-mus retter ombyttede eller vendte akser og indstiller dens hastighed og fornemmelse.",
"ui.3d_mouse_offer_never": "Vis ikke igen",
"ui.3d_mouse_offer_swap": "Skift til Hidraw (direkte driver)",
"ui.3d_mouse_reading": "Aflæser",
"ui.3d_mouse_reset_axes": "Nulstil aksetildeling",
"ui.3d_mouse_reset_view": "Nulstil visning",
"ui.3d_mouse_restore": "Gendan 3D-musens standardværdier",
"ui.3d_mouse_restore_ask": "Sæt 3D-musens indstillinger tilbage til standard? Din kalibrering og knaptildeling bliver.",
"ui.3d_mouse_section": "3D-mus",
"ui.3d_mouse_show_in_view": "Vis 3D-musen i 3D-visningen",
"ui.3d_mouse_show_in_view_tip": "Et billede af din 3D-mus i nederste venstre hjørne, der bevæger sig, når du bevæger den.",
"ui.3d_mouse_skip": "Min enhed kan ikke det",
"ui.3d_mouse_skip_tip": "Springer bevægelsen over begge veje, og kalibreringen udelader den.",
"ui.3d_mouse_speed": "3D-musens hastighed",
"ui.3d_mouse_step_lift": "Løft knoppen op, hold den, og slip.",
"ui.3d_mouse_step_press": "Tryk knoppen ned, hold den, og slip.",
"ui.3d_mouse_step_pull": "Træk knoppen mod dig, hold den, og slip.",
"ui.3d_mouse_step_push": "Skub knoppen væk fra dig, hold den, og slip.",
"ui.3d_mouse_step_rest": "Fjern hånden fra knoppen, og lad den stå stille.",
"ui.3d_mouse_step_rest_trackball": "Fjern hånden fra kuglen, og lad den ligge stille.",
"ui.3d_mouse_step_ring_clockwise": "Drej rullehjulet et par klik med uret.",
"ui.3d_mouse_step_ring_counterclockwise": "Drej rullehjulet et par klik mod uret.",
"ui.3d_mouse_step_roll_away": "Rul kuglen væk fra dig et par gange, og lad den stoppe.",
"ui.3d_mouse_step_roll_left": "Rul kuglen mod venstre et par gange, og lad den stoppe.",
"ui.3d_mouse_step_roll_right": "Rul kuglen mod højre et par gange, og lad den stoppe.",
"ui.3d_mouse_step_roll_toward": "Rul kuglen ind mod dig et par gange, og lad den stoppe.",
"ui.3d_mouse_step_slide_left": "Skub knoppen mod venstre, hold den, og slip.",
"ui.3d_mouse_step_slide_right": "Skub knoppen mod højre, hold den, og slip.",
"ui.3d_mouse_step_spin_clockwise": "Drej kuglen rundt med uret et par gange, og lad den stoppe.",
"ui.3d_mouse_step_spin_counterclockwise": "Drej kuglen rundt mod uret et par gange, og lad den stoppe.",
"ui.3d_mouse_step_tilt_away": "Vip toppen af knoppen væk fra dig (kanten nærmest dig går op), hold den, og slip.",
"ui.3d_mouse_step_tilt_left": "Vip knoppen mod venstre (venstre kant ned), hold den, og slip.",
"ui.3d_mouse_step_tilt_right": "Vip knoppen mod højre (højre kant ned), hold den, og slip.",
"ui.3d_mouse_step_tilt_toward": "Vip toppen af knoppen ind mod dig (kanten nærmest dig går ned), hold den, og slip.",
"ui.3d_mouse_step_touch": "Hvil hånden på knoppen uden at skubbe til den.",
"ui.3d_mouse_step_twist_clockwise": "Drej knoppen med uret, hold den, og slip.",
"ui.3d_mouse_step_twist_counterclockwise": "Drej knoppen mod uret, hold den, og slip.",
"ui.3d_mouse_switch_cap": "Kalibrer som vend tilbage til midten",
"ui.3d_mouse_switch_trackball": "Kalibrér som trackball",
"ui.3d_mouse_view_axis": "Visningsakse",
"ui.3d_mouse_view_off": "Fra",
"ui.3d_mouse_view_off_tip": "3D-musedriverens profil slår denne akse fra, så dens bevægelse flytter ikke visningen. Vælger du en anden akses bevægelse her, bytter de to plads, og den bevægelse flytter ikke længere visningen.",
"ui.3d_mouse_view_orbit_sideways": "Orbit venstre / højre",
"ui.3d_mouse_view_orbit_up_down": "Orbit op / ned",
"ui.3d_mouse_view_pan_sideways": "Panorér venstre / højre",
"ui.3d_mouse_view_pan_up_down": "Panorér op / ned",
"ui.3d_mouse_view_roll": "Rul",
"ui.3d_mouse_view_unmapped": "Akse {n}",
"ui.3d_mouse_view_zoom": "Zoom",
"ui.3d_mouse_waiting": "Venter på bevægelse",
"ui.3d_mouse_wiggle": "Hvis du har en tilsluttet, så bevæg den lidt.",
"ui.3d_sketch": "3D-skitse",
"ui.activate": "Aktivér",
"ui.active_component": "Aktiv komponent",
@@ -1351,6 +1454,7 @@
"ui.blocked": "Blokeret",
"ui.bodies": "Emner",
"ui.bodies_all_if_none": "Emner (alle, hvis ingen er valgt)",
"ui.bottom": "Nedenfra",
"ui.box": "Boks",
"ui.break": "Bryd",
"ui.browser_bodies_one": "{count} emne",
@@ -1794,34 +1898,6 @@
"ui.smooth_wheel_zoom": "Jævn zoom med musehjul",
"ui.smooth_wheel_zoom_tip": "Slå fra for at anvende hver hjulbevægelse straks uden efterfølgende udjævning",
"ui.snap": "Fastgør til geometri",
"ui.space_mouse_calibrate": "Kalibrér…",
"ui.space_mouse_calibrate_tip": "Bevæg knoppen som vist i vinduet, så SolidCraft kan registrere retningen og bevægelsesområdet for hver akse. Indstillingerne gemmes til denne 3D-mus.",
"ui.space_mouse_calibrate_title": "Kalibrér 3D-mus",
"ui.space_mouse_calibrated": "Kalibreret",
"ui.space_mouse_calibration": "Kalibrering af 3D-mus",
"ui.space_mouse_calibration_done": "Færdig. Gem indstillingerne, så de bruges, hver gang denne 3D-mus tilsluttes.",
"ui.space_mouse_calibration_no_response": "En af akserne bevægede sig for lidt til at kunne kalibreres. Start forfra, og bevæg knoppen længere hver gang.",
"ui.space_mouse_dead_zone": "Dødzone",
"ui.space_mouse_dead_zone_tip": "Hvor langt knoppen skal bevæges, før visningen reagerer, angivet som en andel af dens fulde bevægelse. Øg værdien, hvis visningen bevæger sig, når du ikke rører knoppen.",
"ui.space_mouse_forget": "Nulstil kalibrering",
"ui.space_mouse_hint": "Flyt og rotér visningen samtidigt; skitser bruger kun panorering og zoom.",
"ui.space_mouse_navigate": "Navigér med SpaceNavigator / SpaceMouse",
"ui.space_mouse_none": "Ingen 3D-mus fundet",
"ui.space_mouse_not_calibrated": "Ikke kalibreret",
"ui.space_mouse_reading": "Aflæser",
"ui.space_mouse_step_lift": "Løft knoppen op, hold den dér, og slip.",
"ui.space_mouse_step_press": "Tryk knoppen ned, hold den dér, og slip.",
"ui.space_mouse_step_pull": "Træk knoppen mod dig, hold den dér, og slip.",
"ui.space_mouse_step_push": "Skub knoppen væk fra dig, hold den dér, og slip.",
"ui.space_mouse_step_rest": "Fjern hånden fra knoppen, og lad den stå stille.",
"ui.space_mouse_step_slide_left": "Skub knoppen mod venstre, hold den dér, og slip.",
"ui.space_mouse_step_slide_right": "Skub knoppen mod højre, hold den dér, og slip.",
"ui.space_mouse_step_tilt_back": "Vip knoppen bagud (forkanten op), hold den dér, og slip.",
"ui.space_mouse_step_tilt_forward": "Vip knoppen fremad (forkanten ned), hold den dér, og slip.",
"ui.space_mouse_step_tilt_left": "Vip knoppen mod venstre (venstre kant ned), hold den dér, og slip.",
"ui.space_mouse_step_tilt_right": "Vip knoppen mod højre (højre kant ned), hold den dér, og slip.",
"ui.space_mouse_step_twist_clockwise": "Drej knoppen med uret, hold den dér, og slip.",
"ui.space_mouse_step_twist_counterclockwise": "Drej knoppen mod uret, hold den dér, og slip.",
"ui.spacing": "Afstand",
"ui.spacing_2": "Afstand 2",
"ui.sphere": "Kugle",
+113 -54
View File
@@ -641,6 +641,10 @@
"cmd.file_insert_step": "STEP einfügen",
"cmd.file_save_mesh": "Als Netz speichern",
"cmd.file_slicers": "Installierte Slicer",
"cmd.frame_member": "Rahmenelement",
"cmd.frame_profile_insert": "Profil einfügen",
"cmd.frame_profile_list": "Profilbibliothek",
"cmd.frame_profile_properties": "Profileigenschaften",
"cmd.inspect_accessibility": "Zugänglichkeitsanalyse",
"cmd.inspect_center_of_mass": "Massenschwerpunkt",
"cmd.inspect_clearance": "Freiraum",
@@ -1187,6 +1191,8 @@
"settings.msaa_applies_on_restart": "Die Kantenglättung wird beim nächsten Start von SolidCraft übernommen",
"settings.msaa_reset": "{setting}: {requested}× wird von diesem Grafikgerät nicht unterstützt; jetzt {reset}× (unterstützt: {supported}).",
"settings.msaa_unsupported": "Von diesem Grafikgerät nicht unterstützt",
"settings.reference_geometry_through_bodies": "Referenzgeometrie durch Körper hindurch anzeigen",
"settings.reference_geometry_through_bodies_help": "Konturen inaktiver Skizzen und Bezugsebenen über schattierten Körpern zeichnen",
"settings.reset_intro": "Diese Einstellungen funktionieren auf diesem Computer nicht und würden den Start von SolidCraft verhindern. Sie wurden daher geändert:",
"settings.reset_title": "Einstellungen wurden geändert",
"settings.supersampling_note": "Zeichnet die Ansicht in höherer Auflösung und rechnet sie herunter: glattere Kanten, Linien und Raster auf Bildschirmen unter 4K. Kostet GPU-Zeit: etwa 2,25-mal so viele Pixel bei 1,5× und 4-mal bei 2×.",
@@ -1242,7 +1248,106 @@
"trace.stopped_by_contact": "Endet bei Probe {sample}: {a} würde {b} durchdringen",
"trace.stopped_by_loop": "Endet bei Probe {sample}: die Schleife über {joint} lässt sich nicht weiter schließen",
"ui.1_degree_of_freedom": "1 Freiheitsgrad",
"ui.3d_mouse_axes_reassigned": "Die Achsen sind in den Einstellungen neu zugeordnet, und das gilt auch nach dieser Kalibrierung.",
"ui.3d_mouse_button": "Taste {number}",
"ui.3d_mouse_button_nothing": "Nichts",
"ui.3d_mouse_button_settings": "3D-Maus-Einstellungen",
"ui.3d_mouse_buttons": "Tasten",
"ui.3d_mouse_buttons_hint": "Drücken Sie eine Taste an Ihrer 3D-Maus, um sie hier zu finden, und wählen Sie dann, was sie tut.",
"ui.3d_mouse_buttons_no_device": "Schließen Sie eine 3D-Maus an, um ihre Tasten zu belegen.",
"ui.3d_mouse_buttons_reset": "Standardbelegung wiederherstellen",
"ui.3d_mouse_calibrate": "Kalibrieren…",
"ui.3d_mouse_calibrate_tip": "Bewegen Sie die Kappe so, wie das Fenster es verlangt. So lernt SolidCraft, in welche Richtung und wie weit jede Achse dieser 3D-Maus geht. Wird für diese 3D-Maus gespeichert.",
"ui.3d_mouse_calibrate_title": "3D-Maus kalibrieren",
"ui.3d_mouse_calibrate_wait": "Bewegen Sie die 3D-Maus einmal, damit SolidCraft sie erkennt.",
"ui.3d_mouse_calibrated": "Kalibriert",
"ui.3d_mouse_calibration": "3D-Maus-Kalibrierung",
"ui.3d_mouse_calibration_done": "Fertig. Speichern Sie die Kalibrierung, damit sie immer gilt, wenn diese 3D-Maus angeschlossen ist.",
"ui.3d_mouse_calibration_no_response": "Eine Achse hat sich kaum bewegt und lässt sich nicht kalibrieren. Beginnen Sie von vorn und bewegen Sie die Kappe jedes Mal weiter.",
"ui.3d_mouse_circles_help": "Die Kreise zeigen, was das Gerät nach der Kalibrierung sendet. Das Testmodell zeigt, was die Ansicht daraus macht, nach Umkehren, Geschwindigkeit und Achsenzuordnung.",
"ui.3d_mouse_dead_zone": "Totzone",
"ui.3d_mouse_dead_zone_tip": "Wie weit sich die Kappe bewegen muss, bevor sich die Ansicht bewegt, als Anteil ihres vollen Wegs. Erhöhen Sie sie, wenn die Ansicht wandert, obwohl die Kappe ruht.",
"ui.3d_mouse_denied": "SolidCraft sieht eine 3D-Maus, darf sie aber nicht lesen. Die udev-Regel steht in den Einrichtungshinweisen zur 3D-Maus.",
"ui.3d_mouse_denied_short": "Gefunden, aber nicht lesbar",
"ui.3d_mouse_driven_by": "Welche kalibrierte Bewegung des Geräts diese Achse steuert. Wählen Sie eine, die schon eine andere Achse nutzt, werden die beiden getauscht.",
"ui.3d_mouse_driven_by_label": "gesteuert von",
"ui.3d_mouse_driver": "3D-Maus-Treiber",
"ui.3d_mouse_driver_auto": "Automatisch",
"ui.3d_mouse_driver_direct": "Direkt (hidraw)",
"ui.3d_mouse_driver_fallback": "Wird vorerst über spacenavd gelesen: das Gerät selbst ließ sich nicht öffnen.",
"ui.3d_mouse_driver_only_direct": "Das Gerät wird direkt gelesen; spacenavd läuft nicht",
"ui.3d_mouse_driver_only_spacenavd": "Lesen über spacenavd, die einzige verfügbare Möglichkeit",
"ui.3d_mouse_forget": "Kalibrierung verwerfen",
"ui.3d_mouse_ghost_left_viewport": "Ansicht links",
"ui.3d_mouse_ghost_left_window": "Fenster links",
"ui.3d_mouse_ghost_position": "Position",
"ui.3d_mouse_ghost_right_viewport": "Ansicht rechts",
"ui.3d_mouse_hint": "Ansicht gleichzeitig verschieben und drehen; Skizzen verwenden nur Schwenken und Zoomen.",
"ui.3d_mouse_kind_cap": "Zurück zur Mitte",
"ui.3d_mouse_kind_question": "Was für eine 3D-Maus ist es?",
"ui.3d_mouse_kind_trackball": "Trackball",
"ui.3d_mouse_looks_like_cap": "Der Wert bleibt stehen, solange Sie halten, wie bei einem Gerät vom Typ „Zurück zur Mitte“.",
"ui.3d_mouse_looks_like_trackball": "Der Wert fällt zurück, sobald Sie aufhören, wie bei einem Trackball.",
"ui.3d_mouse_motion_rotation_x": "Rotation X",
"ui.3d_mouse_motion_rotation_y": "Rotation Y",
"ui.3d_mouse_motion_rotation_z": "Rotation Z",
"ui.3d_mouse_motion_translation_x": "Translation X",
"ui.3d_mouse_motion_translation_y": "Translation Y",
"ui.3d_mouse_motion_translation_z": "Translation Z",
"ui.3d_mouse_navigate": "Mit der 3D-Maus navigieren",
"ui.3d_mouse_none": "Keine 3D-Maus gefunden",
"ui.3d_mouse_not_calibrated": "Nicht kalibriert",
"ui.3d_mouse_offer": "Die Kalibrierung Ihrer 3D-Maus behebt vertauschte oder umgekehrte Achsen und stellt Geschwindigkeit und Gefühl ein.",
"ui.3d_mouse_offer_never": "Nicht mehr anzeigen",
"ui.3d_mouse_offer_swap": "Zu Hidraw wechseln (direkter Treiber)",
"ui.3d_mouse_reading": "Werte",
"ui.3d_mouse_reset_axes": "Achsenzuordnung zurücksetzen",
"ui.3d_mouse_reset_view": "Ansicht zurücksetzen",
"ui.3d_mouse_restore": "3D-Maus-Standardwerte wiederherstellen",
"ui.3d_mouse_restore_ask": "3D-Maus-Einstellungen auf die Standardwerte zurücksetzen? Kalibrierung und Tastenbelegung bleiben.",
"ui.3d_mouse_section": "3D-Maus",
"ui.3d_mouse_show_in_view": "3D-Maus in der 3D-Ansicht anzeigen",
"ui.3d_mouse_show_in_view_tip": "Ein Bild Ihrer 3D-Maus unten links, das sich mit ihr bewegt.",
"ui.3d_mouse_skip": "Mein Gerät kann das nicht",
"ui.3d_mouse_skip_tip": "Überspringt diese Bewegung in beide Richtungen; die Kalibrierung lässt sie aus.",
"ui.3d_mouse_speed": "Geschwindigkeit der 3D-Maus",
"ui.3d_mouse_step_lift": "Kappe nach oben ziehen, halten, dann loslassen.",
"ui.3d_mouse_step_press": "Kappe nach unten drücken, halten, dann loslassen.",
"ui.3d_mouse_step_pull": "Kappe zu sich heranziehen, halten, dann loslassen.",
"ui.3d_mouse_step_push": "Kappe von sich wegschieben, halten, dann loslassen.",
"ui.3d_mouse_step_rest": "Nehmen Sie die Hand von der Kappe und lassen Sie sie ruhen.",
"ui.3d_mouse_step_rest_trackball": "Nehmen Sie die Hand von der Kugel und lassen Sie sie ruhen.",
"ui.3d_mouse_step_ring_clockwise": "Drehen Sie den Scrollring ein paar Rasten im Uhrzeigersinn.",
"ui.3d_mouse_step_ring_counterclockwise": "Drehen Sie den Scrollring ein paar Rasten gegen den Uhrzeigersinn.",
"ui.3d_mouse_step_roll_away": "Rollen Sie die Kugel ein paarmal von sich weg und lassen Sie sie dann auslaufen.",
"ui.3d_mouse_step_roll_left": "Rollen Sie die Kugel ein paarmal nach links und lassen Sie sie dann auslaufen.",
"ui.3d_mouse_step_roll_right": "Rollen Sie die Kugel ein paarmal nach rechts und lassen Sie sie dann auslaufen.",
"ui.3d_mouse_step_roll_toward": "Rollen Sie die Kugel ein paarmal zu sich hin und lassen Sie sie dann auslaufen.",
"ui.3d_mouse_step_slide_left": "Kappe nach links schieben, halten, dann loslassen.",
"ui.3d_mouse_step_slide_right": "Kappe nach rechts schieben, halten, dann loslassen.",
"ui.3d_mouse_step_spin_clockwise": "Drehen Sie die Kugel ein paarmal im Uhrzeigersinn und lassen Sie sie dann auslaufen.",
"ui.3d_mouse_step_spin_counterclockwise": "Drehen Sie die Kugel ein paarmal gegen den Uhrzeigersinn und lassen Sie sie dann auslaufen.",
"ui.3d_mouse_step_tilt_away": "Oberseite der Kappe von sich weg kippen (die Ihnen nächste Kante geht nach oben), halten, dann loslassen.",
"ui.3d_mouse_step_tilt_left": "Kappe nach links kippen (linke Kante runter), halten, dann loslassen.",
"ui.3d_mouse_step_tilt_right": "Kappe nach rechts kippen (rechte Kante runter), halten, dann loslassen.",
"ui.3d_mouse_step_tilt_toward": "Oberseite der Kappe zu sich kippen (die Ihnen nächste Kante geht nach unten), halten, dann loslassen.",
"ui.3d_mouse_step_touch": "Legen Sie die Hand auf die Kappe, ohne zu drücken.",
"ui.3d_mouse_step_twist_clockwise": "Kappe im Uhrzeigersinn drehen, halten, dann loslassen.",
"ui.3d_mouse_step_twist_counterclockwise": "Kappe gegen den Uhrzeigersinn drehen, halten, dann loslassen.",
"ui.3d_mouse_switch_cap": "Als Zurück zur Mitte kalibrieren",
"ui.3d_mouse_switch_trackball": "Als Trackball kalibrieren",
"ui.3d_mouse_view_axis": "Ansichtsachse",
"ui.3d_mouse_view_off": "Aus",
"ui.3d_mouse_view_off_tip": "Das Profil des 3D-Maus-Treibers schaltet diese Achse ab, daher bewegt ihre Bewegung die Ansicht nicht. Wählen Sie hier die Bewegung einer anderen Achse, werden die beiden getauscht und sie bewegt die Ansicht nicht mehr.",
"ui.3d_mouse_view_orbit_sideways": "Orbit links / rechts",
"ui.3d_mouse_view_orbit_up_down": "Orbit hoch / runter",
"ui.3d_mouse_view_pan_sideways": "Schwenken links / rechts",
"ui.3d_mouse_view_pan_up_down": "Schwenken hoch / runter",
"ui.3d_mouse_view_roll": "Rollen",
"ui.3d_mouse_view_unmapped": "Achse {n}",
"ui.3d_mouse_view_zoom": "Zoom",
"ui.3d_mouse_waiting": "Warte auf Bewegung",
"ui.3d_mouse_wiggle": "Falls eine angeschlossen ist, bewegen Sie sie kurz.",
"ui.3d_sketch": "3D-Skizze",
"ui.activate": "Aktivieren",
"ui.active_component": "Aktive Komponente",
@@ -1472,6 +1577,7 @@
"ui.blocked": "Verdeckt",
"ui.bodies": "Körper",
"ui.bodies_all_if_none": "Körper (alle, wenn keine)",
"ui.bottom": "Unten",
"ui.box": "Block",
"ui.break": "Unterbrechen",
"ui.browser_bodies_one": "{count} Körper",
@@ -1894,6 +2000,12 @@
"ui.sent_to_slicer": "An {slicer} gesendet",
"ui.sheet_gap": "Spalt",
"ui.shell": "Hülle",
"ui.shortcut_capture_add_key": "Eine normale Taste hinzufügen. Escape bricht ab.",
"ui.shortcut_capture_hint": "Eine Belegung anklicken, dann Modifikatortasten und eine Taste drücken. Weitere Modifikatoren innerhalb einer Sekunde hinzufügen; zum Bestätigen alle Tasten loslassen. Escape bricht ab.",
"ui.shortcut_capture_press": "Modifikatortasten und eine Taste drücken. Escape bricht ab.",
"ui.shortcut_capture_release": "Zum Bestätigen alle Tasten loslassen. Escape bricht ab.",
"ui.shortcut_capture_settling": "Tastenkürzel wird bestätigt… Escape bricht ab.",
"ui.shortcut_multiple_keys": "Modifikatortasten und nur eine weitere Taste verwenden. Zum Wiederholen die Belegung anklicken.",
"ui.show": "Einblenden",
"ui.showAll": "Alle einblenden",
"ui.showAllBodies": "Alle Volumenkörper einblenden",
@@ -1923,59 +2035,6 @@
"ui.smooth_wheel_zoom": "Sanftes Zoomen mit dem Rad",
"ui.smooth_wheel_zoom_tip": "Ausschalten, um jedes Radereignis sofort anzuwenden, ohne Nachlauf",
"ui.snap": "Einrasten",
"ui.space_mouse_axes_reassigned": "Die Achsen sind in den Einstellungen neu zugeordnet, und das gilt auch nach dieser Kalibrierung.",
"ui.space_mouse_calibrate": "Kalibrieren…",
"ui.space_mouse_calibrate_tip": "Bewegen Sie die Kappe so, wie das Fenster es verlangt. So lernt SolidCraft, in welche Richtung und wie weit jede Achse dieser 3D-Maus geht. Wird für diese 3D-Maus gespeichert.",
"ui.space_mouse_calibrate_title": "3D-Maus kalibrieren",
"ui.space_mouse_calibrated": "Kalibriert",
"ui.space_mouse_calibration": "3D-Maus-Kalibrierung",
"ui.space_mouse_calibration_done": "Fertig. Speichern Sie die Kalibrierung, damit sie immer gilt, wenn diese 3D-Maus angeschlossen ist.",
"ui.space_mouse_calibration_no_response": "Eine Achse hat sich kaum bewegt und lässt sich nicht kalibrieren. Beginnen Sie von vorn und bewegen Sie die Kappe jedes Mal weiter.",
"ui.space_mouse_dead_zone": "Totzone",
"ui.space_mouse_dead_zone_tip": "Wie weit sich die Kappe bewegen muss, bevor sich die Ansicht bewegt, als Anteil ihres vollen Wegs. Erhöhen Sie sie, wenn die Ansicht wandert, obwohl die Kappe ruht.",
"ui.space_mouse_driven_by": "Welche kalibrierte Bewegung des Geräts diese Achse steuert. Wählen Sie eine, die schon eine andere Achse nutzt, werden die beiden getauscht.",
"ui.space_mouse_driven_by_label": "gesteuert von",
"ui.space_mouse_driver": "3D-Maus-Treiber",
"ui.space_mouse_driver_auto": "Automatisch",
"ui.space_mouse_driver_direct": "Direkt (hidraw)",
"ui.space_mouse_driver_only_direct": "Das Gerät wird direkt gelesen; spacenavd läuft nicht",
"ui.space_mouse_driver_only_spacenavd": "Lesen über spacenavd, die einzige verfügbare Möglichkeit",
"ui.space_mouse_forget": "Kalibrierung vergessen",
"ui.space_mouse_hint": "Ansicht gleichzeitig verschieben und drehen; Skizzen verwenden nur Schwenken und Zoomen.",
"ui.space_mouse_motion_rotation_x": "Rotation X",
"ui.space_mouse_motion_rotation_y": "Rotation Y",
"ui.space_mouse_motion_rotation_z": "Rotation Z",
"ui.space_mouse_motion_translation_x": "Translation X",
"ui.space_mouse_motion_translation_y": "Translation Y",
"ui.space_mouse_motion_translation_z": "Translation Z",
"ui.space_mouse_navigate": "Mit SpaceNavigator / SpaceMouse navigieren",
"ui.space_mouse_none": "Keine 3D-Maus gefunden",
"ui.space_mouse_not_calibrated": "Nicht kalibriert",
"ui.space_mouse_reading": "Werte",
"ui.space_mouse_reset_axes": "Achsenzuordnung zurücksetzen",
"ui.space_mouse_step_lift": "Kappe nach oben ziehen, halten, dann loslassen.",
"ui.space_mouse_step_press": "Kappe nach unten drücken, halten, dann loslassen.",
"ui.space_mouse_step_pull": "Kappe zu sich heranziehen, halten, dann loslassen.",
"ui.space_mouse_step_push": "Kappe von sich wegschieben, halten, dann loslassen.",
"ui.space_mouse_step_rest": "Nehmen Sie die Hand von der Kappe und lassen Sie sie ruhen.",
"ui.space_mouse_step_slide_left": "Kappe nach links schieben, halten, dann loslassen.",
"ui.space_mouse_step_slide_right": "Kappe nach rechts schieben, halten, dann loslassen.",
"ui.space_mouse_step_tilt_back": "Kappe nach hinten kippen (Vorderkante hoch), halten, dann loslassen.",
"ui.space_mouse_step_tilt_forward": "Kappe nach vorn kippen (Vorderkante runter), halten, dann loslassen.",
"ui.space_mouse_step_tilt_left": "Kappe nach links kippen (linke Kante runter), halten, dann loslassen.",
"ui.space_mouse_step_tilt_right": "Kappe nach rechts kippen (rechte Kante runter), halten, dann loslassen.",
"ui.space_mouse_step_twist_clockwise": "Kappe im Uhrzeigersinn drehen, halten, dann loslassen.",
"ui.space_mouse_step_twist_counterclockwise": "Kappe gegen den Uhrzeigersinn drehen, halten, dann loslassen.",
"ui.space_mouse_view_axis": "Ansichtsachse",
"ui.space_mouse_view_off": "Aus",
"ui.space_mouse_view_off_tip": "Das Profil des 3D-Maus-Treibers schaltet diese Achse ab, daher bewegt ihre Bewegung die Ansicht nicht. Wählen Sie hier die Bewegung einer anderen Achse, werden die beiden getauscht und sie bewegt die Ansicht nicht mehr.",
"ui.space_mouse_view_orbit_sideways": "Orbit links / rechts",
"ui.space_mouse_view_orbit_up_down": "Orbit hoch / runter",
"ui.space_mouse_view_pan_sideways": "Schwenken links / rechts",
"ui.space_mouse_view_pan_up_down": "Schwenken hoch / runter",
"ui.space_mouse_view_roll": "Rollen",
"ui.space_mouse_view_unmapped": "Achse {n}",
"ui.space_mouse_view_zoom": "Zoom",
"ui.spacing": "Abstand",
"ui.spacing_2": "Abstand 2",
"ui.sphere": "Sphäre",
@@ -2017,7 +2076,7 @@
"ui.top": "Oben",
"ui.torus": "Torus",
"ui.total_angle": "Gesamtwinkel",
"ui.trackpad_pan_tip": "Trackpad-Gesten schwenken (aus: sie zoomen wie das Rad); Mausrad zoomt, Daumenrad schwenkt seitlich, Pinch zoomt immer",
"ui.trackpad_pan_tip": "Scrollen mit zwei Fingern verschiebt die Ansicht; bei Fusion dreht Umschalt + zwei Finger die Ansicht. Aus: Scrollen zoomt. Mausrad und Pinch-Geste zoomen; das Daumenrad verschiebt seitlich.",
"ui.trim": "Kürzen",
"ui.twist": "Verdrehung",
"ui.two_finger_scroll_pans": "Zwei-Finger-Scrollen schwenkt",
+1 -1
View File
@@ -16,6 +16,7 @@
"pattern.alignment_hint": "Counts include the original. Centre balances copies; Flip chooses the extra side for even totals.",
"render.opaque_preview_help": "Opaque PBR and simple colours; blended transparency. Refraction, HDRI and final rendering are not available yet.",
"sketch_text.align_center": "Centre",
"ui.3d_mouse_step_pull": "Pull the cap towards you, hold it, then let go.",
"ui.center": "Centre",
"ui.centerline": "Centreline",
"ui.customizeToolbar": "Customise Toolbar…",
@@ -24,7 +25,6 @@
"ui.layout_compact": "Compact",
"ui.layout_floating": "Floating",
"ui.ribbon_labels": "Show text under ribbon icons",
"ui.space_mouse_step_pull": "Pull the cap towards you, hold it, then let go.",
"ui.workspace_layout": "Workspace layout",
"ui.zoom_to_cursor_tip": "The wheel zooms towards the point under the cursor (off: towards the view's centre)",
"update.prefs_flatpak": "Flatpak updates this copy ({version}): run {command} or use your software centre. SolidCraft doesn't check."
+158 -54
View File
@@ -5,7 +5,9 @@
"2. Attach your screenshot: copy and paste it, or save and upload the PNG.": "2. Attach your screenshot: copy and paste it, or save and upload the PNG.",
"2D": "2D",
"3. Click Submit new issue on GitHub to send your report.": "3. Click Submit new issue on GitHub to send your report.",
"A Single hole snaps to the middle of its face and to the centres of its round edges": "A Single hole snaps to the middle of its face and to the centres of its round edges",
"A new configuration, a copy of the active one": "A new configuration, a copy of the active one",
"A placed Single hole has a handle to drag it, and picking its face again moves the hole there instead of taking it out": "A placed Single hole has a handle to drag it, and picking its face again moves the hole there instead of taking it out",
"ARRANGE": "ARRANGE",
"About SolidCraft": "About SolidCraft",
"Acceleration": "Acceleration",
@@ -25,11 +27,13 @@
"Advanced": "Advanced",
"Against": "Against",
"Alignment": "Alignment",
"All Lines": "All Lines",
"All Sketch Points": "All Sketch Points",
"All components": "All components",
"All open designs": "All open designs",
"Allowed expressions, separated by semicolons": "Allowed expressions, separated by semicolons",
"Also deletes": "Also deletes",
"Anchor": "Anchor",
"Angle 2": "Angle 2",
"Animate": "Animate",
"App/system information and command settings are included. Review private details before sharing.": "App/system information and command settings are included. Review private details before sharing.",
@@ -47,6 +51,7 @@
"BLEND SURFACE": "BLEND SURFACE",
"BOUNDARY SURFACE": "BOUNDARY SURFACE",
"BROWSER": "BROWSER",
"Bar": "Bar",
"Bend Edges": "Bend Edges",
"Bend Line Position": "Bend Line Position",
"Bend Position": "Bend Position",
@@ -59,6 +64,9 @@
"Body (last if none)": "Body (last if none)",
"Body to split": "Body to split",
"Body, or faces to take out": "Body, or faces to take out",
"Bottom Left": "Bottom Left",
"Bottom Middle": "Bottom Middle",
"Bottom Right": "Bottom Right",
"Boundary": "Boundary",
"Bounding box": "Bounding box",
"CHECK": "CHECK",
@@ -78,12 +86,15 @@
"Center Y": "Center Y",
"Center of mass": "Center of mass",
"Centre to centre": "Centre to centre",
"Centroid": "Centroid",
"Chamfer Type": "Chamfer Type",
"Channel": "Channel",
"Check collisions": "Check collisions",
"Checked": "Checked",
"Choose Variable radius or Spline in Type.": "Choose Variable radius or Spline in Type.",
"Choose a new plane. Sketch geometry and dimensions stay unchanged in its two-dimensional coordinates.": "Choose a new plane. Sketch geometry and dimensions stay unchanged in its two-dimensional coordinates.",
"Choose…": "Choose…",
"Circle center": "Circle center",
"Circular": "Circular",
"Circumference": "Circumference",
"Close draft": "Close draft",
@@ -113,10 +124,12 @@
"Copy screenshot": "Copy screenshot",
"Corner Relief": "Corner Relief",
"Corner Relief Shape": "Corner Relief Shape",
"Corner radius": "Corner radius",
"Counterbore depth": "Counterbore depth",
"Counterbore Ø": "Counterbore Ø",
"Countersink angle": "Countersink angle",
"Countersink Ø": "Countersink Ø",
"Create Hole": "Create Hole",
"Create Issue — review draft": "Create Issue — review draft",
"Create Issue…": "Create Issue…",
"Cross curves": "Cross curves",
@@ -152,6 +165,7 @@
"Don't ask again": "Don't ask again",
"Double-click to rename": "Double-click to rename",
"Double-clicking the middle button in the view: Home (the home view, framing what is shown), Fit (frame what is shown, keeping the orientation) or nothing": "Double-clicking the middle button in the view: Home (the home view, framing what is shown), Fit (frame what is shown, keeping the orientation) or nothing",
"Drag to move the hole; click to remove it": "Drag to move the hole; click to remove it",
"Drive Joint": "Drive Joint",
"Duration": "Duration",
"Edges": "Edges",
@@ -185,6 +199,7 @@
"Face": "Face",
"Face Appearance": "Face Appearance",
"Face attachment lost": "Face attachment lost",
"Face center": "Face center",
"Faces": "Faces",
"Faces / edges / vertices": "Faces / edges / vertices",
"Faces to split": "Faces to split",
@@ -200,6 +215,7 @@
"First plane": "First plane",
"Fit and G2 corners require Constant radius.": "Fit and G2 corners require Constant radius.",
"Fixed Face": "Fixed Face",
"Flange thickness": "Flange thickness",
"Flat Pattern": "Flat Pattern",
"Flat size": "Flat size",
"Follow camera (Look At sketches)": "Follow camera (Look At sketches)",
@@ -222,6 +238,7 @@
"Holes (edges on them)": "Holes (edges on them)",
"Home view": "Home view",
"Horiz./Vert.": "Horiz./Vert.",
"I-Beam": "I-Beam",
"IMAGES": "IMAGES",
"Import…": "Import…",
"In This Design": "In This Design",
@@ -242,10 +259,12 @@
"Keep of the other surface": "Keep of the other surface",
"Key a joint's value at this step": "Key a joint's value at this step",
"Keys": "Keys",
"L-Angle": "L-Angle",
"LIBRARY": "LIBRARY",
"LINKS": "LINKS",
"Later": "Later",
"Leave it": "Leave it",
"Left Middle": "Left Middle",
"Legacy face attachment. Rebinding to a certified face creates an exact attachment.": "Legacy face attachment. Rebinding to a certified face creates an exact attachment.",
"Length": "Length",
"Length units": "Length units",
@@ -255,6 +274,7 @@
"Limits": "Limits",
"Line Spacing": "Line Spacing",
"Line Type": "Line Type",
"Lines": "Lines",
"Listing the installed fonts…": "Listing the installed fonts…",
"Load library": "Load library",
"Local library": "Local library",
@@ -288,6 +308,7 @@
"Move Type": "Move Type",
"Move down": "Move down",
"Move earlier": "Move earlier",
"Move holes by clicking or dragging": "Move holes by clicking or dragging",
"Move later": "Move later",
"Move up": "Move up",
"Name": "Name",
@@ -319,6 +340,7 @@
"Orbit (right drag)": "Orbit (right drag)",
"Other side": "Other side",
"Other surface (mutual trim)": "Other surface (mutual trim)",
"Outer radius": "Outer radius",
"Outside": "Outside",
"Overall length": "Overall length",
"Param. Graph": "Param. Graph",
@@ -361,6 +383,7 @@
"Recover": "Recover",
"Recover unsaved design?": "Recover unsaved design?",
"Rectangular": "Rectangular",
"Rectangular Tube": "Rectangular Tube",
"Reference face": "Reference face",
"Remove Tools": "Remove Tools",
"Remove condition": "Remove condition",
@@ -398,11 +421,15 @@
"Rib Offset": "Rib Offset",
"Rib Thickness": "Rib Thickness",
"Ribs": "Ribs",
"Right Middle": "Right Middle",
"Rim Edge": "Rim Edge",
"Ring of tools on the right button": "Ring of tools on the right button",
"Roll Back Here": "Roll Back Here",
"Roll History Marker Here": "Roll History Marker Here",
"Root radius": "Root radius",
"Round": "Round",
"Round Bar": "Round Bar",
"Round Tube": "Round Tube",
"Rule": "Rule",
"Rule name": "Rule name",
"Rules run from top to bottom. Matched drives change effective values.": "Rules run from top to bottom. Matched drives change effective values.",
@@ -421,6 +448,7 @@
"Search this library": "Search this library",
"Second plane": "Second plane",
"Section": "Section",
"Section (optional)": "Section (optional)",
"Sections (one sketch each)": "Sections (one sketch each)",
"Select Other": "Select Other",
"Select Other: hold the left button still on the model (or right-click › Select Other…) to list everything under the cursor; click again on the same spot to select the next thing there. Double-click the middle button to go Home (Preferences › Navigation).": "Select Other: hold the left button still on the model (or right-click › Select Other…) to list everything under the cursor; click again on the same spot to select the next thing there. Double-click the middle button to go Home (Preferences › Navigation).",
@@ -445,6 +473,7 @@
"Sketch plane has no body-face attachment.": "Sketch plane has no body-face attachment.",
"Sketch points": "Sketch points",
"Slot width": "Slot width",
"Snap to face and edge centres": "Snap to face and edge centres",
"SolidCraft closed before these designs were saved. Their last autosave can be opened.": "SolidCraft closed before these designs were saved. Their last autosave can be opened.",
"Specialise": "Specialise",
"Speed": "Speed",
@@ -492,11 +521,15 @@
"To": "To",
"To Offset": "To Offset",
"To edges": "To edges",
"Toe radius": "Toe radius",
"Tolerance": "Tolerance",
"Too close": "Too close",
"Tool Bodies": "Tool Bodies",
"Tools": "Tools",
"Tools, clockwise from the top": "Tools, clockwise from the top",
"Top Left": "Top Left",
"Top Middle": "Top Middle",
"Top Right": "Top Right",
"Trimming tool (plane, face or curves)": "Trimming tool (plane, face or curves)",
"Turn off section analysis before exporting the view.": "Turn off section analysis before exporting the view.",
"Type": "Type",
@@ -521,6 +554,7 @@
"Wall": "Wall",
"Wall Location": "Wall Location",
"Wall Thickness": "Wall Thickness",
"Web thickness": "Web thickness",
"What did you do just before the problem? A short list is enough": "What did you do just before the problem? A short list is enough",
"What did you expect to see?": "What did you expect to see?",
"What happened?": "What happened?",
@@ -542,6 +576,8 @@
"Z angle": "Z angle",
"Z distance": "Z distance",
"Zebra": "Zebra",
"ai.prefs.allow_control": "Let AI agents connect (control channel / MCP)",
"ai.prefs.allow_control_note": "Opens a control channel on this computer only (127.0.0.1, port 27878 or the next free one). A program that connects must also show a secret token that only your user account can read, made fresh at every start. Takes effect the next time SolidCraft starts. Off: nothing listens unless you start SolidCraft with --control.",
"ai.prefs.availability": "Assistant controls",
"ai.prefs.background_commands": "Run agent commands in the background",
"ai.prefs.follow_camera": "Turn the camera to sketches",
@@ -689,6 +725,10 @@
"cmd.file_insert_step": "Insert STEP",
"cmd.file_save_mesh": "Save As Mesh",
"cmd.file_slicers": "Installed Slicers",
"cmd.frame_member": "Frame Member",
"cmd.frame_profile_insert": "Insert Profile",
"cmd.frame_profile_list": "Profile Library",
"cmd.frame_profile_properties": "Profile Properties",
"cmd.inspect_accessibility": "Accessibility Analysis",
"cmd.inspect_center_of_mass": "Center of Mass",
"cmd.inspect_clearance": "Clearance",
@@ -747,6 +787,7 @@
"cmd.motion_trace_edit": "Edit Motion Trace",
"cmd.motion_trace_keep": "Keep Motion Trace",
"cmd.occurrence_copy": "Paste (Instance)",
"cmd.occurrence_drag": "Drag Occurrence",
"cmd.occurrence_ground": "Ground",
"cmd.occurrence_move": "Move Occurrence",
"cmd.occurrence_properties": "Occurrence Physical Properties",
@@ -804,6 +845,7 @@
"cmd.sketch_auto_constrain_from_datum": "AutoConstrain from datum",
"cmd.sketch_auto_project": "Auto-Project Edges on Reference",
"cmd.sketch_blend_curve": "Blend Curve",
"cmd.sketch_cancel": "Cancel Sketch",
"cmd.sketch_chain": "Chain",
"cmd.sketch_chamfer_distance_angle": "Distance and Angle Chamfer",
"cmd.sketch_chamfer_equal_distance": "Equal Distance Chamfer",
@@ -1008,6 +1050,7 @@
"file_load.stopping": "Waiting for the previous operation to stop...",
"file_load.waiting": "Waiting for file operation",
"fits the face, e.g. M8": "fits the face, e.g. M8",
"from the profile": "from the profile",
"from the rule": "from the rule",
"help.apache": "Apache licence 2.0",
"help.attributions": "Attributions (ATTRIBUTION.md)",
@@ -1363,6 +1406,7 @@
"search.suggest": "Did you mean {label}?",
"search.try": "Type a command name, a feature in this design, or a parameter. To run a command with values, type its id and a JSON object: {example}",
"search.valid": "Valid",
"section.off_hint": "No plane picked: OK turns the section off.",
"settings.display_quality_note": "Only the display. Designs and exports are not affected.",
"settings.frame_rate_note": "Shows frames per second in the view's bottom-right corner.",
"settings.measure_axis_distances": "Show X/Y/Z distances",
@@ -1370,6 +1414,8 @@
"settings.msaa_applies_on_restart": "Anti-aliasing applies the next time SolidCraft starts",
"settings.msaa_reset": "{setting}: {requested}× isn't supported by this graphics device; it is now {reset}× (supported: {supported}).",
"settings.msaa_unsupported": "Not supported by this graphics device",
"settings.reference_geometry_through_bodies": "Show reference geometry through bodies",
"settings.reference_geometry_through_bodies_help": "Draw inactive sketch contours and datum planes over shaded bodies",
"settings.reset_intro": "These settings don't work on this computer and would keep SolidCraft from starting, so they were changed:",
"settings.reset_title": "Settings were changed",
"settings.supersampling_note": "Draws the view at a higher resolution and filters it down: smoother edges, lines and grid on screens below 4K. It costs GPU time: about 2.25× the pixels at 1.5× and 4× at 2×.",
@@ -1429,7 +1475,106 @@
"trace.stopped_by_contact": "Ends at sample {sample}: {a} would pass through {b}",
"trace.stopped_by_loop": "Ends at sample {sample}: the loop through {joint} can't close any further",
"ui.1_degree_of_freedom": "1 degree of freedom",
"ui.3d_mouse_axes_reassigned": "Axes are reassigned in Preferences, and that still applies on top of this calibration.",
"ui.3d_mouse_button": "Button {number}",
"ui.3d_mouse_button_nothing": "Nothing",
"ui.3d_mouse_button_settings": "3D mouse settings",
"ui.3d_mouse_buttons": "Buttons",
"ui.3d_mouse_buttons_hint": "Press a button on your 3D mouse to find it here, then pick what it does.",
"ui.3d_mouse_buttons_no_device": "Connect a 3D mouse to set what its buttons do.",
"ui.3d_mouse_buttons_reset": "Restore default buttons",
"ui.3d_mouse_calibrate": "Calibrate…",
"ui.3d_mouse_calibrate_tip": "Move the cap as the window asks, so SolidCraft learns which way each axis of this 3D mouse goes and how far. Saved for this 3D mouse.",
"ui.3d_mouse_calibrate_title": "Calibrate 3D mouse",
"ui.3d_mouse_calibrate_wait": "Move the 3D mouse once so SolidCraft can see it.",
"ui.3d_mouse_calibrated": "Calibrated",
"ui.3d_mouse_calibration": "Calibration",
"ui.3d_mouse_calibration_done": "Done. Save it to use it whenever this 3D mouse is connected.",
"ui.3d_mouse_calibration_no_response": "One axis barely moved, so it can't be calibrated. Start over and move the cap further each time.",
"ui.3d_mouse_circles_help": "The circles show what the device sends, after calibration. The test model shows what the view does with it, after invert, speed and the axis assignment.",
"ui.3d_mouse_dead_zone": "Dead zone",
"ui.3d_mouse_dead_zone_tip": "How far the cap has to move before the view does, as a share of its full travel. Raise it if the view drifts while the cap is at rest.",
"ui.3d_mouse_denied": "SolidCraft can see a 3D mouse but isn't allowed to read it. See the 3D mouse setup notes for the udev rule.",
"ui.3d_mouse_denied_short": "Found, but not readable",
"ui.3d_mouse_driven_by": "Which calibrated motion of the device drives this axis. Picking a motion another axis already uses swaps the two.",
"ui.3d_mouse_driven_by_label": "driven by",
"ui.3d_mouse_driver": "Driver",
"ui.3d_mouse_driver_auto": "Automatic",
"ui.3d_mouse_driver_direct": "Direct (hidraw)",
"ui.3d_mouse_driver_fallback": "Reading through spacenavd for now: the device itself could not be opened.",
"ui.3d_mouse_driver_only_direct": "Reading the device directly; spacenavd is not running",
"ui.3d_mouse_driver_only_spacenavd": "Reading through spacenavd, the only way available",
"ui.3d_mouse_forget": "Forget calibration",
"ui.3d_mouse_ghost_left_viewport": "Left viewport",
"ui.3d_mouse_ghost_left_window": "Left window",
"ui.3d_mouse_ghost_position": "Position",
"ui.3d_mouse_ghost_right_viewport": "Right viewport",
"ui.3d_mouse_hint": "Move and rotate the view together; sketches use pan and zoom only.",
"ui.3d_mouse_kind_cap": "Return to Center",
"ui.3d_mouse_kind_question": "What kind of 3D mouse is it?",
"ui.3d_mouse_kind_trackball": "Trackball",
"ui.3d_mouse_looks_like_cap": "The reading stays put while you hold it, the way a Return to Center device does.",
"ui.3d_mouse_looks_like_trackball": "The reading keeps dropping back as soon as you stop moving, the way a trackball's does.",
"ui.3d_mouse_motion_rotation_x": "Rotation X",
"ui.3d_mouse_motion_rotation_y": "Rotation Y",
"ui.3d_mouse_motion_rotation_z": "Rotation Z",
"ui.3d_mouse_motion_translation_x": "Translation X",
"ui.3d_mouse_motion_translation_y": "Translation Y",
"ui.3d_mouse_motion_translation_z": "Translation Z",
"ui.3d_mouse_navigate": "Navigate with the 3D mouse",
"ui.3d_mouse_none": "No 3D mouse found",
"ui.3d_mouse_not_calibrated": "Not calibrated",
"ui.3d_mouse_offer": "Calibrating your 3D mouse fixes swapped or reversed axes and sets its speed and feel.",
"ui.3d_mouse_offer_never": "Never show again",
"ui.3d_mouse_offer_swap": "Swap to Hidraw (Direct Driver)",
"ui.3d_mouse_reading": "Reading",
"ui.3d_mouse_reset_axes": "Reset axis assignment",
"ui.3d_mouse_reset_view": "Reset view",
"ui.3d_mouse_restore": "Restore defaults",
"ui.3d_mouse_restore_ask": "Set the 3D mouse settings back to their defaults? Your calibration and button mapping stay.",
"ui.3d_mouse_section": "3D mouse",
"ui.3d_mouse_show_in_view": "Show the 3D mouse in the 3D view",
"ui.3d_mouse_show_in_view_tip": "A picture of your 3D mouse in the lower left corner, moving as you move it.",
"ui.3d_mouse_skip": "My device can't do this",
"ui.3d_mouse_skip_tip": "Skips this motion both ways, and the calibration leaves it out.",
"ui.3d_mouse_speed": "3D mouse speed",
"ui.3d_mouse_step_lift": "Lift the cap up, hold it, then let go.",
"ui.3d_mouse_step_press": "Press the cap down, hold it, then let go.",
"ui.3d_mouse_step_pull": "Pull the cap toward you, hold it, then let go.",
"ui.3d_mouse_step_push": "Push the cap away from you, hold it, then let go.",
"ui.3d_mouse_step_rest": "Take your hand off the cap and leave it still.",
"ui.3d_mouse_step_rest_trackball": "Take your hand off the ball and leave it still.",
"ui.3d_mouse_step_ring_clockwise": "Turn the scroll ring clockwise a few clicks.",
"ui.3d_mouse_step_ring_counterclockwise": "Turn the scroll ring anticlockwise a few clicks.",
"ui.3d_mouse_step_roll_away": "Roll the ball away from you a few times, then let it stop.",
"ui.3d_mouse_step_roll_left": "Roll the ball left a few times, then let it stop.",
"ui.3d_mouse_step_roll_right": "Roll the ball right a few times, then let it stop.",
"ui.3d_mouse_step_roll_toward": "Roll the ball toward you a few times, then let it stop.",
"ui.3d_mouse_step_slide_left": "Slide the cap left, hold it, then let go.",
"ui.3d_mouse_step_slide_right": "Slide the cap right, hold it, then let go.",
"ui.3d_mouse_step_spin_clockwise": "Spin the ball clockwise a few times, then let it stop.",
"ui.3d_mouse_step_spin_counterclockwise": "Spin the ball anticlockwise a few times, then let it stop.",
"ui.3d_mouse_step_tilt_away": "Tilt the top of the cap away from you (the edge nearest you goes up), hold it, then let go.",
"ui.3d_mouse_step_tilt_left": "Tilt the cap left (left edge down), hold it, then let go.",
"ui.3d_mouse_step_tilt_right": "Tilt the cap right (right edge down), hold it, then let go.",
"ui.3d_mouse_step_tilt_toward": "Tilt the top of the cap toward you (the edge nearest you goes down), hold it, then let go.",
"ui.3d_mouse_step_touch": "Rest your hand on the cap without pushing it.",
"ui.3d_mouse_step_twist_clockwise": "Twist the cap clockwise, hold it, then let go.",
"ui.3d_mouse_step_twist_counterclockwise": "Twist the cap anticlockwise, hold it, then let go.",
"ui.3d_mouse_switch_cap": "Calibrate as Return to Center",
"ui.3d_mouse_switch_trackball": "Calibrate as a trackball",
"ui.3d_mouse_view_axis": "View axis",
"ui.3d_mouse_view_off": "Off",
"ui.3d_mouse_view_off_tip": "The 3D mouse driver's profile turns this axis off, so its motion doesn't move the view. Picking another axis's motion here swaps the two, and that motion stops moving the view.",
"ui.3d_mouse_view_orbit_sideways": "Orbit Y",
"ui.3d_mouse_view_orbit_up_down": "Orbit X",
"ui.3d_mouse_view_pan_sideways": "Pan X",
"ui.3d_mouse_view_pan_up_down": "Pan Y",
"ui.3d_mouse_view_roll": "Roll",
"ui.3d_mouse_view_unmapped": "Axis {n}",
"ui.3d_mouse_view_zoom": "Zoom",
"ui.3d_mouse_waiting": "Waiting for Movement",
"ui.3d_mouse_wiggle": "If you have one plugged in, wiggle it.",
"ui.3d_sketch": "3D Sketch",
"ui.activate": "Activate",
"ui.active_component": "Active component",
@@ -1667,6 +1812,7 @@
"ui.blocked": "Blocked",
"ui.bodies": "Bodies",
"ui.bodies_all_if_none": "Bodies (all if none)",
"ui.bottom": "Bottom",
"ui.box": "Box",
"ui.break": "Break",
"ui.browser_bodies_one": "{count} body",
@@ -1792,6 +1938,8 @@
"ui.extract_design_changed": "The design changed while choosing a file. Start Extract to File again.",
"ui.extract_done": "The component is now its own design, linked here.",
"ui.extrude": "Extrude",
"ui.extrude_auto_to_object": "Extrude to a picked target",
"ui.extrude_auto_to_object_tip": "In Extrude, with a profile picked, picking a face, vertex or parallel plane off its plane switches the extent to To Object",
"ui.factor": "Factor",
"ui.feature_history": "Feature history",
"ui.feature_options": "Feature Options",
@@ -2047,6 +2195,9 @@
"ui.rectangle": "Rectangle",
"ui.rectangular_pattern": "Rectangular Pattern",
"ui.redo": "Redo",
"ui.reference_1": "Reference 1",
"ui.reference_2": "Reference 2",
"ui.reference_distance": "Reference distance",
"ui.relink_design_changed": "The assembly changed while choosing a source. Start Relink Source again.",
"ui.relink_done": "Source relinked for all instances.",
"ui.relink_not_linked": "This component is not linked to a source design.",
@@ -2096,6 +2247,12 @@
"ui.sent_to_slicer": "Sent to {slicer}",
"ui.sheet_gap": "Gap",
"ui.shell": "Shell",
"ui.shortcut_capture_add_key": "Add one ordinary key. Escape cancels.",
"ui.shortcut_capture_hint": "Click a binding, then press modifiers and one key. Add modifiers within one second; release all keys to confirm. Escape cancels.",
"ui.shortcut_capture_press": "Press modifiers and one key. Escape cancels.",
"ui.shortcut_capture_release": "Release all keys to confirm. Escape cancels.",
"ui.shortcut_capture_settling": "Confirming shortcut… Escape cancels.",
"ui.shortcut_multiple_keys": "Use modifiers and only one other key. Click the binding to try again.",
"ui.show": "Show",
"ui.showAll": "Show All",
"ui.showAllBodies": "Show All Bodies",
@@ -2125,59 +2282,6 @@
"ui.smooth_wheel_zoom": "Smooth wheel zoom",
"ui.smooth_wheel_zoom_tip": "Turn off to apply each wheel event immediately, without a smoothing tail",
"ui.snap": "Snap",
"ui.space_mouse_axes_reassigned": "Axes are reassigned in Preferences, and that still applies on top of this calibration.",
"ui.space_mouse_calibrate": "Calibrate…",
"ui.space_mouse_calibrate_tip": "Move the cap as the window asks, so SolidCraft learns which way each axis of this 3D mouse goes and how far. Saved for this 3D mouse.",
"ui.space_mouse_calibrate_title": "Calibrate 3D mouse",
"ui.space_mouse_calibrated": "Calibrated",
"ui.space_mouse_calibration": "3D mouse calibration",
"ui.space_mouse_calibration_done": "Done. Save it to use it whenever this 3D mouse is connected.",
"ui.space_mouse_calibration_no_response": "One axis barely moved, so it can't be calibrated. Start over and move the cap further each time.",
"ui.space_mouse_dead_zone": "Dead zone",
"ui.space_mouse_dead_zone_tip": "How far the cap has to move before the view does, as a share of its full travel. Raise it if the view drifts while the cap is at rest.",
"ui.space_mouse_driven_by": "Which calibrated motion of the device drives this axis. Picking a motion another axis already uses swaps the two.",
"ui.space_mouse_driven_by_label": "driven by",
"ui.space_mouse_driver": "3D mouse driver",
"ui.space_mouse_driver_auto": "Automatic",
"ui.space_mouse_driver_direct": "Direct (hidraw)",
"ui.space_mouse_driver_only_direct": "Reading the device directly; spacenavd is not running",
"ui.space_mouse_driver_only_spacenavd": "Reading through spacenavd, the only way available",
"ui.space_mouse_forget": "Forget calibration",
"ui.space_mouse_hint": "Move and rotate the view together; sketches use pan and zoom only.",
"ui.space_mouse_motion_rotation_x": "Rotation X",
"ui.space_mouse_motion_rotation_y": "Rotation Y",
"ui.space_mouse_motion_rotation_z": "Rotation Z",
"ui.space_mouse_motion_translation_x": "Translation X",
"ui.space_mouse_motion_translation_y": "Translation Y",
"ui.space_mouse_motion_translation_z": "Translation Z",
"ui.space_mouse_navigate": "Navigate with SpaceNavigator / SpaceMouse",
"ui.space_mouse_none": "No 3D mouse found",
"ui.space_mouse_not_calibrated": "Not calibrated",
"ui.space_mouse_reading": "Reading",
"ui.space_mouse_reset_axes": "Reset axis assignment",
"ui.space_mouse_step_lift": "Lift the cap up, hold it, then let go.",
"ui.space_mouse_step_press": "Press the cap down, hold it, then let go.",
"ui.space_mouse_step_pull": "Pull the cap toward you, hold it, then let go.",
"ui.space_mouse_step_push": "Push the cap away from you, hold it, then let go.",
"ui.space_mouse_step_rest": "Take your hand off the cap and leave it still.",
"ui.space_mouse_step_slide_left": "Slide the cap left, hold it, then let go.",
"ui.space_mouse_step_slide_right": "Slide the cap right, hold it, then let go.",
"ui.space_mouse_step_tilt_back": "Tilt the cap back (front edge up), hold it, then let go.",
"ui.space_mouse_step_tilt_forward": "Tilt the cap forward (front edge down), hold it, then let go.",
"ui.space_mouse_step_tilt_left": "Tilt the cap left (left edge down), hold it, then let go.",
"ui.space_mouse_step_tilt_right": "Tilt the cap right (right edge down), hold it, then let go.",
"ui.space_mouse_step_twist_clockwise": "Twist the cap clockwise, hold it, then let go.",
"ui.space_mouse_step_twist_counterclockwise": "Twist the cap anticlockwise, hold it, then let go.",
"ui.space_mouse_view_axis": "View axis",
"ui.space_mouse_view_off": "Off",
"ui.space_mouse_view_off_tip": "The 3D mouse driver's profile turns this axis off, so its motion doesn't move the view. Picking another axis's motion here swaps the two, and that motion stops moving the view.",
"ui.space_mouse_view_orbit_sideways": "Orbit left / right",
"ui.space_mouse_view_orbit_up_down": "Orbit up / down",
"ui.space_mouse_view_pan_sideways": "Pan left / right",
"ui.space_mouse_view_pan_up_down": "Pan up / down",
"ui.space_mouse_view_roll": "Roll",
"ui.space_mouse_view_unmapped": "Axis {n}",
"ui.space_mouse_view_zoom": "Zoom",
"ui.spacing": "Spacing",
"ui.spacing_2": "Spacing 2",
"ui.sphere": "Sphere",
@@ -2219,7 +2323,7 @@
"ui.top": "Top",
"ui.torus": "Torus",
"ui.total_angle": "Total angle",
"ui.trackpad_pan_tip": "Trackpad gestures pan (off: they zoom like the wheel); mouse wheel zooms, thumb wheel pans sideways, pinch always zooms",
"ui.trackpad_pan_tip": "Two-finger scroll pans; in Fusion, Shift + two fingers orbits. Off: scroll zooms. Mouse wheel and pinch zoom; thumb wheel pans sideways.",
"ui.trim": "Trim",
"ui.twist": "Twist",
"ui.two_finger_scroll_pans": "Two-finger scroll pans",
+122 -61
View File
@@ -39,7 +39,7 @@
"Assign Rule": "Asignar regla",
"Attachment": "Vinculación",
"BLEND SURFACE": "SUPERFICIE DE TRANSICIÓN",
"BOUNDARY SURFACE": "SUPERFICIE LÍMITE",
"BOUNDARY SURFACE": "SUPERFICIE DE CONTORNO",
"BROWSER": "EXPLORADOR",
"Bend Line Position": "Posición de la línea de plegado",
"Bend Position": "Posición del pliegue",
@@ -162,7 +162,7 @@
"From Bodies": "Desde cuerpos",
"From edges": "Aristas de origen",
"Full Length": "Longitud total",
"Gap": "Holgura",
"Gap": "Separación",
"Grid": "Cuadrícula",
"HISTORY": "HISTORIAL",
"Height": "Altura",
@@ -530,6 +530,10 @@
"cmd.file_insert_step": "Insertar STEP",
"cmd.file_save_mesh": "Guardar como malla",
"cmd.file_slicers": "Laminadores instalados",
"cmd.frame_member": "Miembro estructural",
"cmd.frame_profile_insert": "Insertar perfil",
"cmd.frame_profile_list": "Biblioteca de perfiles",
"cmd.frame_profile_properties": "Propiedades del perfil",
"cmd.inspect_accessibility": "Análisis de accesibilidad",
"cmd.inspect_center_of_mass": "Centro de masas",
"cmd.inspect_clearance": "Holgura",
@@ -680,7 +684,7 @@
"cmd.sketch_line3d": "Línea 3D",
"cmd.sketch_line_midpoint": "Línea por punto medio",
"cmd.sketch_loose_ends": "Extremos sueltos",
"cmd.sketch_loose_ends_tie": "Unir extremos sueltos",
"cmd.sketch_loose_ends_tie": "Vincular extremos sueltos",
"cmd.sketch_move": "Mover/copiar entidades de boceto",
"cmd.sketch_move3d": "Mover punto 3D",
"cmd.sketch_move_point": "Arrastrar punto de boceto",
@@ -856,6 +860,12 @@
"help.licences": "Licencias",
"help.mit": "Licencia MIT",
"help.notice": "NOTICE",
"help.solid.chamfer": "Corta las aristas seleccionadas con un chaflán plano de la distancia que indiques. Úsalo para romper aristas vivas o para facilitar la entrada de un pasador o un tornillo.",
"help.solid.extrude": "Empuja un perfil de boceto hacia el 3D a lo largo de una distancia, añadiendo o quitando material. Úsalo para convertir un contorno plano en un bloque, un saliente o una cavidad.",
"help.solid.fillet": "Redondea las aristas seleccionadas con una transición circular suave del radio que indiques. Úsalo para suavizar aristas vivas por resistencia, comodidad o aspecto.",
"help.solid.hole": "Perfora un agujero redondo del diámetro que indiques en un punto elegido de una cara. Úsalo para holguras de tornillos, pasadores y otras aberturas redondas sencillas.",
"help.solid.revolve": "Gira un perfil de boceto alrededor de un eje para crear un sólido de revolución. Úsalo para ejes, pomos, cuencos y cualquier otra pieza de revolución.",
"help.solid.shell": "Vacía un sólido y deja paredes del grosor que indiques; además, puede abrir las caras que elijas. Úsalo para cajas, tapas y otras piezas de paredes finas.",
"help.third_party": "Licencias de terceros",
"home.back": "Volver a {name}",
"home.crashes": "Informes de fallos",
@@ -1066,6 +1076,8 @@
"settings.msaa_applies_on_restart": "El suavizado de bordes se aplicará la próxima vez que se inicie SolidCraft",
"settings.msaa_reset": "{setting}: este dispositivo gráfico no admite {requested}×; se ha establecido {reset}× (admitidos: {supported}).",
"settings.msaa_unsupported": "No compatible con este dispositivo gráfico",
"settings.reference_geometry_through_bodies": "Mostrar geometría de referencia a través de los cuerpos",
"settings.reference_geometry_through_bodies_help": "Dibujar los contornos de bocetos inactivos y los planos de referencia sobre los cuerpos sombreados",
"settings.reset_intro": "Estos ajustes no funcionan en este ordenador e impedirían iniciar SolidCraft, por lo que se han cambiado:",
"settings.reset_title": "Se han cambiado los ajustes",
"settings.supersampling_note": "Dibuja la vista a mayor resolución y después la reduce: bordes, líneas y cuadrícula más suaves en pantallas inferiores a 4K. Consume recursos de GPU: unos 2,25× píxeles a 1,5× y 4× a 2×.",
@@ -1079,7 +1091,7 @@
"sketch.draw_curves": "Dibujar como {linetype}",
"sketch.make_selection": "Convertir la selección a {linetype}",
"sketch.open_ends": "Abiertos {count}",
"sketch.untied_ends": "Sin unir {count}",
"sketch.untied_ends": "Sin vincular {count}",
"sketch_panel.attached": "Vinculado a {body} / {path}",
"sketch_panel.author": "Ubicación de autoría: {path}",
"sketch_panel.dimension_hint": "Introduzca un valor o una expresión y pulse Aceptar.",
@@ -1121,7 +1133,106 @@
"trace.stopped_by_contact": "Termina en la muestra {sample}: {a} atravesaría {b}",
"trace.stopped_by_loop": "Termina en la muestra {sample}: el bucle que pasa por {joint} no puede cerrarse más",
"ui.1_degree_of_freedom": "1 grado de libertad",
"ui.3d_mouse_axes_reassigned": "Los ejes están reasignados en Preferencias, y eso sigue aplicándose sobre esta calibración.",
"ui.3d_mouse_button": "Botón {number}",
"ui.3d_mouse_button_nothing": "Nada",
"ui.3d_mouse_button_settings": "Ajustes del ratón 3D",
"ui.3d_mouse_buttons": "Botones",
"ui.3d_mouse_buttons_hint": "Pulsa un botón de tu ratón 3D para encontrarlo aquí y elige qué hace.",
"ui.3d_mouse_buttons_no_device": "Conecta un ratón 3D para elegir qué hacen sus botones.",
"ui.3d_mouse_buttons_reset": "Restaurar los botones predeterminados",
"ui.3d_mouse_calibrate": "Calibrar…",
"ui.3d_mouse_calibrate_tip": "Mueve el capuchón como pide la ventana para que SolidCraft aprenda hacia dónde y hasta dónde va cada eje de este ratón 3D. Se guarda para este ratón 3D.",
"ui.3d_mouse_calibrate_title": "Calibrar ratón 3D",
"ui.3d_mouse_calibrate_wait": "Mueve el ratón 3D una vez para que SolidCraft lo vea.",
"ui.3d_mouse_calibrated": "Calibrado",
"ui.3d_mouse_calibration": "Calibración del ratón 3D",
"ui.3d_mouse_calibration_done": "Listo. Guárdala para usarla siempre que este ratón 3D esté conectado.",
"ui.3d_mouse_calibration_no_response": "Un eje apenas se movió, así que no se puede calibrar. Vuelve a empezar y mueve el capuchón más lejos cada vez.",
"ui.3d_mouse_circles_help": "Los círculos muestran lo que envía el dispositivo tras la calibración. El modelo de prueba muestra lo que hace la vista con ello, tras la inversión, la velocidad y la asignación de ejes.",
"ui.3d_mouse_dead_zone": "Zona muerta",
"ui.3d_mouse_dead_zone_tip": "Cuánto tiene que moverse el capuchón antes de que se mueva la vista, como parte de su recorrido completo. Auméntala si la vista se desplaza con el capuchón en reposo.",
"ui.3d_mouse_denied": "SolidCraft ve un ratón 3D, pero no tiene permiso para leerlo. La regla udev está en las notas de configuración del ratón 3D.",
"ui.3d_mouse_denied_short": "Encontrado, pero no se puede leer",
"ui.3d_mouse_driven_by": "Qué movimiento calibrado del dispositivo controla este eje. Si eliges uno que ya usa otro eje, se intercambian.",
"ui.3d_mouse_driven_by_label": "controlado por",
"ui.3d_mouse_driver": "Controlador del ratón 3D",
"ui.3d_mouse_driver_auto": "Automático",
"ui.3d_mouse_driver_direct": "Directo (hidraw)",
"ui.3d_mouse_driver_fallback": "Leyendo por ahora a través de spacenavd: no se pudo abrir el dispositivo.",
"ui.3d_mouse_driver_only_direct": "Lectura directa del dispositivo; spacenavd no se está ejecutando",
"ui.3d_mouse_driver_only_spacenavd": "Lectura mediante spacenavd, la única opción disponible",
"ui.3d_mouse_forget": "Olvidar calibración",
"ui.3d_mouse_ghost_left_viewport": "Vista izquierda",
"ui.3d_mouse_ghost_left_window": "Ventana izquierda",
"ui.3d_mouse_ghost_position": "Posición",
"ui.3d_mouse_ghost_right_viewport": "Vista derecha",
"ui.3d_mouse_hint": "Desplaza y gira la vista a la vez; los bocetos solo permiten desplazamiento y zoom.",
"ui.3d_mouse_kind_cap": "Retorno al centro",
"ui.3d_mouse_kind_question": "¿Qué tipo de ratón 3D es?",
"ui.3d_mouse_kind_trackball": "Trackball",
"ui.3d_mouse_looks_like_cap": "La lectura se mantiene mientras sujetas, como en un dispositivo de tipo «Retorno al centro».",
"ui.3d_mouse_looks_like_trackball": "La lectura vuelve atrás en cuanto dejas de moverte, como en un trackball.",
"ui.3d_mouse_motion_rotation_x": "Rotación X",
"ui.3d_mouse_motion_rotation_y": "Rotación Y",
"ui.3d_mouse_motion_rotation_z": "Rotación Z",
"ui.3d_mouse_motion_translation_x": "Traslación X",
"ui.3d_mouse_motion_translation_y": "Traslación Y",
"ui.3d_mouse_motion_translation_z": "Traslación Z",
"ui.3d_mouse_navigate": "Navegar con el ratón 3D",
"ui.3d_mouse_none": "No se encontró ningún ratón 3D",
"ui.3d_mouse_not_calibrated": "Sin calibrar",
"ui.3d_mouse_offer": "Calibrar tu ratón 3D corrige los ejes intercambiados o invertidos y ajusta su velocidad y sensación.",
"ui.3d_mouse_offer_never": "No volver a mostrar",
"ui.3d_mouse_offer_swap": "Cambiar a Hidraw (controlador directo)",
"ui.3d_mouse_reading": "Lectura",
"ui.3d_mouse_reset_axes": "Restablecer asignación de ejes",
"ui.3d_mouse_reset_view": "Restablecer vista",
"ui.3d_mouse_restore": "Restablecer valores del ratón 3D",
"ui.3d_mouse_restore_ask": "¿Volver a los valores predeterminados de la configuración del ratón 3D? La calibración y la asignación de botones se mantienen.",
"ui.3d_mouse_section": "Ratón 3D",
"ui.3d_mouse_show_in_view": "Mostrar el ratón 3D en la vista 3D",
"ui.3d_mouse_show_in_view_tip": "Una imagen de tu ratón 3D en la esquina inferior izquierda que se mueve cuando lo mueves.",
"ui.3d_mouse_skip": "Mi dispositivo no puede hacer esto",
"ui.3d_mouse_skip_tip": "Omite este movimiento en ambos sentidos; la calibración lo deja fuera.",
"ui.3d_mouse_speed": "Velocidad del ratón 3D",
"ui.3d_mouse_step_lift": "Levanta el capuchón, mantenlo y suéltalo.",
"ui.3d_mouse_step_press": "Presiona el capuchón hacia abajo, mantenlo y suéltalo.",
"ui.3d_mouse_step_pull": "Tira del capuchón hacia ti, mantenlo y suéltalo.",
"ui.3d_mouse_step_push": "Empuja el capuchón lejos de ti, mantenlo y suéltalo.",
"ui.3d_mouse_step_rest": "Suelta el capuchón y déjalo quieto.",
"ui.3d_mouse_step_rest_trackball": "Suelta la bola y déjala quieta.",
"ui.3d_mouse_step_ring_clockwise": "Gira el anillo de desplazamiento unos clics en sentido horario.",
"ui.3d_mouse_step_ring_counterclockwise": "Gira el anillo de desplazamiento unos clics en sentido antihorario.",
"ui.3d_mouse_step_roll_away": "Haz rodar la bola alejándola de ti unas cuantas veces y deja que se pare.",
"ui.3d_mouse_step_roll_left": "Haz rodar la bola a la izquierda unas cuantas veces y deja que se pare.",
"ui.3d_mouse_step_roll_right": "Haz rodar la bola a la derecha unas cuantas veces y deja que se pare.",
"ui.3d_mouse_step_roll_toward": "Haz rodar la bola hacia ti unas cuantas veces y deja que se pare.",
"ui.3d_mouse_step_slide_left": "Desliza el capuchón a la izquierda, mantenlo y suéltalo.",
"ui.3d_mouse_step_slide_right": "Desliza el capuchón a la derecha, mantenlo y suéltalo.",
"ui.3d_mouse_step_spin_clockwise": "Gira la bola en sentido horario unas cuantas veces y deja que se pare.",
"ui.3d_mouse_step_spin_counterclockwise": "Gira la bola en sentido antihorario unas cuantas veces y deja que se pare.",
"ui.3d_mouse_step_tilt_away": "Inclina la parte de arriba del capuchón alejándola de ti (el borde más cercano sube), mantenlo y suéltalo.",
"ui.3d_mouse_step_tilt_left": "Inclina el capuchón a la izquierda (borde izquierdo abajo), mantenlo y suéltalo.",
"ui.3d_mouse_step_tilt_right": "Inclina el capuchón a la derecha (borde derecho abajo), mantenlo y suéltalo.",
"ui.3d_mouse_step_tilt_toward": "Inclina la parte de arriba del capuchón hacia ti (el borde más cercano baja), mantenlo y suéltalo.",
"ui.3d_mouse_step_touch": "Apoya la mano en el capuchón sin empujarlo.",
"ui.3d_mouse_step_twist_clockwise": "Gira el capuchón en sentido horario, mantenlo y suéltalo.",
"ui.3d_mouse_step_twist_counterclockwise": "Gira el capuchón en sentido antihorario, mantenlo y suéltalo.",
"ui.3d_mouse_switch_cap": "Calibrar como retorno al centro",
"ui.3d_mouse_switch_trackball": "Calibrar como trackball",
"ui.3d_mouse_view_axis": "Eje de la vista",
"ui.3d_mouse_view_off": "Desactivado",
"ui.3d_mouse_view_off_tip": "El perfil del controlador del ratón 3D desactiva este eje, así que su movimiento no mueve la vista. Si eliges aquí el movimiento de otro eje, se intercambian y ese movimiento deja de mover la vista.",
"ui.3d_mouse_view_orbit_sideways": "Orbitar izquierda / derecha",
"ui.3d_mouse_view_orbit_up_down": "Orbitar arriba / abajo",
"ui.3d_mouse_view_pan_sideways": "Desplazar izquierda / derecha",
"ui.3d_mouse_view_pan_up_down": "Desplazar arriba / abajo",
"ui.3d_mouse_view_roll": "Girar sobre la vista",
"ui.3d_mouse_view_unmapped": "Eje {n}",
"ui.3d_mouse_view_zoom": "Zoom",
"ui.3d_mouse_waiting": "Esperando movimiento",
"ui.3d_mouse_wiggle": "Si tienes uno conectado, muévelo un poco.",
"ui.3d_sketch": "Boceto 3D",
"ui.activate": "Activar",
"ui.active_component": "Componente activo",
@@ -1251,6 +1362,8 @@
"ui.agent_chat_waiting": "Esperando tu respuesta",
"ui.agent_cursor": "Cursor del agente",
"ui.agent_cursor_speed": "Velocidad del cursor del agente",
"ui.agent_off_thread": "Mantener la ventana activa mientras los agentes ejecutan comandos",
"ui.agent_off_thread_note": "Los comandos lentos de un agente (desde el panel de IA o un cliente MCP) se calculan al margen de la ventana: puedes seguir girando e inspeccionando el visor y detener uno desde el botón del visor. Desactivado: cada comando se ejecuta en el hilo de la ventana y la ventana espera a que termine.",
"ui.ai_add": "Añadir",
"ui.ai_add_agent": "Añadir agente…",
"ui.ai_add_agent_title": "Añadir agente",
@@ -1324,8 +1437,8 @@
"ui.ai_tool_running": "en ejecución",
"ui.ai_tool_unfold": "Haz clic para ver el resultado",
"ui.ai_tool_waiting": "en espera",
"ui.ai_toolbar_button": "Mostrar botón en la barra de herramientas",
"ui.ai_toolbar_button_note": "El botón IA situado al extremo derecho de la barra. Ctrl+Mayús+A y el menú Ver también abren el panel.",
"ui.ai_toolbar_button": "Mostrar el botón Asistente en la barra de la aplicación",
"ui.ai_toolbar_button_note": "El botón Asistente de la barra de la aplicación. Ctrl+Mayús+A y el menú Ver también abren el panel.",
"ui.ai_undo_tip": "Deshacer todos los cambios del agente en este mensaje, en un solo paso",
"ui.ai_url_hint": "https://example.com/v1",
"ui.all": "Todo",
@@ -1351,6 +1464,7 @@
"ui.blocked": "Bloqueado",
"ui.bodies": "Cuerpos",
"ui.bodies_all_if_none": "Cuerpos (todos si no hay ninguno)",
"ui.bottom": "Inferior",
"ui.box": "Caja",
"ui.break": "Romper",
"ui.browser_bodies_one": "{count} cuerpo",
@@ -1794,59 +1908,6 @@
"ui.smooth_wheel_zoom": "Zoom suave con la rueda",
"ui.smooth_wheel_zoom_tip": "Desactívalo para aplicar cada movimiento de la rueda inmediatamente, sin suavizado posterior",
"ui.snap": "Referencia a objetos",
"ui.space_mouse_axes_reassigned": "Los ejes están reasignados en Preferencias, y eso sigue aplicándose sobre esta calibración.",
"ui.space_mouse_calibrate": "Calibrar…",
"ui.space_mouse_calibrate_tip": "Mueve el capuchón como pide la ventana para que SolidCraft aprenda hacia dónde y hasta dónde va cada eje de este ratón 3D. Se guarda para este ratón 3D.",
"ui.space_mouse_calibrate_title": "Calibrar ratón 3D",
"ui.space_mouse_calibrated": "Calibrado",
"ui.space_mouse_calibration": "Calibración del ratón 3D",
"ui.space_mouse_calibration_done": "Listo. Guárdala para usarla siempre que este ratón 3D esté conectado.",
"ui.space_mouse_calibration_no_response": "Un eje apenas se movió, así que no se puede calibrar. Vuelve a empezar y mueve el capuchón más lejos cada vez.",
"ui.space_mouse_dead_zone": "Zona muerta",
"ui.space_mouse_dead_zone_tip": "Cuánto tiene que moverse el capuchón antes de que se mueva la vista, como parte de su recorrido completo. Auméntala si la vista se desplaza con el capuchón en reposo.",
"ui.space_mouse_driven_by": "Qué movimiento calibrado del dispositivo controla este eje. Si eliges uno que ya usa otro eje, se intercambian.",
"ui.space_mouse_driven_by_label": "controlado por",
"ui.space_mouse_driver": "Controlador del ratón 3D",
"ui.space_mouse_driver_auto": "Automático",
"ui.space_mouse_driver_direct": "Directo (hidraw)",
"ui.space_mouse_driver_only_direct": "Lectura directa del dispositivo; spacenavd no se está ejecutando",
"ui.space_mouse_driver_only_spacenavd": "Lectura mediante spacenavd, la única opción disponible",
"ui.space_mouse_forget": "Olvidar calibración",
"ui.space_mouse_hint": "Desplaza y gira la vista a la vez; los bocetos solo permiten desplazamiento y zoom.",
"ui.space_mouse_motion_rotation_x": "Rotación X",
"ui.space_mouse_motion_rotation_y": "Rotación Y",
"ui.space_mouse_motion_rotation_z": "Rotación Z",
"ui.space_mouse_motion_translation_x": "Traslación X",
"ui.space_mouse_motion_translation_y": "Traslación Y",
"ui.space_mouse_motion_translation_z": "Traslación Z",
"ui.space_mouse_navigate": "Navegar con SpaceNavigator / SpaceMouse",
"ui.space_mouse_none": "No se encontró ningún ratón 3D",
"ui.space_mouse_not_calibrated": "Sin calibrar",
"ui.space_mouse_reading": "Lectura",
"ui.space_mouse_reset_axes": "Restablecer asignación de ejes",
"ui.space_mouse_step_lift": "Levanta el capuchón, mantenlo y suéltalo.",
"ui.space_mouse_step_press": "Presiona el capuchón hacia abajo, mantenlo y suéltalo.",
"ui.space_mouse_step_pull": "Tira del capuchón hacia ti, mantenlo y suéltalo.",
"ui.space_mouse_step_push": "Empuja el capuchón lejos de ti, mantenlo y suéltalo.",
"ui.space_mouse_step_rest": "Suelta el capuchón y déjalo quieto.",
"ui.space_mouse_step_slide_left": "Desliza el capuchón a la izquierda, mantenlo y suéltalo.",
"ui.space_mouse_step_slide_right": "Desliza el capuchón a la derecha, mantenlo y suéltalo.",
"ui.space_mouse_step_tilt_back": "Inclina el capuchón hacia atrás (borde delantero arriba), mantenlo y suéltalo.",
"ui.space_mouse_step_tilt_forward": "Inclina el capuchón hacia delante (borde delantero abajo), mantenlo y suéltalo.",
"ui.space_mouse_step_tilt_left": "Inclina el capuchón a la izquierda (borde izquierdo abajo), mantenlo y suéltalo.",
"ui.space_mouse_step_tilt_right": "Inclina el capuchón a la derecha (borde derecho abajo), mantenlo y suéltalo.",
"ui.space_mouse_step_twist_clockwise": "Gira el capuchón en sentido horario, mantenlo y suéltalo.",
"ui.space_mouse_step_twist_counterclockwise": "Gira el capuchón en sentido antihorario, mantenlo y suéltalo.",
"ui.space_mouse_view_axis": "Eje de la vista",
"ui.space_mouse_view_off": "Desactivado",
"ui.space_mouse_view_off_tip": "El perfil del controlador del ratón 3D desactiva este eje, así que su movimiento no mueve la vista. Si eliges aquí el movimiento de otro eje, se intercambian y ese movimiento deja de mover la vista.",
"ui.space_mouse_view_orbit_sideways": "Orbitar izquierda / derecha",
"ui.space_mouse_view_orbit_up_down": "Orbitar arriba / abajo",
"ui.space_mouse_view_pan_sideways": "Desplazar izquierda / derecha",
"ui.space_mouse_view_pan_up_down": "Desplazar arriba / abajo",
"ui.space_mouse_view_roll": "Girar sobre la vista",
"ui.space_mouse_view_unmapped": "Eje {n}",
"ui.space_mouse_view_zoom": "Zoom",
"ui.spacing": "Espaciado",
"ui.spacing_2": "Espaciado 2",
"ui.sphere": "Esfera",
@@ -1877,8 +1938,8 @@
"ui.theme": "Tema",
"ui.thickness": "Espesor",
"ui.thread": "Rosca",
"ui.tie_ends": "Unir",
"ui.tie_ends_tip": "Restringir todos los extremos sin unir",
"ui.tie_ends": "Vincular",
"ui.tie_ends_tip": "Restringe todos los extremos sin vincular",
"ui.timeline_bottom": "Línea de tiempo inferior",
"ui.timeline_left_note": "La disposición izquierda muestra la barra de retroceso encima del explorador de piezas y escenas.",
"ui.timeline_left_sidebar": "Barra lateral izquierda",
+106 -53
View File
@@ -530,6 +530,10 @@
"cmd.file_insert_step": "Insérer un STEP",
"cmd.file_save_mesh": "Enregistrer comme maillage",
"cmd.file_slicers": "Slicers installés",
"cmd.frame_member": "Élément de structure",
"cmd.frame_profile_insert": "Insérer un profilé",
"cmd.frame_profile_list": "Bibliothèque de profilés",
"cmd.frame_profile_properties": "Propriétés du profilé",
"cmd.inspect_accessibility": "Analyse d'accessibilité",
"cmd.inspect_center_of_mass": "Centre de gravité",
"cmd.inspect_clearance": "Jeu",
@@ -1072,6 +1076,8 @@
"settings.msaa_applies_on_restart": "L'anticrénelage s'appliquera au prochain démarrage de SolidCraft",
"settings.msaa_reset": "{setting} : {requested}× n'est pas pris en charge par ce périphérique graphique ; la valeur est désormais {reset}× (pris en charge : {supported}).",
"settings.msaa_unsupported": "Non pris en charge par ce périphérique graphique",
"settings.reference_geometry_through_bodies": "Afficher la géométrie de référence à travers les corps",
"settings.reference_geometry_through_bodies_help": "Afficher les contours des esquisses inactives et les plans de référence par-dessus les corps ombrés",
"settings.reset_intro": "Ces réglages ne fonctionnent pas sur cet ordinateur et empêcheraient SolidCraft de démarrer ; ils ont donc été modifiés :",
"settings.reset_title": "Des réglages ont été modifiés",
"settings.supersampling_note": "Dessine la vue à une résolution plus élevée puis la réduit : arêtes, lignes et grille plus lisses sur les écrans de définition inférieure à la 4K. Cela coûte du temps GPU : environ 2,25× plus de pixels à 1,5× et 4× plus à 2×.",
@@ -1127,7 +1133,106 @@
"trace.stopped_by_contact": "Se termine à l'échantillon {sample} : {a} traverserait {b}",
"trace.stopped_by_loop": "Se termine à l'échantillon {sample} : la boucle passant par {joint} ne peut plus se fermer",
"ui.1_degree_of_freedom": "1 degré de liberté",
"ui.3d_mouse_axes_reassigned": "Les axes sont réattribués dans les Préférences, et cela s'applique toujours en plus de ce calibrage.",
"ui.3d_mouse_button": "Bouton {number}",
"ui.3d_mouse_button_nothing": "Rien",
"ui.3d_mouse_button_settings": "Réglages de la souris 3D",
"ui.3d_mouse_buttons": "Boutons",
"ui.3d_mouse_buttons_hint": "Appuyez sur un bouton de votre souris 3D pour le trouver ici, puis choisissez ce qu'il fait.",
"ui.3d_mouse_buttons_no_device": "Branchez une souris 3D pour choisir ce que font ses boutons.",
"ui.3d_mouse_buttons_reset": "Rétablir les boutons par défaut",
"ui.3d_mouse_calibrate": "Calibrer…",
"ui.3d_mouse_calibrate_tip": "Déplacez le capuchon comme la fenêtre le demande, pour que SolidCraft apprenne dans quel sens et jusqu'où va chaque axe de cette souris 3D. Enregistré pour cette souris 3D.",
"ui.3d_mouse_calibrate_title": "Calibrer la souris 3D",
"ui.3d_mouse_calibrate_wait": "Bougez la souris 3D une fois pour que SolidCraft la voie.",
"ui.3d_mouse_calibrated": "Calibrée",
"ui.3d_mouse_calibration": "Calibrage de la souris 3D",
"ui.3d_mouse_calibration_done": "Terminé. Enregistrez-le pour l'utiliser chaque fois que cette souris 3D est connectée.",
"ui.3d_mouse_calibration_no_response": "Un axe a à peine bougé, il ne peut donc pas être calibré. Recommencez en déplaçant le capuchon plus loin à chaque fois.",
"ui.3d_mouse_circles_help": "Les cercles montrent ce que l'appareil envoie après calibrage. Le modèle d'essai montre ce que la vue en fait, après inversion, vitesse et affectation des axes.",
"ui.3d_mouse_dead_zone": "Zone morte",
"ui.3d_mouse_dead_zone_tip": "De combien le capuchon doit bouger avant que la vue ne bouge, en part de sa course complète. Augmentez-la si la vue dérive alors que le capuchon est au repos.",
"ui.3d_mouse_denied": "SolidCraft voit une souris 3D mais n'a pas le droit de la lire. La règle udev est dans les notes d'installation de la souris 3D.",
"ui.3d_mouse_denied_short": "Trouvée, mais illisible",
"ui.3d_mouse_driven_by": "Quel mouvement calibré de l'appareil pilote cet axe. Choisir un mouvement déjà utilisé par un autre axe les échange.",
"ui.3d_mouse_driven_by_label": "piloté par",
"ui.3d_mouse_driver": "Pilote de la souris 3D",
"ui.3d_mouse_driver_auto": "Automatique",
"ui.3d_mouse_driver_direct": "Direct (hidraw)",
"ui.3d_mouse_driver_fallback": "Lecture via spacenavd pour l'instant : l'appareil lui-même n'a pas pu être ouvert.",
"ui.3d_mouse_driver_only_direct": "Lecture directe du périphérique ; spacenavd n'est pas lancé",
"ui.3d_mouse_driver_only_spacenavd": "Lecture via spacenavd, seule possibilité disponible",
"ui.3d_mouse_forget": "Oublier le calibrage",
"ui.3d_mouse_ghost_left_viewport": "Vue à gauche",
"ui.3d_mouse_ghost_left_window": "Fenêtre à gauche",
"ui.3d_mouse_ghost_position": "Position",
"ui.3d_mouse_ghost_right_viewport": "Vue à droite",
"ui.3d_mouse_hint": "Déplace et fait pivoter la vue en même temps ; dans les esquisses, seuls le panoramique et le zoom sont utilisés.",
"ui.3d_mouse_kind_cap": "Retour au centre",
"ui.3d_mouse_kind_question": "Quel type de souris 3D est-ce ?",
"ui.3d_mouse_kind_trackball": "Trackball",
"ui.3d_mouse_looks_like_cap": "La valeur reste tant que vous maintenez, comme sur un appareil de type « Retour au centre ».",
"ui.3d_mouse_looks_like_trackball": "La valeur retombe dès que vous arrêtez de bouger, comme sur un trackball.",
"ui.3d_mouse_motion_rotation_x": "Rotation X",
"ui.3d_mouse_motion_rotation_y": "Rotation Y",
"ui.3d_mouse_motion_rotation_z": "Rotation Z",
"ui.3d_mouse_motion_translation_x": "Translation X",
"ui.3d_mouse_motion_translation_y": "Translation Y",
"ui.3d_mouse_motion_translation_z": "Translation Z",
"ui.3d_mouse_navigate": "Naviguer avec la souris 3D",
"ui.3d_mouse_none": "Aucune souris 3D trouvée",
"ui.3d_mouse_not_calibrated": "Non calibrée",
"ui.3d_mouse_offer": "Calibrer votre souris 3D corrige les axes échangés ou inversés et règle sa vitesse et sa sensation.",
"ui.3d_mouse_offer_never": "Ne plus afficher",
"ui.3d_mouse_offer_swap": "Passer à Hidraw (pilote direct)",
"ui.3d_mouse_reading": "Lecture",
"ui.3d_mouse_reset_axes": "Réinitialiser l'attribution des axes",
"ui.3d_mouse_reset_view": "Réinitialiser la vue",
"ui.3d_mouse_restore": "Rétablir les réglages de la souris 3D",
"ui.3d_mouse_restore_ask": "Remettre les réglages de la souris 3D par défaut ? Votre calibrage et l'assignation des boutons sont conservés.",
"ui.3d_mouse_section": "Souris 3D",
"ui.3d_mouse_show_in_view": "Afficher la souris 3D dans la vue 3D",
"ui.3d_mouse_show_in_view_tip": "Une image de votre souris 3D dans le coin inférieur gauche, qui bouge quand vous la bougez.",
"ui.3d_mouse_skip": "Mon appareil ne peut pas le faire",
"ui.3d_mouse_skip_tip": "Ignore ce mouvement dans les deux sens ; la calibration le laisse de côté.",
"ui.3d_mouse_speed": "Vitesse de la souris 3D",
"ui.3d_mouse_step_lift": "Soulevez le capuchon, maintenez, puis relâchez.",
"ui.3d_mouse_step_press": "Appuyez sur le capuchon, maintenez, puis relâchez.",
"ui.3d_mouse_step_pull": "Tirez le capuchon vers vous, maintenez, puis relâchez.",
"ui.3d_mouse_step_push": "Poussez le capuchon loin de vous, maintenez, puis relâchez.",
"ui.3d_mouse_step_rest": "Lâchez le capuchon et laissez-le immobile.",
"ui.3d_mouse_step_rest_trackball": "Lâchez la boule et laissez-la immobile.",
"ui.3d_mouse_step_ring_clockwise": "Tournez l'anneau de défilement de quelques crans dans le sens horaire.",
"ui.3d_mouse_step_ring_counterclockwise": "Tournez l'anneau de défilement de quelques crans dans le sens antihoraire.",
"ui.3d_mouse_step_roll_away": "Faites rouler la boule loin de vous plusieurs fois, puis laissez-la s'arrêter.",
"ui.3d_mouse_step_roll_left": "Faites rouler la boule vers la gauche plusieurs fois, puis laissez-la s'arrêter.",
"ui.3d_mouse_step_roll_right": "Faites rouler la boule vers la droite plusieurs fois, puis laissez-la s'arrêter.",
"ui.3d_mouse_step_roll_toward": "Faites rouler la boule vers vous plusieurs fois, puis laissez-la s'arrêter.",
"ui.3d_mouse_step_slide_left": "Glissez le capuchon vers la gauche, maintenez, puis relâchez.",
"ui.3d_mouse_step_slide_right": "Glissez le capuchon vers la droite, maintenez, puis relâchez.",
"ui.3d_mouse_step_spin_clockwise": "Faites tourner la boule dans le sens horaire plusieurs fois, puis laissez-la s'arrêter.",
"ui.3d_mouse_step_spin_counterclockwise": "Faites tourner la boule dans le sens antihoraire plusieurs fois, puis laissez-la s'arrêter.",
"ui.3d_mouse_step_tilt_away": "Inclinez le haut du capuchon loin de vous (le bord le plus proche monte), maintenez, puis relâchez.",
"ui.3d_mouse_step_tilt_left": "Inclinez le capuchon vers la gauche (bord gauche vers le bas), maintenez, puis relâchez.",
"ui.3d_mouse_step_tilt_right": "Inclinez le capuchon vers la droite (bord droit vers le bas), maintenez, puis relâchez.",
"ui.3d_mouse_step_tilt_toward": "Inclinez le haut du capuchon vers vous (le bord le plus proche descend), maintenez, puis relâchez.",
"ui.3d_mouse_step_touch": "Posez la main sur le capuchon sans le pousser.",
"ui.3d_mouse_step_twist_clockwise": "Tournez le capuchon dans le sens horaire, maintenez, puis relâchez.",
"ui.3d_mouse_step_twist_counterclockwise": "Tournez le capuchon dans le sens antihoraire, maintenez, puis relâchez.",
"ui.3d_mouse_switch_cap": "Calibrer comme retour au centre",
"ui.3d_mouse_switch_trackball": "Calibrer comme un trackball",
"ui.3d_mouse_view_axis": "Axe de la vue",
"ui.3d_mouse_view_off": "Désactivé",
"ui.3d_mouse_view_off_tip": "Le profil du pilote de la souris 3D désactive cet axe : son mouvement ne déplace pas la vue. Choisir ici le mouvement d'un autre axe les échange, et ce mouvement cesse de déplacer la vue.",
"ui.3d_mouse_view_orbit_sideways": "Orbite gauche / droite",
"ui.3d_mouse_view_orbit_up_down": "Orbite haut / bas",
"ui.3d_mouse_view_pan_sideways": "Panoramique gauche / droite",
"ui.3d_mouse_view_pan_up_down": "Panoramique haut / bas",
"ui.3d_mouse_view_roll": "Roulis",
"ui.3d_mouse_view_unmapped": "Axe {n}",
"ui.3d_mouse_view_zoom": "Zoom",
"ui.3d_mouse_waiting": "En attente de mouvement",
"ui.3d_mouse_wiggle": "Si vous en avez une de branchée, remuez-la.",
"ui.3d_sketch": "Esquisse 3D",
"ui.activate": "Activer",
"ui.active_component": "Composant actif",
@@ -1357,6 +1462,7 @@
"ui.blocked": "Inaccessible",
"ui.bodies": "Corps",
"ui.bodies_all_if_none": "Corps (tous si aucun)",
"ui.bottom": "Dessous",
"ui.box": "Boîte",
"ui.break": "Fractionner",
"ui.browser_bodies_one": "{count} corps",
@@ -1800,59 +1906,6 @@
"ui.smooth_wheel_zoom": "Zoom fluide à la molette",
"ui.smooth_wheel_zoom_tip": "Désactiver pour appliquer chaque cran de molette immédiatement, sans lissage",
"ui.snap": "Accrochage",
"ui.space_mouse_axes_reassigned": "Les axes sont réattribués dans les Préférences, et cela s'applique toujours en plus de ce calibrage.",
"ui.space_mouse_calibrate": "Calibrer…",
"ui.space_mouse_calibrate_tip": "Déplacez le capuchon comme la fenêtre le demande, pour que SolidCraft apprenne dans quel sens et jusqu'où va chaque axe de cette souris 3D. Enregistré pour cette souris 3D.",
"ui.space_mouse_calibrate_title": "Calibrer la souris 3D",
"ui.space_mouse_calibrated": "Calibrée",
"ui.space_mouse_calibration": "Calibrage de la souris 3D",
"ui.space_mouse_calibration_done": "Terminé. Enregistrez-le pour l'utiliser chaque fois que cette souris 3D est connectée.",
"ui.space_mouse_calibration_no_response": "Un axe a à peine bougé, il ne peut donc pas être calibré. Recommencez en déplaçant le capuchon plus loin à chaque fois.",
"ui.space_mouse_dead_zone": "Zone morte",
"ui.space_mouse_dead_zone_tip": "De combien le capuchon doit bouger avant que la vue ne bouge, en part de sa course complète. Augmentez-la si la vue dérive alors que le capuchon est au repos.",
"ui.space_mouse_driven_by": "Quel mouvement calibré de l'appareil pilote cet axe. Choisir un mouvement déjà utilisé par un autre axe les échange.",
"ui.space_mouse_driven_by_label": "piloté par",
"ui.space_mouse_driver": "Pilote de la souris 3D",
"ui.space_mouse_driver_auto": "Automatique",
"ui.space_mouse_driver_direct": "Direct (hidraw)",
"ui.space_mouse_driver_only_direct": "Lecture directe du périphérique ; spacenavd n'est pas lancé",
"ui.space_mouse_driver_only_spacenavd": "Lecture via spacenavd, seule possibilité disponible",
"ui.space_mouse_forget": "Oublier le calibrage",
"ui.space_mouse_hint": "Déplace et fait pivoter la vue en même temps ; dans les esquisses, seuls le panoramique et le zoom sont utilisés.",
"ui.space_mouse_motion_rotation_x": "Rotation X",
"ui.space_mouse_motion_rotation_y": "Rotation Y",
"ui.space_mouse_motion_rotation_z": "Rotation Z",
"ui.space_mouse_motion_translation_x": "Translation X",
"ui.space_mouse_motion_translation_y": "Translation Y",
"ui.space_mouse_motion_translation_z": "Translation Z",
"ui.space_mouse_navigate": "Naviguer avec SpaceNavigator / SpaceMouse",
"ui.space_mouse_none": "Aucune souris 3D trouvée",
"ui.space_mouse_not_calibrated": "Non calibrée",
"ui.space_mouse_reading": "Lecture",
"ui.space_mouse_reset_axes": "Réinitialiser l'attribution des axes",
"ui.space_mouse_step_lift": "Soulevez le capuchon, maintenez, puis relâchez.",
"ui.space_mouse_step_press": "Appuyez sur le capuchon, maintenez, puis relâchez.",
"ui.space_mouse_step_pull": "Tirez le capuchon vers vous, maintenez, puis relâchez.",
"ui.space_mouse_step_push": "Poussez le capuchon loin de vous, maintenez, puis relâchez.",
"ui.space_mouse_step_rest": "Lâchez le capuchon et laissez-le immobile.",
"ui.space_mouse_step_slide_left": "Glissez le capuchon vers la gauche, maintenez, puis relâchez.",
"ui.space_mouse_step_slide_right": "Glissez le capuchon vers la droite, maintenez, puis relâchez.",
"ui.space_mouse_step_tilt_back": "Inclinez le capuchon vers l'arrière (bord avant vers le haut), maintenez, puis relâchez.",
"ui.space_mouse_step_tilt_forward": "Inclinez le capuchon vers l'avant (bord avant vers le bas), maintenez, puis relâchez.",
"ui.space_mouse_step_tilt_left": "Inclinez le capuchon vers la gauche (bord gauche vers le bas), maintenez, puis relâchez.",
"ui.space_mouse_step_tilt_right": "Inclinez le capuchon vers la droite (bord droit vers le bas), maintenez, puis relâchez.",
"ui.space_mouse_step_twist_clockwise": "Tournez le capuchon dans le sens horaire, maintenez, puis relâchez.",
"ui.space_mouse_step_twist_counterclockwise": "Tournez le capuchon dans le sens antihoraire, maintenez, puis relâchez.",
"ui.space_mouse_view_axis": "Axe de la vue",
"ui.space_mouse_view_off": "Désactivé",
"ui.space_mouse_view_off_tip": "Le profil du pilote de la souris 3D désactive cet axe : son mouvement ne déplace pas la vue. Choisir ici le mouvement d'un autre axe les échange, et ce mouvement cesse de déplacer la vue.",
"ui.space_mouse_view_orbit_sideways": "Orbite gauche / droite",
"ui.space_mouse_view_orbit_up_down": "Orbite haut / bas",
"ui.space_mouse_view_pan_sideways": "Panoramique gauche / droite",
"ui.space_mouse_view_pan_up_down": "Panoramique haut / bas",
"ui.space_mouse_view_roll": "Roulis",
"ui.space_mouse_view_unmapped": "Axe {n}",
"ui.space_mouse_view_zoom": "Zoom",
"ui.spacing": "Espacement",
"ui.spacing_2": "Espacement 2",
"ui.sphere": "Sphère",
+104 -53
View File
@@ -530,6 +530,10 @@
"cmd.file_insert_step": "Inserir STEP",
"cmd.file_save_mesh": "Gardar como malla",
"cmd.file_slicers": "Laminadores instalados",
"cmd.frame_member": "Membro estrutural",
"cmd.frame_profile_insert": "Inserir perfil",
"cmd.frame_profile_list": "Biblioteca de perfís",
"cmd.frame_profile_properties": "Propiedades do perfil",
"cmd.inspect_accessibility": "Análise de accesibilidade",
"cmd.inspect_center_of_mass": "Centro de masas",
"cmd.inspect_clearance": "Folga",
@@ -1121,7 +1125,106 @@
"trace.stopped_by_contact": "Remata na mostra {sample}: {a} atravesaría {b}",
"trace.stopped_by_loop": "Remata na mostra {sample}: o bucle a través de {joint} non pode pecharse máis",
"ui.1_degree_of_freedom": "1 grao de liberdade",
"ui.3d_mouse_axes_reassigned": "Os eixes están reasignados en Preferencias, e iso segue aplicándose sobre esta calibración.",
"ui.3d_mouse_button": "Botón {number}",
"ui.3d_mouse_button_nothing": "Nada",
"ui.3d_mouse_button_settings": "Axustes do rato 3D",
"ui.3d_mouse_buttons": "Botóns",
"ui.3d_mouse_buttons_hint": "Preme un botón do teu rato 3D para atopalo aquí e escolle que fai.",
"ui.3d_mouse_buttons_no_device": "Conecta un rato 3D para escoller que fan os seus botóns.",
"ui.3d_mouse_buttons_reset": "Restaurar os botóns predeterminados",
"ui.3d_mouse_calibrate": "Calibrar…",
"ui.3d_mouse_calibrate_tip": "Move o capuchón como pide a xanela para que SolidCraft aprenda cara a onde e ata onde vai cada eixe deste rato 3D. Gárdase para este rato 3D.",
"ui.3d_mouse_calibrate_title": "Calibrar o rato 3D",
"ui.3d_mouse_calibrate_wait": "Move o rato 3D unha vez para que SolidCraft o vexa.",
"ui.3d_mouse_calibrated": "Calibrado",
"ui.3d_mouse_calibration": "Calibración do rato 3D",
"ui.3d_mouse_calibration_done": "Feito. Gárdaa para usala sempre que este rato 3D estea conectado.",
"ui.3d_mouse_calibration_no_response": "Un eixe case non se moveu, así que non se pode calibrar. Volve comezar e move o capuchón máis lonxe cada vez.",
"ui.3d_mouse_circles_help": "Os círculos mostran o que envía o dispositivo tras a calibración. O modelo de proba mostra o que fai a vista con iso, tras a inversión, a velocidade e a asignación de eixes.",
"ui.3d_mouse_dead_zone": "Zona morta",
"ui.3d_mouse_dead_zone_tip": "Canto ten que moverse o capuchón antes de que se mova a vista, como parte do seu percorrido completo. Auméntaa se a vista se despraza co capuchón en repouso.",
"ui.3d_mouse_denied": "SolidCraft ve un rato 3D, pero non ten permiso para lelo. A regra udev está nas notas de configuración do rato 3D.",
"ui.3d_mouse_denied_short": "Atopado, pero non se pode ler",
"ui.3d_mouse_driven_by": "Que movemento calibrado do dispositivo controla este eixe. Se escolles un que xa usa outro eixe, intercámbianse.",
"ui.3d_mouse_driven_by_label": "controlado por",
"ui.3d_mouse_driver": "Controlador do rato 3D",
"ui.3d_mouse_driver_auto": "Automático",
"ui.3d_mouse_driver_direct": "Directo (hidraw)",
"ui.3d_mouse_driver_fallback": "Lendo polo de agora a través de spacenavd: non se puido abrir o dispositivo.",
"ui.3d_mouse_driver_only_direct": "Lectura directa do dispositivo; spacenavd non está en execución",
"ui.3d_mouse_driver_only_spacenavd": "Lectura mediante spacenavd, a única opción dispoñible",
"ui.3d_mouse_forget": "Esquecer a calibración",
"ui.3d_mouse_ghost_left_viewport": "Vista esquerda",
"ui.3d_mouse_ghost_left_window": "Xanela esquerda",
"ui.3d_mouse_ghost_position": "Posición",
"ui.3d_mouse_ghost_right_viewport": "Vista dereita",
"ui.3d_mouse_hint": "Move e rota a vista á vez; os bosquexos só usan desprazamento e zoom.",
"ui.3d_mouse_kind_cap": "Retorno ao centro",
"ui.3d_mouse_kind_question": "Que tipo de rato 3D é?",
"ui.3d_mouse_kind_trackball": "Trackball",
"ui.3d_mouse_looks_like_cap": "A lectura mantense mentres a suxeitas, como nun dispositivo de tipo «Retorno ao centro».",
"ui.3d_mouse_looks_like_trackball": "A lectura volve atrás en canto deixas de moverte, como nun trackball.",
"ui.3d_mouse_motion_rotation_x": "Rotación X",
"ui.3d_mouse_motion_rotation_y": "Rotación Y",
"ui.3d_mouse_motion_rotation_z": "Rotación Z",
"ui.3d_mouse_motion_translation_x": "Translación X",
"ui.3d_mouse_motion_translation_y": "Translación Y",
"ui.3d_mouse_motion_translation_z": "Translación Z",
"ui.3d_mouse_navigate": "Navegar co rato 3D",
"ui.3d_mouse_none": "Non se atopou ningún rato 3D",
"ui.3d_mouse_not_calibrated": "Sen calibrar",
"ui.3d_mouse_offer": "Calibrar o teu rato 3D corrixe os eixes trocados ou invertidos e axusta a súa velocidade e sensación.",
"ui.3d_mouse_offer_never": "Non mostrar de novo",
"ui.3d_mouse_offer_swap": "Cambiar a Hidraw (controlador directo)",
"ui.3d_mouse_reading": "Lectura",
"ui.3d_mouse_reset_axes": "Restablecer asignación de eixes",
"ui.3d_mouse_reset_view": "Restablecer vista",
"ui.3d_mouse_restore": "Restaurar valores do rato 3D",
"ui.3d_mouse_restore_ask": "Volver aos valores predeterminados da configuración do rato 3D? A calibración e a asignación de botóns consérvanse.",
"ui.3d_mouse_section": "Rato 3D",
"ui.3d_mouse_show_in_view": "Mostrar o rato 3D na vista 3D",
"ui.3d_mouse_show_in_view_tip": "Unha imaxe do teu rato 3D na esquina inferior esquerda que se move cando o moves.",
"ui.3d_mouse_skip": "O meu dispositivo non fai isto",
"ui.3d_mouse_skip_tip": "Omite este movemento nos dous sentidos; a calibración déixao fóra.",
"ui.3d_mouse_speed": "Velocidade do rato 3D",
"ui.3d_mouse_step_lift": "Levanta o capuchón, mantén a posición e despois sóltao.",
"ui.3d_mouse_step_press": "Preme o capuchón cara abaixo, mantén a posición e despois sóltao.",
"ui.3d_mouse_step_pull": "Tira do capuchón cara a ti, mantén a posición e despois sóltao.",
"ui.3d_mouse_step_push": "Empurra o capuchón lonxe de ti, mantén a posición e despois sóltao.",
"ui.3d_mouse_step_rest": "Solta o capuchón e déixao quieto.",
"ui.3d_mouse_step_rest_trackball": "Solta a bóla e déixaa quieta.",
"ui.3d_mouse_step_ring_clockwise": "Xira o anel de desprazamento uns clics no sentido horario.",
"ui.3d_mouse_step_ring_counterclockwise": "Xira o anel de desprazamento uns clics no sentido antihorario.",
"ui.3d_mouse_step_roll_away": "Fai rodar a bóla lonxe de ti unhas cantas veces e déixaa parar.",
"ui.3d_mouse_step_roll_left": "Fai rodar a bóla á esquerda unhas cantas veces e déixaa parar.",
"ui.3d_mouse_step_roll_right": "Fai rodar a bóla á dereita unhas cantas veces e déixaa parar.",
"ui.3d_mouse_step_roll_toward": "Fai rodar a bóla cara a ti unhas cantas veces e déixaa parar.",
"ui.3d_mouse_step_slide_left": "Despraza o capuchón á esquerda, mantén a posición e despois sóltao.",
"ui.3d_mouse_step_slide_right": "Despraza o capuchón á dereita, mantén a posición e despois sóltao.",
"ui.3d_mouse_step_spin_clockwise": "Xira a bóla no sentido horario unhas cantas veces e déixaa parar.",
"ui.3d_mouse_step_spin_counterclockwise": "Xira a bóla no sentido antihorario unhas cantas veces e déixaa parar.",
"ui.3d_mouse_step_tilt_away": "Inclina a parte de arriba do capuchón lonxe de ti (o bordo máis próximo sobe), mantén a posición e despois sóltao.",
"ui.3d_mouse_step_tilt_left": "Inclina o capuchón á esquerda (bordo esquerdo abaixo), mantén a posición e despois sóltao.",
"ui.3d_mouse_step_tilt_right": "Inclina o capuchón á dereita (bordo dereito abaixo), mantén a posición e despois sóltao.",
"ui.3d_mouse_step_tilt_toward": "Inclina a parte de arriba do capuchón cara a ti (o bordo máis próximo baixa), mantén a posición e despois sóltao.",
"ui.3d_mouse_step_touch": "Apoia a man no capuchón sen empurralo.",
"ui.3d_mouse_step_twist_clockwise": "Xira o capuchón no sentido horario, mantén a posición e despois sóltao.",
"ui.3d_mouse_step_twist_counterclockwise": "Xira o capuchón no sentido antihorario, mantén a posición e despois sóltao.",
"ui.3d_mouse_switch_cap": "Calibrar como retorno ao centro",
"ui.3d_mouse_switch_trackball": "Calibrar como trackball",
"ui.3d_mouse_view_axis": "Eixe da vista",
"ui.3d_mouse_view_off": "Desactivado",
"ui.3d_mouse_view_off_tip": "O perfil do controlador do rato 3D desactiva este eixe, así que o seu movemento non move a vista. Se escolles aquí o movemento doutro eixe, intercámbianse e ese movemento deixa de mover a vista.",
"ui.3d_mouse_view_orbit_sideways": "Orbitar á esquerda / dereita",
"ui.3d_mouse_view_orbit_up_down": "Orbitar arriba / abaixo",
"ui.3d_mouse_view_pan_sideways": "Desprazar á esquerda / dereita",
"ui.3d_mouse_view_pan_up_down": "Desprazar arriba / abaixo",
"ui.3d_mouse_view_roll": "Xirar sobre a vista",
"ui.3d_mouse_view_unmapped": "Eixe {n}",
"ui.3d_mouse_view_zoom": "Zoom",
"ui.3d_mouse_waiting": "Agardando movemento",
"ui.3d_mouse_wiggle": "Se tes un conectado, móveo un pouco.",
"ui.3d_sketch": "Bosquexo 3D",
"ui.activate": "Activar",
"ui.active_component": "Compoñente activo",
@@ -1351,6 +1454,7 @@
"ui.blocked": "Bloqueado",
"ui.bodies": "Corpos",
"ui.bodies_all_if_none": "Corpos (todos se non hai ningún)",
"ui.bottom": "Inferior",
"ui.box": "Caixa",
"ui.break": "Romper",
"ui.browser_bodies_one": "{count} corpo",
@@ -1794,59 +1898,6 @@
"ui.smooth_wheel_zoom": "Zoom suave coa roda",
"ui.smooth_wheel_zoom_tip": "Desactívao para aplicar cada movemento da roda de inmediato, sen suavizado",
"ui.snap": "Axuste",
"ui.space_mouse_axes_reassigned": "Os eixes están reasignados en Preferencias, e iso segue aplicándose sobre esta calibración.",
"ui.space_mouse_calibrate": "Calibrar…",
"ui.space_mouse_calibrate_tip": "Move o capuchón como pide a xanela para que SolidCraft aprenda cara a onde e ata onde vai cada eixe deste rato 3D. Gárdase para este rato 3D.",
"ui.space_mouse_calibrate_title": "Calibrar o rato 3D",
"ui.space_mouse_calibrated": "Calibrado",
"ui.space_mouse_calibration": "Calibración do rato 3D",
"ui.space_mouse_calibration_done": "Feito. Gárdaa para usala sempre que este rato 3D estea conectado.",
"ui.space_mouse_calibration_no_response": "Un eixe case non se moveu, así que non se pode calibrar. Volve comezar e move o capuchón máis lonxe cada vez.",
"ui.space_mouse_dead_zone": "Zona morta",
"ui.space_mouse_dead_zone_tip": "Canto ten que moverse o capuchón antes de que se mova a vista, como parte do seu percorrido completo. Auméntaa se a vista se despraza co capuchón en repouso.",
"ui.space_mouse_driven_by": "Que movemento calibrado do dispositivo controla este eixe. Se escolles un que xa usa outro eixe, intercámbianse.",
"ui.space_mouse_driven_by_label": "controlado por",
"ui.space_mouse_driver": "Controlador do rato 3D",
"ui.space_mouse_driver_auto": "Automático",
"ui.space_mouse_driver_direct": "Directo (hidraw)",
"ui.space_mouse_driver_only_direct": "Lectura directa do dispositivo; spacenavd non está en execución",
"ui.space_mouse_driver_only_spacenavd": "Lectura mediante spacenavd, a única opción dispoñible",
"ui.space_mouse_forget": "Esquecer a calibración",
"ui.space_mouse_hint": "Move e rota a vista á vez; os bosquexos só usan desprazamento e zoom.",
"ui.space_mouse_motion_rotation_x": "Rotación X",
"ui.space_mouse_motion_rotation_y": "Rotación Y",
"ui.space_mouse_motion_rotation_z": "Rotación Z",
"ui.space_mouse_motion_translation_x": "Translación X",
"ui.space_mouse_motion_translation_y": "Translación Y",
"ui.space_mouse_motion_translation_z": "Translación Z",
"ui.space_mouse_navigate": "Navegar con SpaceNavigator / SpaceMouse",
"ui.space_mouse_none": "Non se atopou ningún rato 3D",
"ui.space_mouse_not_calibrated": "Sen calibrar",
"ui.space_mouse_reading": "Lectura",
"ui.space_mouse_reset_axes": "Restablecer asignación de eixes",
"ui.space_mouse_step_lift": "Levanta o capuchón, mantéño e sóltao.",
"ui.space_mouse_step_press": "Preme o capuchón cara abaixo, mantéño e sóltao.",
"ui.space_mouse_step_pull": "Tira do capuchón cara a ti, mantéño e sóltao.",
"ui.space_mouse_step_push": "Empurra o capuchón lonxe de ti, mantéño e sóltao.",
"ui.space_mouse_step_rest": "Solta o capuchón e déixao quieto.",
"ui.space_mouse_step_slide_left": "Despraza o capuchón á esquerda, mantéño e sóltao.",
"ui.space_mouse_step_slide_right": "Despraza o capuchón á dereita, mantéño e sóltao.",
"ui.space_mouse_step_tilt_back": "Inclina o capuchón cara atrás (bordo dianteiro arriba), mantéño e sóltao.",
"ui.space_mouse_step_tilt_forward": "Inclina o capuchón cara adiante (bordo dianteiro abaixo), mantéño e sóltao.",
"ui.space_mouse_step_tilt_left": "Inclina o capuchón á esquerda (bordo esquerdo abaixo), mantéño e sóltao.",
"ui.space_mouse_step_tilt_right": "Inclina o capuchón á dereita (bordo dereito abaixo), mantéño e sóltao.",
"ui.space_mouse_step_twist_clockwise": "Xira o capuchón no sentido horario, mantéño e sóltao.",
"ui.space_mouse_step_twist_counterclockwise": "Xira o capuchón no sentido antihorario, mantéño e sóltao.",
"ui.space_mouse_view_axis": "Eixe da vista",
"ui.space_mouse_view_off": "Desactivado",
"ui.space_mouse_view_off_tip": "O perfil do controlador do rato 3D desactiva este eixe, así que o seu movemento non move a vista. Se escolles aquí o movemento doutro eixe, intercámbianse e ese movemento deixa de mover a vista.",
"ui.space_mouse_view_orbit_sideways": "Orbitar á esquerda / dereita",
"ui.space_mouse_view_orbit_up_down": "Orbitar arriba / abaixo",
"ui.space_mouse_view_pan_sideways": "Desprazar á esquerda / dereita",
"ui.space_mouse_view_pan_up_down": "Desprazar arriba / abaixo",
"ui.space_mouse_view_roll": "Xirar sobre a vista",
"ui.space_mouse_view_unmapped": "Eixe {n}",
"ui.space_mouse_view_zoom": "Zoom",
"ui.spacing": "Espazado",
"ui.spacing_2": "Espazado 2",
"ui.sphere": "Esfera",
+47 -28
View File
@@ -529,6 +529,10 @@
"cmd.file_insert_step": "STEP beszúrása",
"cmd.file_save_mesh": "Mentés hálóként",
"cmd.file_slicers": "Telepített szeletelők",
"cmd.frame_member": "Szerkezeti elem",
"cmd.frame_profile_insert": "Profil beszúrása",
"cmd.frame_profile_list": "Profilkönyvtár",
"cmd.frame_profile_properties": "Profil tulajdonságai",
"cmd.inspect_accessibility": "Hozzáférhetőség-elemzés",
"cmd.inspect_center_of_mass": "Tömegközéppont",
"cmd.inspect_clearance": "Hézag",
@@ -1120,7 +1124,50 @@
"trace.stopped_by_contact": "Vége a(z) {sample}. mintánál: {a} áthatolna ezen: {b}",
"trace.stopped_by_loop": "Vége a(z) {sample}. mintánál: a(z) {joint} csuklón átmenő hurok nem zárható tovább",
"ui.1_degree_of_freedom": "1 szabadságfok",
"ui.3d_mouse_calibrate": "Kalibrálás…",
"ui.3d_mouse_calibrate_tip": "Mozgassa a kupakot az ablak kérése szerint, hogy a SolidCraft megtanulja, merre és mennyire mozdul a 3D-egér mindegyik tengelye. Ehhez a 3D-egérhez mentve.",
"ui.3d_mouse_calibrate_title": "3D-egér kalibrálása",
"ui.3d_mouse_calibrate_wait": "Mozdítsa meg egyszer a 3D-egeret, hogy a SolidCraft lássa.",
"ui.3d_mouse_calibrated": "Kalibrálva",
"ui.3d_mouse_calibration": "3D-egér kalibrálása",
"ui.3d_mouse_calibration_done": "Kész. Mentse, hogy a 3D-egér csatlakoztatásakor mindig használatos legyen.",
"ui.3d_mouse_calibration_no_response": "Az egyik tengely alig mozdult, így nem kalibrálható. Kezdje elölről, és minden alkalommal mozgassa a kupakot messzebb.",
"ui.3d_mouse_circles_help": "A körök azt mutatják, mit küld az eszköz kalibrálás után. A tesztmodell azt mutatja, mit tesz ezzel a nézet a megfordítás, sebesség és tengelykiosztás után.",
"ui.3d_mouse_dead_zone": "Holtsáv",
"ui.3d_mouse_dead_zone_tip": "Mennyit kell mozdítani a kupakot, mielőtt a nézet mozdulna, a teljes elmozdulás arányában. Növelje, ha a nézet sodródik, miközben a kupak nyugalomban van.",
"ui.3d_mouse_denied": "A SolidCraft látja a 3D-egeret, de nem olvashatja. Az udev-szabályt a 3D-egér beállítási jegyzetei tartalmazzák.",
"ui.3d_mouse_denied_short": "Megvan, de nem olvasható",
"ui.3d_mouse_driver_fallback": "Egyelőre a spacenavd-n át olvassa: magát az eszközt nem sikerült megnyitni.",
"ui.3d_mouse_forget": "Kalibrálás elfelejtése",
"ui.3d_mouse_ghost_left_viewport": "Bal nézet",
"ui.3d_mouse_ghost_left_window": "Bal ablak",
"ui.3d_mouse_ghost_position": "Helyzet",
"ui.3d_mouse_ghost_right_viewport": "Jobb nézet",
"ui.3d_mouse_hint": "A nézetet együtt mozgatja és forgatja; a vázlatok csak pásztázást és nagyítást használnak.",
"ui.3d_mouse_navigate": "Navigálás a 3D-egérrel",
"ui.3d_mouse_none": "Nem található 3D-egér",
"ui.3d_mouse_not_calibrated": "Nincs kalibrálva",
"ui.3d_mouse_offer": "A 3D-egér kalibrálása kijavítja a felcserélt vagy megfordított tengelyeket, és beállítja a sebességét és az érzetét.",
"ui.3d_mouse_offer_never": "Ne jelenjen meg többé",
"ui.3d_mouse_offer_swap": "Váltás Hidrawra (közvetlen illesztőprogram)",
"ui.3d_mouse_reading": "Beolvasás",
"ui.3d_mouse_reset_view": "Nézet alaphelyzetbe állítása",
"ui.3d_mouse_restore": "3D-egér alapértékeinek visszaállítása",
"ui.3d_mouse_restore_ask": "Visszaállítja a 3D-egér beállításait az alapértékekre? A kalibrálás és a gombkiosztás megmarad.",
"ui.3d_mouse_speed": "3D-egér sebessége",
"ui.3d_mouse_step_lift": "Emelje fel a kupakot, tartsa, majd engedje el.",
"ui.3d_mouse_step_press": "Nyomja le a kupakot, tartsa, majd engedje el.",
"ui.3d_mouse_step_pull": "Húzza a kupakot maga felé, tartsa, majd engedje el.",
"ui.3d_mouse_step_push": "Tolja a kupakot magától el, tartsa, majd engedje el.",
"ui.3d_mouse_step_rest": "Vegye le a kezét a kupakról, és hagyja nyugodtan.",
"ui.3d_mouse_step_slide_left": "Csúsztassa a kupakot balra, tartsa, majd engedje el.",
"ui.3d_mouse_step_slide_right": "Csúsztassa a kupakot jobbra, tartsa, majd engedje el.",
"ui.3d_mouse_step_tilt_left": "Billentse balra a kupakot (a bal él lefelé), tartsa, majd engedje el.",
"ui.3d_mouse_step_tilt_right": "Billentse jobbra a kupakot (a jobb él lefelé), tartsa, majd engedje el.",
"ui.3d_mouse_step_twist_clockwise": "Csavarja el a kupakot az óramutató járásával megegyezően, tartsa, majd engedje el.",
"ui.3d_mouse_step_twist_counterclockwise": "Csavarja el a kupakot az óramutató járásával ellentétesen, tartsa, majd engedje el.",
"ui.3d_mouse_waiting": "Mozgásra vár",
"ui.3d_mouse_wiggle": "Ha van csatlakoztatva egy, mozgassa meg egy kicsit.",
"ui.3d_sketch": "3D vázlat",
"ui.activate": "Aktiválás",
"ui.active_component": "Aktív komponens",
@@ -1793,34 +1840,6 @@
"ui.smooth_wheel_zoom": "Sima görgőnagyítás",
"ui.smooth_wheel_zoom_tip": "Kapcsolja ki az egyes görgőesemények azonnali alkalmazásához, kifutás nélkül",
"ui.snap": "Illesztés",
"ui.space_mouse_calibrate": "Kalibrálás…",
"ui.space_mouse_calibrate_tip": "Mozgassa a kupakot az ablak kérése szerint, hogy a SolidCraft megtanulja, merre és mennyire mozdul a 3D-egér mindegyik tengelye. Ehhez a 3D-egérhez mentve.",
"ui.space_mouse_calibrate_title": "3D-egér kalibrálása",
"ui.space_mouse_calibrated": "Kalibrálva",
"ui.space_mouse_calibration": "3D-egér kalibrálása",
"ui.space_mouse_calibration_done": "Kész. Mentse, hogy a 3D-egér csatlakoztatásakor mindig használatos legyen.",
"ui.space_mouse_calibration_no_response": "Az egyik tengely alig mozdult, így nem kalibrálható. Kezdje elölről, és minden alkalommal mozgassa a kupakot messzebb.",
"ui.space_mouse_dead_zone": "Holtsáv",
"ui.space_mouse_dead_zone_tip": "Mennyit kell mozdítani a kupakot, mielőtt a nézet mozdulna, a teljes elmozdulás arányában. Növelje, ha a nézet sodródik, miközben a kupak nyugalomban van.",
"ui.space_mouse_forget": "Kalibrálás elfelejtése",
"ui.space_mouse_hint": "A nézetet együtt mozgatja és forgatja; a vázlatok csak pásztázást és nagyítást használnak.",
"ui.space_mouse_navigate": "Navigálás SpaceNavigator / SpaceMouse eszközzel",
"ui.space_mouse_none": "Nem található 3D-egér",
"ui.space_mouse_not_calibrated": "Nincs kalibrálva",
"ui.space_mouse_reading": "Beolvasás",
"ui.space_mouse_step_lift": "Emelje fel a kupakot, tartsa, majd engedje el.",
"ui.space_mouse_step_press": "Nyomja le a kupakot, tartsa, majd engedje el.",
"ui.space_mouse_step_pull": "Húzza a kupakot maga felé, tartsa, majd engedje el.",
"ui.space_mouse_step_push": "Tolja a kupakot magától el, tartsa, majd engedje el.",
"ui.space_mouse_step_rest": "Vegye le a kezét a kupakról, és hagyja nyugodtan.",
"ui.space_mouse_step_slide_left": "Csúsztassa a kupakot balra, tartsa, majd engedje el.",
"ui.space_mouse_step_slide_right": "Csúsztassa a kupakot jobbra, tartsa, majd engedje el.",
"ui.space_mouse_step_tilt_back": "Billentse hátra a kupakot (az elülső él felfelé), tartsa, majd engedje el.",
"ui.space_mouse_step_tilt_forward": "Billentse előre a kupakot (az elülső él lefelé), tartsa, majd engedje el.",
"ui.space_mouse_step_tilt_left": "Billentse balra a kupakot (a bal él lefelé), tartsa, majd engedje el.",
"ui.space_mouse_step_tilt_right": "Billentse jobbra a kupakot (a jobb él lefelé), tartsa, majd engedje el.",
"ui.space_mouse_step_twist_clockwise": "Csavarja el a kupakot az óramutató járásával megegyezően, tartsa, majd engedje el.",
"ui.space_mouse_step_twist_counterclockwise": "Csavarja el a kupakot az óramutató járásával ellentétesen, tartsa, majd engedje el.",
"ui.spacing": "Térköz",
"ui.spacing_2": "2. térköz",
"ui.sphere": "Gömb",
+47 -28
View File
@@ -529,6 +529,10 @@
"cmd.file_insert_step": "Sisipkan STEP",
"cmd.file_save_mesh": "Simpan Sebagai Mesh",
"cmd.file_slicers": "Slicer Terpasang",
"cmd.frame_member": "Batang Rangka",
"cmd.frame_profile_insert": "Sisipkan Profil",
"cmd.frame_profile_list": "Pustaka Profil",
"cmd.frame_profile_properties": "Properti Profil",
"cmd.inspect_accessibility": "Analisis Aksesibilitas",
"cmd.inspect_center_of_mass": "Pusat Massa",
"cmd.inspect_clearance": "Kelonggaran",
@@ -1120,7 +1124,50 @@
"trace.stopped_by_contact": "Berakhir di sampel {sample}: {a} akan menembus {b}",
"trace.stopped_by_loop": "Berakhir di sampel {sample}: loop melalui {joint} tidak dapat menutup lebih jauh",
"ui.1_degree_of_freedom": "1 derajat kebebasan",
"ui.3d_mouse_calibrate": "Kalibrasi…",
"ui.3d_mouse_calibrate_tip": "Gerakkan cap sesuai permintaan jendela, agar SolidCraft mempelajari arah dan jarak setiap sumbu mouse 3D ini. Disimpan untuk mouse 3D ini.",
"ui.3d_mouse_calibrate_title": "Kalibrasi mouse 3D",
"ui.3d_mouse_calibrate_wait": "Gerakkan mouse 3D sekali agar SolidCraft dapat melihatnya.",
"ui.3d_mouse_calibrated": "Terkalibrasi",
"ui.3d_mouse_calibration": "Kalibrasi mouse 3D",
"ui.3d_mouse_calibration_done": "Selesai. Simpan untuk dipakai setiap kali mouse 3D ini terhubung.",
"ui.3d_mouse_calibration_no_response": "Satu sumbu hampir tidak bergerak, sehingga tidak dapat dikalibrasi. Mulai ulang dan gerakkan cap lebih jauh setiap kali.",
"ui.3d_mouse_circles_help": "Lingkaran menunjukkan apa yang dikirim perangkat setelah kalibrasi. Model uji menunjukkan apa yang dilakukan tampilan dengannya, setelah pembalikan, kecepatan, dan penetapan sumbu.",
"ui.3d_mouse_dead_zone": "Zona mati",
"ui.3d_mouse_dead_zone_tip": "Seberapa jauh cap harus bergerak sebelum tampilan bergerak, sebagai bagian dari total jangkauannya. Naikkan jika tampilan bergeser saat cap diam.",
"ui.3d_mouse_denied": "SolidCraft melihat mouse 3D tetapi tidak diizinkan membacanya. Lihat catatan penyiapan mouse 3D untuk aturan udev.",
"ui.3d_mouse_denied_short": "Ditemukan, tetapi tidak bisa dibaca",
"ui.3d_mouse_driver_fallback": "Sementara dibaca lewat spacenavd: perangkatnya sendiri tidak dapat dibuka.",
"ui.3d_mouse_forget": "Lupakan kalibrasi",
"ui.3d_mouse_ghost_left_viewport": "Viewport kiri",
"ui.3d_mouse_ghost_left_window": "Jendela kiri",
"ui.3d_mouse_ghost_position": "Posisi",
"ui.3d_mouse_ghost_right_viewport": "Viewport kanan",
"ui.3d_mouse_hint": "Gerakkan dan putar tampilan bersama; sketsa hanya memakai pan dan zoom.",
"ui.3d_mouse_navigate": "Navigasi dengan mouse 3D",
"ui.3d_mouse_none": "Mouse 3D tidak ditemukan",
"ui.3d_mouse_not_calibrated": "Belum dikalibrasi",
"ui.3d_mouse_offer": "Mengkalibrasi mouse 3D memperbaiki sumbu yang tertukar atau terbalik dan mengatur kecepatan serta rasanya.",
"ui.3d_mouse_offer_never": "Jangan tampilkan lagi",
"ui.3d_mouse_offer_swap": "Beralih ke Hidraw (driver langsung)",
"ui.3d_mouse_reading": "Pembacaan",
"ui.3d_mouse_reset_view": "Atur ulang tampilan",
"ui.3d_mouse_restore": "Pulihkan bawaan mouse 3D",
"ui.3d_mouse_restore_ask": "Kembalikan pengaturan mouse 3D ke bawaan? Kalibrasi dan pemetaan tombol tetap ada.",
"ui.3d_mouse_speed": "Kecepatan mouse 3D",
"ui.3d_mouse_step_lift": "Angkat cap ke atas, tahan, lalu lepaskan.",
"ui.3d_mouse_step_press": "Tekan cap ke bawah, tahan, lalu lepaskan.",
"ui.3d_mouse_step_pull": "Tarik cap ke arah Anda, tahan, lalu lepaskan.",
"ui.3d_mouse_step_push": "Dorong cap menjauh dari Anda, tahan, lalu lepaskan.",
"ui.3d_mouse_step_rest": "Lepaskan tangan dari cap dan biarkan diam.",
"ui.3d_mouse_step_slide_left": "Geser cap ke kiri, tahan, lalu lepaskan.",
"ui.3d_mouse_step_slide_right": "Geser cap ke kanan, tahan, lalu lepaskan.",
"ui.3d_mouse_step_tilt_left": "Miringkan cap ke kiri (tepi kiri turun), tahan, lalu lepaskan.",
"ui.3d_mouse_step_tilt_right": "Miringkan cap ke kanan (tepi kanan turun), tahan, lalu lepaskan.",
"ui.3d_mouse_step_twist_clockwise": "Putar cap searah jarum jam, tahan, lalu lepaskan.",
"ui.3d_mouse_step_twist_counterclockwise": "Putar cap berlawanan arah jarum jam, tahan, lalu lepaskan.",
"ui.3d_mouse_waiting": "Menunggu gerakan",
"ui.3d_mouse_wiggle": "Jika Anda memasang satu, goyangkan sedikit.",
"ui.3d_sketch": "Sketsa 3D",
"ui.activate": "Aktifkan",
"ui.active_component": "Komponen aktif",
@@ -1793,34 +1840,6 @@
"ui.smooth_wheel_zoom": "Zoom roda halus",
"ui.smooth_wheel_zoom_tip": "Matikan untuk menerapkan setiap peristiwa roda segera, tanpa ekor penghalusan",
"ui.snap": "Snap",
"ui.space_mouse_calibrate": "Kalibrasi…",
"ui.space_mouse_calibrate_tip": "Gerakkan cap sesuai permintaan jendela, agar SolidCraft mempelajari arah dan jarak setiap sumbu mouse 3D ini. Disimpan untuk mouse 3D ini.",
"ui.space_mouse_calibrate_title": "Kalibrasi mouse 3D",
"ui.space_mouse_calibrated": "Terkalibrasi",
"ui.space_mouse_calibration": "Kalibrasi mouse 3D",
"ui.space_mouse_calibration_done": "Selesai. Simpan untuk dipakai setiap kali mouse 3D ini terhubung.",
"ui.space_mouse_calibration_no_response": "Satu sumbu hampir tidak bergerak, sehingga tidak dapat dikalibrasi. Mulai ulang dan gerakkan cap lebih jauh setiap kali.",
"ui.space_mouse_dead_zone": "Zona mati",
"ui.space_mouse_dead_zone_tip": "Seberapa jauh cap harus bergerak sebelum tampilan bergerak, sebagai bagian dari total jangkauannya. Naikkan jika tampilan bergeser saat cap diam.",
"ui.space_mouse_forget": "Lupakan kalibrasi",
"ui.space_mouse_hint": "Gerakkan dan putar tampilan bersama; sketsa hanya memakai pan dan zoom.",
"ui.space_mouse_navigate": "Navigasi dengan SpaceNavigator / SpaceMouse",
"ui.space_mouse_none": "Mouse 3D tidak ditemukan",
"ui.space_mouse_not_calibrated": "Belum dikalibrasi",
"ui.space_mouse_reading": "Pembacaan",
"ui.space_mouse_step_lift": "Angkat cap ke atas, tahan, lalu lepaskan.",
"ui.space_mouse_step_press": "Tekan cap ke bawah, tahan, lalu lepaskan.",
"ui.space_mouse_step_pull": "Tarik cap ke arah Anda, tahan, lalu lepaskan.",
"ui.space_mouse_step_push": "Dorong cap menjauh dari Anda, tahan, lalu lepaskan.",
"ui.space_mouse_step_rest": "Lepaskan tangan dari cap dan biarkan diam.",
"ui.space_mouse_step_slide_left": "Geser cap ke kiri, tahan, lalu lepaskan.",
"ui.space_mouse_step_slide_right": "Geser cap ke kanan, tahan, lalu lepaskan.",
"ui.space_mouse_step_tilt_back": "Miringkan cap ke belakang (tepi depan naik), tahan, lalu lepaskan.",
"ui.space_mouse_step_tilt_forward": "Miringkan cap ke depan (tepi depan turun), tahan, lalu lepaskan.",
"ui.space_mouse_step_tilt_left": "Miringkan cap ke kiri (tepi kiri turun), tahan, lalu lepaskan.",
"ui.space_mouse_step_tilt_right": "Miringkan cap ke kanan (tepi kanan turun), tahan, lalu lepaskan.",
"ui.space_mouse_step_twist_clockwise": "Putar cap searah jarum jam, tahan, lalu lepaskan.",
"ui.space_mouse_step_twist_counterclockwise": "Putar cap berlawanan arah jarum jam, tahan, lalu lepaskan.",
"ui.spacing": "Jarak antar",
"ui.spacing_2": "Jarak antar 2",
"ui.sphere": "Bola",
+104 -53
View File
@@ -533,6 +533,10 @@
"cmd.file_insert_step": "Inserisci STEP",
"cmd.file_save_mesh": "Salva come mesh",
"cmd.file_slicers": "Slicer installati",
"cmd.frame_member": "Membro strutturale",
"cmd.frame_profile_insert": "Inserisci profilo",
"cmd.frame_profile_list": "Libreria profili",
"cmd.frame_profile_properties": "Proprietà del profilo",
"cmd.inspect_accessibility": "Analisi di accessibilità",
"cmd.inspect_center_of_mass": "Centro di massa",
"cmd.inspect_clearance": "Distanza libera",
@@ -1124,7 +1128,106 @@
"trace.stopped_by_contact": "Termina al campione {sample}: {a} attraverserebbe {b}",
"trace.stopped_by_loop": "Termina al campione {sample}: la catena chiusa che passa per {joint} non può chiudersi ulteriormente",
"ui.1_degree_of_freedom": "1 grado di libertà",
"ui.3d_mouse_axes_reassigned": "Gli assi sono riassegnati nelle Preferenze, e questo vale anche dopo questa calibrazione.",
"ui.3d_mouse_button": "Pulsante {number}",
"ui.3d_mouse_button_nothing": "Niente",
"ui.3d_mouse_button_settings": "Impostazioni del mouse 3D",
"ui.3d_mouse_buttons": "Pulsanti",
"ui.3d_mouse_buttons_hint": "Premi un pulsante del tuo mouse 3D per trovarlo qui, poi scegli cosa fa.",
"ui.3d_mouse_buttons_no_device": "Collega un mouse 3D per scegliere cosa fanno i suoi pulsanti.",
"ui.3d_mouse_buttons_reset": "Ripristina i pulsanti predefiniti",
"ui.3d_mouse_calibrate": "Calibra…",
"ui.3d_mouse_calibrate_tip": "Muovi la manopola come chiede la finestra, così SolidCraft impara in che direzione e quanto va ogni asse di questo mouse 3D. Viene salvata per questo mouse 3D.",
"ui.3d_mouse_calibrate_title": "Calibra mouse 3D",
"ui.3d_mouse_calibrate_wait": "Muovi il mouse 3D una volta così SolidCraft lo vede.",
"ui.3d_mouse_calibrated": "Calibrato",
"ui.3d_mouse_calibration": "Calibrazione del mouse 3D",
"ui.3d_mouse_calibration_done": "Fatto. Salvala per usarla ogni volta che questo mouse 3D è collegato.",
"ui.3d_mouse_calibration_no_response": "Un asse si è mosso appena, quindi non si può calibrare. Ricomincia e muovi la manopola più a fondo ogni volta.",
"ui.3d_mouse_circles_help": "I cerchi mostrano ciò che il dispositivo invia dopo la calibrazione. Il modello di prova mostra cosa ne fa la vista, dopo inversione, velocità e assegnazione degli assi.",
"ui.3d_mouse_dead_zone": "Zona morta",
"ui.3d_mouse_dead_zone_tip": "Quanto deve muoversi la manopola prima che si muova la vista, come quota della sua corsa completa. Aumentala se la vista si sposta con la manopola a riposo.",
"ui.3d_mouse_denied": "SolidCraft vede un mouse 3D ma non ha il permesso di leggerlo. La regola udev è nelle note di configurazione del mouse 3D.",
"ui.3d_mouse_denied_short": "Trovato, ma non leggibile",
"ui.3d_mouse_driven_by": "Quale movimento calibrato del dispositivo comanda questo asse. Se ne scegli uno già usato da un altro asse, i due si scambiano.",
"ui.3d_mouse_driven_by_label": "comandato da",
"ui.3d_mouse_driver": "Driver del mouse 3D",
"ui.3d_mouse_driver_auto": "Automatico",
"ui.3d_mouse_driver_direct": "Diretto (hidraw)",
"ui.3d_mouse_driver_fallback": "Per ora legge tramite spacenavd: il dispositivo stesso non si è potuto aprire.",
"ui.3d_mouse_driver_only_direct": "Lettura diretta del dispositivo; spacenavd non è in esecuzione",
"ui.3d_mouse_driver_only_spacenavd": "Lettura tramite spacenavd, l'unica possibilità disponibile",
"ui.3d_mouse_forget": "Dimentica calibrazione",
"ui.3d_mouse_ghost_left_viewport": "Vista a sinistra",
"ui.3d_mouse_ghost_left_window": "Finestra a sinistra",
"ui.3d_mouse_ghost_position": "Posizione",
"ui.3d_mouse_ghost_right_viewport": "Vista a destra",
"ui.3d_mouse_hint": "Sposta e ruota la vista insieme; gli schizzi usano solo panoramica e zoom.",
"ui.3d_mouse_kind_cap": "Ritorno al centro",
"ui.3d_mouse_kind_question": "Che tipo di mouse 3D è?",
"ui.3d_mouse_kind_trackball": "Trackball",
"ui.3d_mouse_looks_like_cap": "Il valore resta finché tieni, come in un dispositivo di tipo «Ritorno al centro».",
"ui.3d_mouse_looks_like_trackball": "Il valore torna indietro appena smetti di muovere, come in una trackball.",
"ui.3d_mouse_motion_rotation_x": "Rotazione X",
"ui.3d_mouse_motion_rotation_y": "Rotazione Y",
"ui.3d_mouse_motion_rotation_z": "Rotazione Z",
"ui.3d_mouse_motion_translation_x": "Traslazione X",
"ui.3d_mouse_motion_translation_y": "Traslazione Y",
"ui.3d_mouse_motion_translation_z": "Traslazione Z",
"ui.3d_mouse_navigate": "Naviga con il mouse 3D",
"ui.3d_mouse_none": "Nessun mouse 3D trovato",
"ui.3d_mouse_not_calibrated": "Non calibrato",
"ui.3d_mouse_offer": "Calibrare il mouse 3D corregge gli assi scambiati o invertiti e imposta velocità e sensibilità.",
"ui.3d_mouse_offer_never": "Non mostrare più",
"ui.3d_mouse_offer_swap": "Passa a Hidraw (driver diretto)",
"ui.3d_mouse_reading": "Lettura",
"ui.3d_mouse_reset_axes": "Ripristina assegnazione assi",
"ui.3d_mouse_reset_view": "Ripristina vista",
"ui.3d_mouse_restore": "Ripristina impostazioni mouse 3D",
"ui.3d_mouse_restore_ask": "Riportare le impostazioni del mouse 3D ai valori predefiniti? Calibrazione e assegnazione dei pulsanti restano.",
"ui.3d_mouse_section": "Mouse 3D",
"ui.3d_mouse_show_in_view": "Mostra il mouse 3D nella vista 3D",
"ui.3d_mouse_show_in_view_tip": "Un'immagine del tuo mouse 3D nell'angolo in basso a sinistra, che si muove quando lo muovi.",
"ui.3d_mouse_skip": "Il mio dispositivo non può farlo",
"ui.3d_mouse_skip_tip": "Salta questo movimento in entrambi i versi; la calibrazione lo esclude.",
"ui.3d_mouse_speed": "Velocità del mouse 3D",
"ui.3d_mouse_step_lift": "Solleva la manopola, tienila, poi lasciala.",
"ui.3d_mouse_step_press": "Premi la manopola verso il basso, tienila, poi lasciala.",
"ui.3d_mouse_step_pull": "Tira la manopola verso di te, tienila, poi lasciala.",
"ui.3d_mouse_step_push": "Spingi la manopola lontano da te, tienila, poi lasciala.",
"ui.3d_mouse_step_rest": "Togli la mano dalla manopola e lasciala ferma.",
"ui.3d_mouse_step_rest_trackball": "Togli la mano dalla sfera e lasciala ferma.",
"ui.3d_mouse_step_ring_clockwise": "Gira la ghiera di scorrimento di qualche scatto in senso orario.",
"ui.3d_mouse_step_ring_counterclockwise": "Gira la ghiera di scorrimento di qualche scatto in senso antiorario.",
"ui.3d_mouse_step_roll_away": "Fai rotolare la sfera lontano da te qualche volta, poi lasciala fermare.",
"ui.3d_mouse_step_roll_left": "Fai rotolare la sfera verso sinistra qualche volta, poi lasciala fermare.",
"ui.3d_mouse_step_roll_right": "Fai rotolare la sfera verso destra qualche volta, poi lasciala fermare.",
"ui.3d_mouse_step_roll_toward": "Fai rotolare la sfera verso di te qualche volta, poi lasciala fermare.",
"ui.3d_mouse_step_slide_left": "Fai scorrere la manopola a sinistra, tienila, poi lasciala.",
"ui.3d_mouse_step_slide_right": "Fai scorrere la manopola a destra, tienila, poi lasciala.",
"ui.3d_mouse_step_spin_clockwise": "Ruota la sfera in senso orario qualche volta, poi lasciala fermare.",
"ui.3d_mouse_step_spin_counterclockwise": "Ruota la sfera in senso antiorario qualche volta, poi lasciala fermare.",
"ui.3d_mouse_step_tilt_away": "Inclina la parte superiore della manopola lontano da te (il bordo più vicino sale), tienila, poi lasciala.",
"ui.3d_mouse_step_tilt_left": "Inclina la manopola a sinistra (bordo sinistro in basso), tienila, poi lasciala.",
"ui.3d_mouse_step_tilt_right": "Inclina la manopola a destra (bordo destro in basso), tienila, poi lasciala.",
"ui.3d_mouse_step_tilt_toward": "Inclina la parte superiore della manopola verso di te (il bordo più vicino scende), tienila, poi lasciala.",
"ui.3d_mouse_step_touch": "Appoggia la mano sulla manopola senza spingerla.",
"ui.3d_mouse_step_twist_clockwise": "Ruota la manopola in senso orario, tienila, poi lasciala.",
"ui.3d_mouse_step_twist_counterclockwise": "Ruota la manopola in senso antiorario, tienila, poi lasciala.",
"ui.3d_mouse_switch_cap": "Calibra come ritorno al centro",
"ui.3d_mouse_switch_trackball": "Calibra come trackball",
"ui.3d_mouse_view_axis": "Asse della vista",
"ui.3d_mouse_view_off": "Disattivato",
"ui.3d_mouse_view_off_tip": "Il profilo del driver del mouse 3D disattiva questo asse, quindi il suo movimento non muove la vista. Se qui scegli il movimento di un altro asse, i due si scambiano e quel movimento smette di muovere la vista.",
"ui.3d_mouse_view_orbit_sideways": "Orbita sinistra / destra",
"ui.3d_mouse_view_orbit_up_down": "Orbita su / giù",
"ui.3d_mouse_view_pan_sideways": "Panoramica sinistra / destra",
"ui.3d_mouse_view_pan_up_down": "Panoramica su / giù",
"ui.3d_mouse_view_roll": "Rollio",
"ui.3d_mouse_view_unmapped": "Asse {n}",
"ui.3d_mouse_view_zoom": "Zoom",
"ui.3d_mouse_waiting": "In attesa di movimento",
"ui.3d_mouse_wiggle": "Se ne hai uno collegato, muovilo un po'.",
"ui.3d_sketch": "Schizzo 3D",
"ui.activate": "Attiva",
"ui.active_component": "Componente attivo",
@@ -1354,6 +1457,7 @@
"ui.blocked": "Bloccato",
"ui.bodies": "Corpi",
"ui.bodies_all_if_none": "Corpi (tutti se nessuno)",
"ui.bottom": "Inferiore",
"ui.box": "Parallelepipedo",
"ui.break": "Spezza",
"ui.browser_bodies_one": "{count} corpo",
@@ -1797,59 +1901,6 @@
"ui.smooth_wheel_zoom": "Zoom fluido con rotellina",
"ui.smooth_wheel_zoom_tip": "Disattiva per applicare immediatamente ogni evento della rotellina, senza coda di interpolazione",
"ui.snap": "Aggancio",
"ui.space_mouse_axes_reassigned": "Gli assi sono riassegnati nelle Preferenze, e questo vale anche dopo questa calibrazione.",
"ui.space_mouse_calibrate": "Calibra…",
"ui.space_mouse_calibrate_tip": "Muovi la manopola come chiede la finestra, così SolidCraft impara in che direzione e quanto va ogni asse di questo mouse 3D. Viene salvata per questo mouse 3D.",
"ui.space_mouse_calibrate_title": "Calibra mouse 3D",
"ui.space_mouse_calibrated": "Calibrato",
"ui.space_mouse_calibration": "Calibrazione del mouse 3D",
"ui.space_mouse_calibration_done": "Fatto. Salvala per usarla ogni volta che questo mouse 3D è collegato.",
"ui.space_mouse_calibration_no_response": "Un asse si è mosso appena, quindi non si può calibrare. Ricomincia e muovi la manopola più a fondo ogni volta.",
"ui.space_mouse_dead_zone": "Zona morta",
"ui.space_mouse_dead_zone_tip": "Quanto deve muoversi la manopola prima che si muova la vista, come quota della sua corsa completa. Aumentala se la vista si sposta con la manopola a riposo.",
"ui.space_mouse_driven_by": "Quale movimento calibrato del dispositivo comanda questo asse. Se ne scegli uno già usato da un altro asse, i due si scambiano.",
"ui.space_mouse_driven_by_label": "comandato da",
"ui.space_mouse_driver": "Driver del mouse 3D",
"ui.space_mouse_driver_auto": "Automatico",
"ui.space_mouse_driver_direct": "Diretto (hidraw)",
"ui.space_mouse_driver_only_direct": "Lettura diretta del dispositivo; spacenavd non è in esecuzione",
"ui.space_mouse_driver_only_spacenavd": "Lettura tramite spacenavd, l'unica possibilità disponibile",
"ui.space_mouse_forget": "Dimentica calibrazione",
"ui.space_mouse_hint": "Sposta e ruota la vista insieme; gli schizzi usano solo panoramica e zoom.",
"ui.space_mouse_motion_rotation_x": "Rotazione X",
"ui.space_mouse_motion_rotation_y": "Rotazione Y",
"ui.space_mouse_motion_rotation_z": "Rotazione Z",
"ui.space_mouse_motion_translation_x": "Traslazione X",
"ui.space_mouse_motion_translation_y": "Traslazione Y",
"ui.space_mouse_motion_translation_z": "Traslazione Z",
"ui.space_mouse_navigate": "Naviga con SpaceNavigator / SpaceMouse",
"ui.space_mouse_none": "Nessun mouse 3D trovato",
"ui.space_mouse_not_calibrated": "Non calibrato",
"ui.space_mouse_reading": "Lettura",
"ui.space_mouse_reset_axes": "Ripristina assegnazione assi",
"ui.space_mouse_step_lift": "Solleva la manopola, tienila, poi lasciala.",
"ui.space_mouse_step_press": "Premi la manopola verso il basso, tienila, poi lasciala.",
"ui.space_mouse_step_pull": "Tira la manopola verso di te, tienila, poi lasciala.",
"ui.space_mouse_step_push": "Spingi la manopola lontano da te, tienila, poi lasciala.",
"ui.space_mouse_step_rest": "Togli la mano dalla manopola e lasciala ferma.",
"ui.space_mouse_step_slide_left": "Fai scorrere la manopola a sinistra, tienila, poi lasciala.",
"ui.space_mouse_step_slide_right": "Fai scorrere la manopola a destra, tienila, poi lasciala.",
"ui.space_mouse_step_tilt_back": "Inclina la manopola all'indietro (bordo anteriore in alto), tienila, poi lasciala.",
"ui.space_mouse_step_tilt_forward": "Inclina la manopola in avanti (bordo anteriore in basso), tienila, poi lasciala.",
"ui.space_mouse_step_tilt_left": "Inclina la manopola a sinistra (bordo sinistro in basso), tienila, poi lasciala.",
"ui.space_mouse_step_tilt_right": "Inclina la manopola a destra (bordo destro in basso), tienila, poi lasciala.",
"ui.space_mouse_step_twist_clockwise": "Ruota la manopola in senso orario, tienila, poi lasciala.",
"ui.space_mouse_step_twist_counterclockwise": "Ruota la manopola in senso antiorario, tienila, poi lasciala.",
"ui.space_mouse_view_axis": "Asse della vista",
"ui.space_mouse_view_off": "Disattivato",
"ui.space_mouse_view_off_tip": "Il profilo del driver del mouse 3D disattiva questo asse, quindi il suo movimento non muove la vista. Se qui scegli il movimento di un altro asse, i due si scambiano e quel movimento smette di muovere la vista.",
"ui.space_mouse_view_orbit_sideways": "Orbita sinistra / destra",
"ui.space_mouse_view_orbit_up_down": "Orbita su / giù",
"ui.space_mouse_view_pan_sideways": "Panoramica sinistra / destra",
"ui.space_mouse_view_pan_up_down": "Panoramica su / giù",
"ui.space_mouse_view_roll": "Rollio",
"ui.space_mouse_view_unmapped": "Asse {n}",
"ui.space_mouse_view_zoom": "Zoom",
"ui.spacing": "Spaziatura",
"ui.spacing_2": "Spaziatura 2",
"ui.sphere": "Sfera",
+158 -54
View File
@@ -5,7 +5,9 @@
"2. Attach your screenshot: copy and paste it, or save and upload the PNG.": "2. スクリーンショットを添付します。コピーして貼り付けるか、PNGを保存してアップロードします。",
"2D": "2D",
"3. Click Submit new issue on GitHub to send your report.": "3. GitHubでSubmit new issueをクリックしてレポートを送信します。",
"A Single hole snaps to the middle of its face and to the centres of its round edges": "単一の穴を面の中心と丸いエッジの中心にスナップします",
"A new configuration, a copy of the active one": "アクティブな構成をコピーして新しい構成を作成",
"A placed Single hole has a handle to drag it, and picking its face again moves the hole there instead of taking it out": "配置した単一の穴にドラッグ用のハンドルを付け、面をもう一度選ぶと穴を削除せずにそこへ移動します",
"ARRANGE": "配置",
"About SolidCraft": "SolidCraft について",
"Acceleration": "加速度",
@@ -25,11 +27,13 @@
"Advanced": "詳細",
"Against": "相手",
"Alignment": "配置",
"All Lines": "すべての線分",
"All Sketch Points": "すべてのスケッチ点",
"All components": "すべてのコンポーネント",
"All open designs": "すべての開いているデザイン",
"Allowed expressions, separated by semicolons": "使用可能な式(セミコロンで区切る)",
"Also deletes": "同時に削除される要素:",
"Anchor": "基準点",
"Angle 2": "角度 2",
"Animate": "アニメーション",
"App/system information and command settings are included. Review private details before sharing.": "アプリ・システム情報とコマンド設定が含まれます。共有前に非公開の情報を確認してください。",
@@ -47,6 +51,7 @@
"BLEND SURFACE": "ブレンドサーフェス",
"BOUNDARY SURFACE": "境界サーフェス",
"BROWSER": "ブラウザ",
"Bar": "平鋼",
"Bend Edges": "曲げエッジ",
"Bend Line Position": "曲げ線位置",
"Bend Position": "曲げ位置",
@@ -59,6 +64,9 @@
"Body (last if none)": "ボディ (未指定時は最後)",
"Body to split": "分割するボディ",
"Body, or faces to take out": "ボディ、または取り除く面",
"Bottom Left": "左下",
"Bottom Middle": "下中央",
"Bottom Right": "右下",
"Boundary": "境界",
"Bounding box": "境界ボックス",
"CHECK": "チェック",
@@ -78,12 +86,15 @@
"Center Y": "中心 Y",
"Center of mass": "重心",
"Centre to centre": "中心間",
"Centroid": "図心",
"Chamfer Type": "面取りタイプ",
"Channel": "溝形鋼",
"Check collisions": "衝突チェック",
"Checked": "チェック済み",
"Choose Variable radius or Spline in Type.": "タイプで Variable radius またはスプラインを選択してください。",
"Choose a new plane. Sketch geometry and dimensions stay unchanged in its two-dimensional coordinates.": "新しい平面を選択してください。スケッチジオメトリと寸法は2次元座標系のまま維持されます。",
"Choose…": "選択…",
"Circle center": "円の中心",
"Circular": "円形",
"Circumference": "円周",
"Close draft": "下書きを閉じる",
@@ -113,10 +124,12 @@
"Copy screenshot": "スクリーンショットをコピー",
"Corner Relief": "コーナーリリーフ",
"Corner Relief Shape": "コーナーリリーフ形状",
"Corner radius": "コーナー半径",
"Counterbore depth": "座ぐり深さ",
"Counterbore Ø": "座ぐり Ø",
"Countersink angle": "皿穴角度",
"Countersink Ø": "皿穴 Ø",
"Create Hole": "穴を作成",
"Create Issue — review draft": "Issueを作成 — 下書きの確認",
"Create Issue…": "Issueを作成…",
"Cross curves": "交差する曲線",
@@ -152,6 +165,7 @@
"Don't ask again": "今後確認しない",
"Double-click to rename": "ダブルクリックで名前変更",
"Double-clicking the middle button in the view: Home (the home view, framing what is shown), Fit (frame what is shown, keeping the orientation) or nothing": "ビュー上で中ボタンをダブルクリックした時の動作: ホーム(全体を収めたホームビュー)、全体表示(向きを維持して全体を収める)、または無効",
"Drag to move the hole; click to remove it": "ドラッグで穴を移動、クリックで削除",
"Drive Joint": "ジョイントを駆動",
"Duration": "時間",
"Edges": "エッジ",
@@ -185,6 +199,7 @@
"Face": "面",
"Face Appearance": "面の外観",
"Face attachment lost": "面アタッチメントが失われました",
"Face center": "面の中心",
"Faces": "面",
"Faces / edges / vertices": "面 / エッジ / 頂点",
"Faces to split": "分割する面",
@@ -200,6 +215,7 @@
"First plane": "第1平面",
"Fit and G2 corners require Constant radius.": "フィットと G2 コーナーには Constant radius が必要です。",
"Fixed Face": "固定面",
"Flange thickness": "フランジ厚",
"Flat Pattern": "フラットパターン",
"Flat size": "展開サイズ",
"Follow camera (Look At sketches)": "カメラ追従(スケッチを正面視)",
@@ -222,6 +238,7 @@
"Holes (edges on them)": "穴(そのエッジ)",
"Home view": "ホームビュー",
"Horiz./Vert.": "水平 / 垂直",
"I-Beam": "I形鋼",
"IMAGES": "画像",
"Import…": "読み込み…",
"In This Design": "このデザイン内",
@@ -242,10 +259,12 @@
"Keep of the other surface": "相手のサーフェスで残す部分",
"Key a joint's value at this step": "このステップでジョイントの値をキー設定",
"Keys": "キー",
"L-Angle": "山形鋼",
"LIBRARY": "ライブラリ",
"LINKS": "リンク",
"Later": "後で",
"Leave it": "そのままにする",
"Left Middle": "左中央",
"Legacy face attachment. Rebinding to a certified face creates an exact attachment.": "従来の面アタッチメントです。確定された面に再バインドすると正確なアタッチメントが作成されます。",
"Length": "長さ",
"Length units": "長さの単位",
@@ -255,6 +274,7 @@
"Limits": "制限",
"Line Spacing": "行間",
"Line Type": "線種",
"Lines": "線分",
"Listing the installed fonts…": "インストール済みフォントを一覧表示中…",
"Load library": "ライブラリを読み込む",
"Local library": "ローカルライブラリ",
@@ -288,6 +308,7 @@
"Move Type": "移動タイプ",
"Move down": "下へ移動",
"Move earlier": "前へ移動",
"Move holes by clicking or dragging": "クリックやドラッグで穴を移動",
"Move later": "後へ移動",
"Move up": "上へ移動",
"Name": "名前",
@@ -319,6 +340,7 @@
"Orbit (right drag)": "回転(右ドラッグ)",
"Other side": "反対側",
"Other surface (mutual trim)": "相手のサーフェス(相互トリム)",
"Outer radius": "外側コーナー半径",
"Outside": "外側",
"Overall length": "全長",
"Param. Graph": "パラメータ図",
@@ -361,6 +383,7 @@
"Recover": "復元",
"Recover unsaved design?": "未保存のデザインを復元しますか?",
"Rectangular": "長方形",
"Rectangular Tube": "角形鋼管",
"Reference face": "参照面",
"Remove Tools": "ツールボディを削除",
"Remove condition": "条件を削除",
@@ -398,11 +421,15 @@
"Rib Offset": "リブのオフセット",
"Rib Thickness": "リブの厚さ",
"Ribs": "リブ",
"Right Middle": "右中央",
"Rim Edge": "リムエッジ",
"Ring of tools on the right button": "右ボタンのツールリング",
"Roll Back Here": "ここまでロールバック",
"Roll History Marker Here": "履歴マーカーをここに移動",
"Root radius": "付け根半径",
"Round": "丸め",
"Round Bar": "丸鋼",
"Round Tube": "丸形鋼管",
"Rule": "ルール",
"Rule name": "ルール名",
"Rules run from top to bottom. Matched drives change effective values.": "ルールは上から順に実行されます。条件に一致する駆動ルールが有効値を変更します。",
@@ -421,6 +448,7 @@
"Search this library": "このライブラリを検索",
"Second plane": "第2平面",
"Section": "断面",
"Section (optional)": "断面(任意)",
"Sections (one sketch each)": "セクション (各1スケッチ)",
"Select Other": "その他を選択",
"Select Other: hold the left button still on the model (or right-click › Select Other…) to list everything under the cursor; click again on the same spot to select the next thing there. Double-click the middle button to go Home (Preferences › Navigation).": "その他を選択: モデル上で左ボタンを長押し(または右クリック › その他を選択…)するとカーソル下の要素が一覧表示されます。同じ場所を再度クリックすると次の要素が選択されます。中ボタンをダブルクリックするとホームビューに戻ります(環境設定 › ナビゲーション)。",
@@ -445,6 +473,7 @@
"Sketch plane has no body-face attachment.": "スケッチ平面にボディ面のアタッチメントがありません。",
"Sketch points": "スケッチ点",
"Slot width": "長穴の幅",
"Snap to face and edge centres": "面とエッジの中心にスナップ",
"SolidCraft closed before these designs were saved. Their last autosave can be opened.": "これらのデザインが保存される前にSolidCraftが終了しました。最後の自動保存ファイルを開くことができます。",
"Specialise": "特殊操作",
"Speed": "速度",
@@ -492,11 +521,15 @@
"To": "終了",
"To Offset": "オフセットまで",
"To edges": "終了側エッジ",
"Toe radius": "先端半径",
"Tolerance": "公差",
"Too close": "近すぎる",
"Tool Bodies": "ツールボディ",
"Tools": "ツール",
"Tools, clockwise from the top": "上から時計回りにツール",
"Top Left": "左上",
"Top Middle": "上中央",
"Top Right": "右上",
"Trimming tool (plane, face or curves)": "トリムツール(平面、面、または曲線)",
"Turn off section analysis before exporting the view.": "断面解析をオフにしてからエクスポートしてください。",
"Type": "タイプ",
@@ -521,6 +554,7 @@
"Wall": "肉厚",
"Wall Location": "壁の位置",
"Wall Thickness": "壁の厚さ",
"Web thickness": "ウェブ厚",
"What did you do just before the problem? A short list is enough": "問題の直前に行った操作を簡単に記入してください",
"What did you expect to see?": "どのような結果を期待していましたか?",
"What happened?": "何が起きましたか?",
@@ -542,6 +576,8 @@
"Z angle": "Z角度",
"Z distance": "Z距離",
"Zebra": "ゼブラ",
"ai.prefs.allow_control": "AI エージェントの接続を許可(コントロールチャンネル / MCP)",
"ai.prefs.allow_control_note": "このコンピューター内だけのコントロールチャンネル(127.0.0.1、ポート 27878 または次に空いているポート)を開きます。接続するプログラムは、起動のたびに作られ、あなたのユーザーアカウントだけが読める秘密のトークンも提示する必要があります。次に SolidCraft を起動したときから有効です。オフ:--control を付けて起動しない限り、何も待ち受けません。",
"ai.prefs.availability": "アシスタントの操作",
"ai.prefs.background_commands": "エージェントのコマンドをバックグラウンドで実行",
"ai.prefs.follow_camera": "カメラをスケッチに向ける",
@@ -689,6 +725,10 @@
"cmd.file_insert_step": "STEP を挿入",
"cmd.file_save_mesh": "メッシュとして保存",
"cmd.file_slicers": "インストール済みのスライサー",
"cmd.frame_member": "フレーム部材",
"cmd.frame_profile_insert": "形材を挿入",
"cmd.frame_profile_list": "形材ライブラリ",
"cmd.frame_profile_properties": "形材のプロパティ",
"cmd.inspect_accessibility": "アクセシビリティ解析",
"cmd.inspect_center_of_mass": "重心",
"cmd.inspect_clearance": "クリアランス",
@@ -747,6 +787,7 @@
"cmd.motion_trace_edit": "モーション トレースを編集",
"cmd.motion_trace_keep": "モーション トレースを保持",
"cmd.occurrence_copy": "貼り付け(インスタンス)",
"cmd.occurrence_drag": "オカレンスをドラッグ",
"cmd.occurrence_ground": "空間固定",
"cmd.occurrence_move": "オカレンスを移動",
"cmd.occurrence_properties": "オカレンスの物理的プロパティ",
@@ -804,6 +845,7 @@
"cmd.sketch_auto_constrain_from_datum": "基準から自動拘束",
"cmd.sketch_auto_project": "参照上のエッジを自動投影",
"cmd.sketch_blend_curve": "ブレンド曲線",
"cmd.sketch_cancel": "スケッチをキャンセル",
"cmd.sketch_chain": "チェーン",
"cmd.sketch_chamfer_distance_angle": "距離と角度の面取り",
"cmd.sketch_chamfer_equal_distance": "等距離面取り",
@@ -1008,6 +1050,7 @@
"file_load.stopping": "前の操作の停止を待っています...",
"file_load.waiting": "ファイル操作を待っています",
"fits the face, e.g. M8": "面に適合するサイズ (例: M8)",
"from the profile": "形材から",
"from the rule": "ルールから",
"help.apache": "Apacheライセンス2.0",
"help.attributions": "帰属表示 (ATTRIBUTION.md)",
@@ -1363,6 +1406,7 @@
"search.suggest": "{label} ですか?",
"search.try": "コマンド名、このデザインのフィーチャー、またはパラメーターを入力します。値を指定して実行するには、IDとJSONオブジェクトを入力します:{example}",
"search.valid": "有効",
"section.off_hint": "平面が選択されていません。OK を押すとセクションを解除します。",
"settings.display_quality_note": "表示だけに影響します。設計や書き出しは変わりません。",
"settings.frame_rate_note": "ビューの右下に 1 秒あたりのフレーム数を表示します。",
"settings.measure_axis_distances": "計測のX・Y・Z距離を表示",
@@ -1370,6 +1414,8 @@
"settings.msaa_applies_on_restart": "アンチエイリアスは次回 SolidCraft を起動したときに適用されます",
"settings.msaa_reset": "{setting}: {requested}× はこのグラフィックスデバイスではサポートされていないため、{reset}× に変更しました(サポート: {supported})。",
"settings.msaa_unsupported": "このグラフィックスデバイスではサポートされていません",
"settings.reference_geometry_through_bodies": "ボディ越しに参照ジオメトリを表示",
"settings.reference_geometry_through_bodies_help": "非アクティブなスケッチ輪郭と基準平面をシェーディングされたボディの上に描画します",
"settings.reset_intro": "次の設定はこのコンピューターでは使用できず、SolidCraft が起動できなくなるため変更されました:",
"settings.reset_title": "設定が変更されました",
"settings.supersampling_note": "ビューを高い解像度で描画してから縮小します。4K 未満の画面でエッジ、線、グリッドが滑らかになります。GPU の負荷が増えます(1.5× で約 2.25 倍、2× で 4 倍のピクセル)。",
@@ -1429,7 +1475,106 @@
"trace.stopped_by_contact": "サンプル {sample} で終了: {a} が {b} を通り抜けてしまいます",
"trace.stopped_by_loop": "サンプル {sample} で終了: {joint} を通るループはこれ以上閉じられません",
"ui.1_degree_of_freedom": "自由度 1",
"ui.3d_mouse_axes_reassigned": "軸の割り当ては環境設定で変更されており、このキャリブレーションの後も適用されます。",
"ui.3d_mouse_button": "ボタン {number}",
"ui.3d_mouse_button_nothing": "なし",
"ui.3d_mouse_button_settings": "3Dマウスの設定",
"ui.3d_mouse_buttons": "ボタン",
"ui.3d_mouse_buttons_hint": "3Dマウスのボタンを押すとここに表示されます。動作を選んでください。",
"ui.3d_mouse_buttons_no_device": "ボタンの割り当てを設定するには3Dマウスを接続してください。",
"ui.3d_mouse_buttons_reset": "ボタンを既定に戻す",
"ui.3d_mouse_calibrate": "キャリブレーション…",
"ui.3d_mouse_calibrate_tip": "ウィンドウの指示どおりにキャップを動かすと、この3Dマウスの各軸の向きと移動量をSolidCraftが学習します。この3Dマウス用に保存されます。",
"ui.3d_mouse_calibrate_title": "3Dマウスのキャリブレーション",
"ui.3d_mouse_calibrate_wait": "SolidCraftが認識できるように、3Dマウスを一度動かしてください。",
"ui.3d_mouse_calibrated": "キャリブレーション済み",
"ui.3d_mouse_calibration": "3Dマウスのキャリブレーション",
"ui.3d_mouse_calibration_done": "完了しました。保存すると、この3Dマウスを接続したときに毎回使われます。",
"ui.3d_mouse_calibration_no_response": "ほとんど動かなかった軸があるため、キャリブレーションできません。最初からやり直し、毎回キャップをもっと大きく動かしてください。",
"ui.3d_mouse_circles_help": "円はデバイスがキャリブレーション後に送る値を示します。テストモデルは、反転・速度・軸の割り当てを経て、表示がそれをどう扱うかを示します。",
"ui.3d_mouse_dead_zone": "デッドゾーン",
"ui.3d_mouse_dead_zone_tip": "視点が動き出すまでにキャップを動かす量(全ストロークに対する割合)。キャップに触れていないのに視点が動く場合は大きくしてください。",
"ui.3d_mouse_denied": "SolidCraftは3Dマウスを認識していますが、読み取る権限がありません。udevルールは3Dマウスのセットアップ手順を参照してください。",
"ui.3d_mouse_denied_short": "見つかりましたが読み取れません",
"ui.3d_mouse_driven_by": "この軸を操作するデバイスのキャリブレーション済みの動き。他の軸で使われている動きを選ぶと、2つが入れ替わります。",
"ui.3d_mouse_driven_by_label": "操作元",
"ui.3d_mouse_driver": "3Dマウスのドライバー",
"ui.3d_mouse_driver_auto": "自動",
"ui.3d_mouse_driver_direct": "直接 (hidraw)",
"ui.3d_mouse_driver_fallback": "いまは spacenavd 経由で読み取っています。デバイス自体を開けませんでした。",
"ui.3d_mouse_driver_only_direct": "デバイスを直接読み取り中(spacenavd は起動していません)",
"ui.3d_mouse_driver_only_spacenavd": "spacenavd 経由で読み取り中(他の方法はありません)",
"ui.3d_mouse_forget": "キャリブレーションを削除",
"ui.3d_mouse_ghost_left_viewport": "ビューポート左",
"ui.3d_mouse_ghost_left_window": "ウィンドウ左",
"ui.3d_mouse_ghost_position": "位置",
"ui.3d_mouse_ghost_right_viewport": "ビューポート右",
"ui.3d_mouse_hint": "視点の移動と回転を同時に行います(スケッチ中はパンとズームのみ)",
"ui.3d_mouse_kind_cap": "センターに戻る",
"ui.3d_mouse_kind_question": "どの種類の3Dマウスですか?",
"ui.3d_mouse_kind_trackball": "トラックボール",
"ui.3d_mouse_looks_like_cap": "押さえている間は値がそのまま残ります。「センターに戻る」タイプの動き方です。",
"ui.3d_mouse_looks_like_trackball": "動きを止めるとすぐに値が戻ります。トラックボールの動き方です。",
"ui.3d_mouse_motion_rotation_x": "回転 X",
"ui.3d_mouse_motion_rotation_y": "回転 Y",
"ui.3d_mouse_motion_rotation_z": "回転 Z",
"ui.3d_mouse_motion_translation_x": "平行移動 X",
"ui.3d_mouse_motion_translation_y": "平行移動 Y",
"ui.3d_mouse_motion_translation_z": "平行移動 Z",
"ui.3d_mouse_navigate": "3Dマウスで視点を操作",
"ui.3d_mouse_none": "3Dマウスが見つかりません",
"ui.3d_mouse_not_calibrated": "未キャリブレーション",
"ui.3d_mouse_offer": "3Dマウスをキャリブレーションすると、入れ替わった軸や反転した軸が直り、速度と操作感も整います。",
"ui.3d_mouse_offer_never": "今後表示しない",
"ui.3d_mouse_offer_swap": "Hidraw(直接ドライバー)に切り替える",
"ui.3d_mouse_reading": "読み取り値",
"ui.3d_mouse_reset_axes": "軸の割り当てをリセット",
"ui.3d_mouse_reset_view": "表示をリセット",
"ui.3d_mouse_restore": "3Dマウスの設定を既定に戻す",
"ui.3d_mouse_restore_ask": "3Dマウスの設定を既定に戻しますか?キャリブレーションとボタン割り当ては残ります。",
"ui.3d_mouse_section": "3Dマウス",
"ui.3d_mouse_show_in_view": "3Dビューに3Dマウスを表示",
"ui.3d_mouse_show_in_view_tip": "左下に3Dマウスの絵を表示し、操作に合わせて動かします。",
"ui.3d_mouse_skip": "このデバイスではできません",
"ui.3d_mouse_skip_tip": "この動きを両方向とも飛ばし、キャリブレーションから外します。",
"ui.3d_mouse_speed": "3D マウス速度",
"ui.3d_mouse_step_lift": "キャップを持ち上げて保持し、離してください。",
"ui.3d_mouse_step_press": "キャップを押し下げて保持し、離してください。",
"ui.3d_mouse_step_pull": "キャップを手前に引いて保持し、離してください。",
"ui.3d_mouse_step_push": "キャップを奥に押して保持し、離してください。",
"ui.3d_mouse_step_rest": "キャップから手を離し、動かさないでください。",
"ui.3d_mouse_step_rest_trackball": "ボールから手を離し、動かさないでください。",
"ui.3d_mouse_step_ring_clockwise": "スクロールリングを時計回りに数クリック回してください。",
"ui.3d_mouse_step_ring_counterclockwise": "スクロールリングを反時計回りに数クリック回してください。",
"ui.3d_mouse_step_roll_away": "ボールを奥に数回転がし、止まるまで待ってください。",
"ui.3d_mouse_step_roll_left": "ボールを左に数回転がし、止まるまで待ってください。",
"ui.3d_mouse_step_roll_right": "ボールを右に数回転がし、止まるまで待ってください。",
"ui.3d_mouse_step_roll_toward": "ボールを手前に数回転がし、止まるまで待ってください。",
"ui.3d_mouse_step_slide_left": "キャップを左にスライドして保持し、離してください。",
"ui.3d_mouse_step_slide_right": "キャップを右にスライドして保持し、離してください。",
"ui.3d_mouse_step_spin_clockwise": "ボールを時計回りに数回ひねり、止まるまで待ってください。",
"ui.3d_mouse_step_spin_counterclockwise": "ボールを反時計回りに数回ひねり、止まるまで待ってください。",
"ui.3d_mouse_step_tilt_away": "キャップの上側を奥に傾けて(手前の縁が上がります)保持し、離してください。",
"ui.3d_mouse_step_tilt_left": "キャップを左に傾け(左の縁を下げて)保持し、離してください。",
"ui.3d_mouse_step_tilt_right": "キャップを右に傾け(右の縁を下げて)保持し、離してください。",
"ui.3d_mouse_step_tilt_toward": "キャップの上側を手前に傾けて(手前の縁が下がります)保持し、離してください。",
"ui.3d_mouse_step_touch": "押さずにキャップに手を置いてください。",
"ui.3d_mouse_step_twist_clockwise": "キャップを時計回りにひねって保持し、離してください。",
"ui.3d_mouse_step_twist_counterclockwise": "キャップを反時計回りにひねって保持し、離してください。",
"ui.3d_mouse_switch_cap": "センターに戻るタイプとしてキャリブレーション",
"ui.3d_mouse_switch_trackball": "トラックボールとしてキャリブレーション",
"ui.3d_mouse_view_axis": "ビューの軸",
"ui.3d_mouse_view_off": "オフ",
"ui.3d_mouse_view_off_tip": "3D マウスのドライバーのプロファイルがこの軸をオフにしているため、この軸の動きではビューは動きません。ここで他の軸の動きを選ぶと 2 つが入れ替わり、その動きではビューが動かなくなります。",
"ui.3d_mouse_view_orbit_sideways": "左右オービット",
"ui.3d_mouse_view_orbit_up_down": "上下オービット",
"ui.3d_mouse_view_pan_sideways": "左右パン",
"ui.3d_mouse_view_pan_up_down": "上下パン",
"ui.3d_mouse_view_roll": "ロール",
"ui.3d_mouse_view_unmapped": "軸 {n}",
"ui.3d_mouse_view_zoom": "ズーム",
"ui.3d_mouse_waiting": "動きを待機中",
"ui.3d_mouse_wiggle": "接続している場合は、少し動かしてみてください。",
"ui.3d_sketch": "3D スケッチ",
"ui.activate": "アクティブ化",
"ui.active_component": "アクティブなコンポーネント",
@@ -1667,6 +1812,7 @@
"ui.blocked": "到達不可",
"ui.bodies": "ボディ",
"ui.bodies_all_if_none": "ボディ(未選択ならすべて)",
"ui.bottom": "底面",
"ui.box": "直方体",
"ui.break": "分割",
"ui.browser_bodies_one": "{count} ボディ",
@@ -1792,6 +1938,8 @@
"ui.extract_design_changed": "ファイルの選択中にデザインが変更されました。ファイルへの抽出をやり直してください。",
"ui.extract_done": "コンポーネントは独立したデザインになり、ここにリンクされました。",
"ui.extrude": "押し出し",
"ui.extrude_auto_to_object": "選択した対象まで押し出し",
"ui.extrude_auto_to_object_tip": "押し出しでプロファイルを選択した後、その平面外の面・頂点・平行な平面を選ぶと、範囲タイプが「オブジェクトまで」に切り替わります",
"ui.factor": "倍率",
"ui.feature_history": "フィーチャー履歴",
"ui.feature_options": "フィーチャーオプション",
@@ -2047,6 +2195,9 @@
"ui.rectangle": "長方形",
"ui.rectangular_pattern": "矩形パターン",
"ui.redo": "やり直す",
"ui.reference_1": "参照 1",
"ui.reference_2": "参照 2",
"ui.reference_distance": "参照からの距離",
"ui.relink_design_changed": "参照元の選択中にアセンブリが変更されました。再リンクをやり直してください。",
"ui.relink_done": "すべてのインスタンスの参照元を再リンクしました。",
"ui.relink_not_linked": "このコンポーネントは参照元の設計にリンクされていません。",
@@ -2096,6 +2247,12 @@
"ui.sent_to_slicer": "{slicer} に送信しました",
"ui.sheet_gap": "ギャップ",
"ui.shell": "シェル",
"ui.shortcut_capture_add_key": "通常のキーを1つ追加してください。Escでキャンセルします。",
"ui.shortcut_capture_hint": "割り当てをクリックし、修飾キーと1つのキーを押します。1秒以内に修飾キーを追加し、すべて離して確定します。Escでキャンセルします。",
"ui.shortcut_capture_press": "修飾キーと1つのキーを押してください。Escでキャンセルします。",
"ui.shortcut_capture_release": "すべてのキーを離すと確定します。Escでキャンセルします。",
"ui.shortcut_capture_settling": "ショートカットを確定中… Escでキャンセルします。",
"ui.shortcut_multiple_keys": "修飾キーと、それ以外のキー1つだけを使用してください。割り当てをクリックしてやり直してください。",
"ui.show": "表示",
"ui.showAll": "すべて表示",
"ui.showAllBodies": "すべてのボディを表示",
@@ -2125,59 +2282,6 @@
"ui.smooth_wheel_zoom": "滑らかなホイールズーム",
"ui.smooth_wheel_zoom_tip": "オフにすると、ホイール操作のたびにズームが即座に反映され、滑らかな減速効果は適用されません。",
"ui.snap": "スナップ",
"ui.space_mouse_axes_reassigned": "軸の割り当ては環境設定で変更されており、このキャリブレーションの後も適用されます。",
"ui.space_mouse_calibrate": "キャリブレーション…",
"ui.space_mouse_calibrate_tip": "ウィンドウの指示どおりにキャップを動かすと、この3Dマウスの各軸の向きと移動量をSolidCraftが学習します。この3Dマウス用に保存されます。",
"ui.space_mouse_calibrate_title": "3Dマウスのキャリブレーション",
"ui.space_mouse_calibrated": "キャリブレーション済み",
"ui.space_mouse_calibration": "3Dマウスのキャリブレーション",
"ui.space_mouse_calibration_done": "完了しました。保存すると、この3Dマウスを接続したときに毎回使われます。",
"ui.space_mouse_calibration_no_response": "ほとんど動かなかった軸があるため、キャリブレーションできません。最初からやり直し、毎回キャップをもっと大きく動かしてください。",
"ui.space_mouse_dead_zone": "デッドゾーン",
"ui.space_mouse_dead_zone_tip": "視点が動き出すまでにキャップを動かす量(全ストロークに対する割合)。キャップに触れていないのに視点が動く場合は大きくしてください。",
"ui.space_mouse_driven_by": "この軸を操作するデバイスのキャリブレーション済みの動き。他の軸で使われている動きを選ぶと、2つが入れ替わります。",
"ui.space_mouse_driven_by_label": "操作元",
"ui.space_mouse_driver": "3Dマウスのドライバー",
"ui.space_mouse_driver_auto": "自動",
"ui.space_mouse_driver_direct": "直接 (hidraw)",
"ui.space_mouse_driver_only_direct": "デバイスを直接読み取り中(spacenavd は起動していません)",
"ui.space_mouse_driver_only_spacenavd": "spacenavd 経由で読み取り中(他の方法はありません)",
"ui.space_mouse_forget": "キャリブレーションを削除",
"ui.space_mouse_hint": "視点の移動と回転を同時に行います(スケッチ中はパンとズームのみ)",
"ui.space_mouse_motion_rotation_x": "回転 X",
"ui.space_mouse_motion_rotation_y": "回転 Y",
"ui.space_mouse_motion_rotation_z": "回転 Z",
"ui.space_mouse_motion_translation_x": "平行移動 X",
"ui.space_mouse_motion_translation_y": "平行移動 Y",
"ui.space_mouse_motion_translation_z": "平行移動 Z",
"ui.space_mouse_navigate": "SpaceNavigator / SpaceMouseで視点を操作",
"ui.space_mouse_none": "3Dマウスが見つかりません",
"ui.space_mouse_not_calibrated": "未キャリブレーション",
"ui.space_mouse_reading": "読み取り値",
"ui.space_mouse_reset_axes": "軸の割り当てをリセット",
"ui.space_mouse_step_lift": "キャップを持ち上げて保持し、離してください。",
"ui.space_mouse_step_press": "キャップを押し下げて保持し、離してください。",
"ui.space_mouse_step_pull": "キャップを手前に引いて保持し、離してください。",
"ui.space_mouse_step_push": "キャップを奥に押して保持し、離してください。",
"ui.space_mouse_step_rest": "キャップから手を離し、動かさないでください。",
"ui.space_mouse_step_slide_left": "キャップを左にスライドして保持し、離してください。",
"ui.space_mouse_step_slide_right": "キャップを右にスライドして保持し、離してください。",
"ui.space_mouse_step_tilt_back": "キャップを後ろに傾け(手前の縁を上げて)保持し、離してください。",
"ui.space_mouse_step_tilt_forward": "キャップを前に傾け(手前の縁を下げて)保持し、離してください。",
"ui.space_mouse_step_tilt_left": "キャップを左に傾け(左の縁を下げて)保持し、離してください。",
"ui.space_mouse_step_tilt_right": "キャップを右に傾け(右の縁を下げて)保持し、離してください。",
"ui.space_mouse_step_twist_clockwise": "キャップを時計回りにひねって保持し、離してください。",
"ui.space_mouse_step_twist_counterclockwise": "キャップを反時計回りにひねって保持し、離してください。",
"ui.space_mouse_view_axis": "ビューの軸",
"ui.space_mouse_view_off": "オフ",
"ui.space_mouse_view_off_tip": "3D マウスのドライバーのプロファイルがこの軸をオフにしているため、この軸の動きではビューは動きません。ここで他の軸の動きを選ぶと 2 つが入れ替わり、その動きではビューが動かなくなります。",
"ui.space_mouse_view_orbit_sideways": "左右オービット",
"ui.space_mouse_view_orbit_up_down": "上下オービット",
"ui.space_mouse_view_pan_sideways": "左右パン",
"ui.space_mouse_view_pan_up_down": "上下パン",
"ui.space_mouse_view_roll": "ロール",
"ui.space_mouse_view_unmapped": "軸 {n}",
"ui.space_mouse_view_zoom": "ズーム",
"ui.spacing": "間隔",
"ui.spacing_2": "間隔 2",
"ui.sphere": "球",
@@ -2219,7 +2323,7 @@
"ui.top": "上面",
"ui.torus": "トーラス",
"ui.total_angle": "合計角度",
"ui.trackpad_pan_tip": "トラックパッドのジェスチャーでパンします(オフの場合はマウスホイールと同様にズームします)。マウスホイールはズーム、サイドホイールは横方向のパン、ピンチ操作は常にズームになります。",
"ui.trackpad_pan_tip": "2本指スクロールでパンします。FusionではShift + 2本指スクロールで回転します。オフの場合はスクロールでズームします。マウスホイールとピンチ操作はズーム、サイドホイールは横方向のパンになります。",
"ui.trim": "トリム",
"ui.twist": "ねじれ",
"ui.two_finger_scroll_pans": "2本指スクロールでパン",
+113 -54
View File
@@ -531,6 +531,10 @@
"cmd.file_insert_step": "STEP 삽입",
"cmd.file_save_mesh": "메쉬로 저장",
"cmd.file_slicers": "설치된 슬라이서",
"cmd.frame_member": "프레임 부재",
"cmd.frame_profile_insert": "프로파일 삽입",
"cmd.frame_profile_list": "프로파일 라이브러리",
"cmd.frame_profile_properties": "프로파일 속성",
"cmd.inspect_accessibility": "접근성 분석",
"cmd.inspect_center_of_mass": "무게중심",
"cmd.inspect_clearance": "여유 간격",
@@ -1070,6 +1074,8 @@
"settings.msaa_applies_on_restart": "안티앨리어싱은 다음에 SolidCraft를 시작할 때 적용됩니다",
"settings.msaa_reset": "{setting}: {requested}×는 이 그래픽 장치에서 지원되지 않아 {reset}×로 변경했습니다(지원: {supported}).",
"settings.msaa_unsupported": "이 그래픽 장치에서 지원되지 않음",
"settings.reference_geometry_through_bodies": "바디를 통해 참조 형상 표시",
"settings.reference_geometry_through_bodies_help": "비활성 스케치 윤곽과 기준 평면을 음영 처리된 바디 위에 그립니다",
"settings.reset_intro": "다음 설정은 이 컴퓨터에서 작동하지 않아 SolidCraft를 시작할 수 없게 하므로 변경되었습니다:",
"settings.reset_title": "설정이 변경되었습니다",
"settings.supersampling_note": "뷰를 더 높은 해상도로 그린 뒤 축소합니다. 4K 미만 화면에서 모서리, 선, 그리드가 더 매끄러워집니다. GPU 시간이 듭니다: 1.5×에서 약 2.25배, 2×에서 4배의 픽셀.",
@@ -1125,7 +1131,106 @@
"trace.stopped_by_contact": "샘플 {sample}에서 끝남: {a}이(가) {b}을(를) 통과합니다",
"trace.stopped_by_loop": "샘플 {sample}에서 끝남: {joint}을(를) 지나는 루프를 더 이상 닫을 수 없습니다",
"ui.1_degree_of_freedom": "자유도 1개",
"ui.3d_mouse_axes_reassigned": "축이 환경설정에서 다시 지정되어 있으며, 이 보정 후에도 적용됩니다.",
"ui.3d_mouse_button": "버튼 {number}",
"ui.3d_mouse_button_nothing": "없음",
"ui.3d_mouse_button_settings": "3D 마우스 설정",
"ui.3d_mouse_buttons": "버튼",
"ui.3d_mouse_buttons_hint": "3D 마우스의 버튼을 누르면 여기에 나타납니다. 동작을 고르세요.",
"ui.3d_mouse_buttons_no_device": "버튼 동작을 정하려면 3D 마우스를 연결하세요.",
"ui.3d_mouse_buttons_reset": "기본 버튼으로 되돌리기",
"ui.3d_mouse_calibrate": "보정…",
"ui.3d_mouse_calibrate_tip": "창의 안내대로 캡을 움직이면 SolidCraft가 이 3D 마우스의 각 축이 어느 방향으로 얼마나 움직이는지 학습합니다. 이 3D 마우스에 저장됩니다.",
"ui.3d_mouse_calibrate_title": "3D 마우스 보정",
"ui.3d_mouse_calibrate_wait": "SolidCraft가 인식할 수 있도록 3D 마우스를 한 번 움직여 주세요.",
"ui.3d_mouse_calibrated": "보정됨",
"ui.3d_mouse_calibration": "3D 마우스 보정",
"ui.3d_mouse_calibration_done": "완료했습니다. 저장하면 이 3D 마우스를 연결할 때마다 사용됩니다.",
"ui.3d_mouse_calibration_no_response": "거의 움직이지 않은 축이 있어 보정할 수 없습니다. 처음부터 다시 하고 매번 캡을 더 멀리 움직이세요.",
"ui.3d_mouse_circles_help": "원은 보정 후 장치가 보내는 값을 보여 줍니다. 테스트 모델은 반전, 속도, 축 할당을 거쳐 화면이 그 값으로 하는 일을 보여 줍니다.",
"ui.3d_mouse_dead_zone": "데드존",
"ui.3d_mouse_dead_zone_tip": "뷰가 움직이기 전에 캡이 움직여야 하는 정도로, 전체 이동 범위에 대한 비율입니다. 캡을 건드리지 않았는데 뷰가 움직이면 높이세요.",
"ui.3d_mouse_denied": "SolidCraft가 3D 마우스를 찾았지만 읽을 권한이 없습니다. udev 규칙은 3D 마우스 설정 안내를 참고하세요.",
"ui.3d_mouse_denied_short": "찾았지만 읽을 수 없음",
"ui.3d_mouse_driven_by": "이 축을 움직이는 장치의 보정된 동작입니다. 다른 축이 이미 쓰는 동작을 고르면 둘이 서로 바뀝니다.",
"ui.3d_mouse_driven_by_label": "제어 동작",
"ui.3d_mouse_driver": "3D 마우스 드라이버",
"ui.3d_mouse_driver_auto": "자동",
"ui.3d_mouse_driver_direct": "직접 (hidraw)",
"ui.3d_mouse_driver_fallback": "지금은 spacenavd를 통해 읽는 중입니다. 장치 자체를 열 수 없었습니다.",
"ui.3d_mouse_driver_only_direct": "장치를 직접 읽는 중 (spacenavd가 실행 중이 아님)",
"ui.3d_mouse_driver_only_spacenavd": "spacenavd로 읽는 중 (다른 방법이 없음)",
"ui.3d_mouse_forget": "보정 삭제",
"ui.3d_mouse_ghost_left_viewport": "뷰포트 왼쪽",
"ui.3d_mouse_ghost_left_window": "창 왼쪽",
"ui.3d_mouse_ghost_position": "위치",
"ui.3d_mouse_ghost_right_viewport": "뷰포트 오른쪽",
"ui.3d_mouse_hint": "뷰를 함께 이동하고 회전합니다. 스케치는 이동과 확대/축소만 사용합니다.",
"ui.3d_mouse_kind_cap": "중앙 복귀",
"ui.3d_mouse_kind_question": "어떤 종류의 3D 마우스인가요?",
"ui.3d_mouse_kind_trackball": "트랙볼",
"ui.3d_mouse_looks_like_cap": "잡고 있는 동안 값이 그대로 유지됩니다. ‘중앙 복귀’ 방식 장치처럼요.",
"ui.3d_mouse_looks_like_trackball": "움직임을 멈추면 바로 값이 돌아옵니다. 트랙볼처럼요.",
"ui.3d_mouse_motion_rotation_x": "회전 X",
"ui.3d_mouse_motion_rotation_y": "회전 Y",
"ui.3d_mouse_motion_rotation_z": "회전 Z",
"ui.3d_mouse_motion_translation_x": "이동 X",
"ui.3d_mouse_motion_translation_y": "이동 Y",
"ui.3d_mouse_motion_translation_z": "이동 Z",
"ui.3d_mouse_navigate": "3D 마우스로 탐색",
"ui.3d_mouse_none": "3D 마우스를 찾을 수 없음",
"ui.3d_mouse_not_calibrated": "보정 안 됨",
"ui.3d_mouse_offer": "3D 마우스를 보정하면 바뀌거나 반전된 축이 바로잡히고 속도와 조작감이 맞춰집니다.",
"ui.3d_mouse_offer_never": "다시 표시하지 않음",
"ui.3d_mouse_offer_swap": "Hidraw(직접 드라이버)로 전환",
"ui.3d_mouse_reading": "읽은 값",
"ui.3d_mouse_reset_axes": "축 지정 초기화",
"ui.3d_mouse_reset_view": "뷰 초기화",
"ui.3d_mouse_restore": "3D 마우스 기본값 복원",
"ui.3d_mouse_restore_ask": "3D 마우스 설정을 기본값으로 되돌릴까요? 보정과 버튼 할당은 그대로 유지됩니다.",
"ui.3d_mouse_section": "3D 마우스",
"ui.3d_mouse_show_in_view": "3D 뷰에 3D 마우스 표시",
"ui.3d_mouse_show_in_view_tip": "왼쪽 아래에 3D 마우스 그림을 띄워 움직임을 따라 보여 줍니다.",
"ui.3d_mouse_skip": "내 장치는 이 동작을 못 해요",
"ui.3d_mouse_skip_tip": "이 동작을 양방향 모두 건너뛰고 보정에서 뺍니다.",
"ui.3d_mouse_speed": "3D 마우스 속도",
"ui.3d_mouse_step_lift": "캡을 위로 들어 유지한 다음 놓으세요.",
"ui.3d_mouse_step_press": "캡을 아래로 눌러 유지한 다음 놓으세요.",
"ui.3d_mouse_step_pull": "캡을 몸 쪽으로 당겨 유지한 다음 놓으세요.",
"ui.3d_mouse_step_push": "캡을 앞쪽으로 밀어 유지한 다음 놓으세요.",
"ui.3d_mouse_step_rest": "캡에서 손을 떼고 가만히 두세요.",
"ui.3d_mouse_step_rest_trackball": "볼에서 손을 떼고 가만히 두세요.",
"ui.3d_mouse_step_ring_clockwise": "스크롤 링을 시계 방향으로 몇 칸 돌리세요.",
"ui.3d_mouse_step_ring_counterclockwise": "스크롤 링을 시계 반대 방향으로 몇 칸 돌리세요.",
"ui.3d_mouse_step_roll_away": "볼을 바깥쪽으로 몇 번 굴린 다음 멈추게 두세요.",
"ui.3d_mouse_step_roll_left": "볼을 왼쪽으로 몇 번 굴린 다음 멈추게 두세요.",
"ui.3d_mouse_step_roll_right": "볼을 오른쪽으로 몇 번 굴린 다음 멈추게 두세요.",
"ui.3d_mouse_step_roll_toward": "볼을 몸 쪽으로 몇 번 굴린 다음 멈추게 두세요.",
"ui.3d_mouse_step_slide_left": "캡을 왼쪽으로 밀어 유지한 다음 놓으세요.",
"ui.3d_mouse_step_slide_right": "캡을 오른쪽으로 밀어 유지한 다음 놓으세요.",
"ui.3d_mouse_step_spin_clockwise": "볼을 시계 방향으로 몇 번 돌린 다음 멈추게 두세요.",
"ui.3d_mouse_step_spin_counterclockwise": "볼을 시계 반대 방향으로 몇 번 돌린 다음 멈추게 두세요.",
"ui.3d_mouse_step_tilt_away": "캡 윗부분을 바깥쪽으로 기울여(가까운 쪽 가장자리가 올라감) 유지한 다음 놓으세요.",
"ui.3d_mouse_step_tilt_left": "캡을 왼쪽으로 기울여(왼쪽 가장자리를 아래로) 유지한 다음 놓으세요.",
"ui.3d_mouse_step_tilt_right": "캡을 오른쪽으로 기울여(오른쪽 가장자리를 아래로) 유지한 다음 놓으세요.",
"ui.3d_mouse_step_tilt_toward": "캡 윗부분을 몸 쪽으로 기울여(가까운 쪽 가장자리가 내려감) 유지한 다음 놓으세요.",
"ui.3d_mouse_step_touch": "캡을 누르지 말고 손만 올려 두세요.",
"ui.3d_mouse_step_twist_clockwise": "캡을 시계 방향으로 돌려 유지한 다음 놓으세요.",
"ui.3d_mouse_step_twist_counterclockwise": "캡을 시계 반대 방향으로 돌려 유지한 다음 놓으세요.",
"ui.3d_mouse_switch_cap": "중앙 복귀형으로 보정",
"ui.3d_mouse_switch_trackball": "트랙볼로 보정",
"ui.3d_mouse_view_axis": "뷰 축",
"ui.3d_mouse_view_off": "끔",
"ui.3d_mouse_view_off_tip": "3D 마우스 드라이버 프로필이 이 축을 끄므로, 이 축의 동작으로는 뷰가 움직이지 않습니다. 여기서 다른 축의 동작을 고르면 둘이 바뀌고, 그 동작은 더 이상 뷰를 움직이지 않습니다.",
"ui.3d_mouse_view_orbit_sideways": "좌우 궤도",
"ui.3d_mouse_view_orbit_up_down": "상하 궤도",
"ui.3d_mouse_view_pan_sideways": "좌우 이동",
"ui.3d_mouse_view_pan_up_down": "상하 이동",
"ui.3d_mouse_view_roll": "롤",
"ui.3d_mouse_view_unmapped": "축 {n}",
"ui.3d_mouse_view_zoom": "확대/축소",
"ui.3d_mouse_waiting": "움직임 대기 중",
"ui.3d_mouse_wiggle": "연결되어 있다면 살짝 움직여 보세요.",
"ui.3d_sketch": "3D 스케치",
"ui.activate": "활성화",
"ui.active_component": "활성 컴포넌트",
@@ -1355,6 +1460,7 @@
"ui.blocked": "막힘",
"ui.bodies": "바디",
"ui.bodies_all_if_none": "바디 (없으면 전체)",
"ui.bottom": "저면",
"ui.box": "박스",
"ui.break": "끊기",
"ui.browser_bodies_one": "{count}개 바디",
@@ -1769,6 +1875,12 @@
"ui.sent_to_slicer": "{slicer}(으)로 보냈습니다",
"ui.sheet_gap": "틈",
"ui.shell": "쉘",
"ui.shortcut_capture_add_key": "일반 키 하나를 추가하세요. Esc를 누르면 취소됩니다.",
"ui.shortcut_capture_hint": "단축키를 클릭한 다음 보조 키와 일반 키 하나를 누르세요. 1초 이내에 보조 키를 추가하고 모든 키를 놓아 확정하세요. Esc를 누르면 취소됩니다.",
"ui.shortcut_capture_press": "보조 키와 일반 키 하나를 누르세요. Esc를 누르면 취소됩니다.",
"ui.shortcut_capture_release": "모든 키를 놓아 확정하세요. Esc를 누르면 취소됩니다.",
"ui.shortcut_capture_settling": "단축키 확인 중… Esc를 누르면 취소됩니다.",
"ui.shortcut_multiple_keys": "보조 키와 일반 키 하나만 사용하세요. 단축키를 클릭하여 다시 시도하세요.",
"ui.show": "표시",
"ui.showAll": "모두 표시",
"ui.showAllBodies": "모두 표시",
@@ -1798,59 +1910,6 @@
"ui.smooth_wheel_zoom": "부드러운 휠 확대/축소",
"ui.smooth_wheel_zoom_tip": "끄면 휠 이벤트를 부드러운 꼬리 없이 즉시 적용합니다",
"ui.snap": "스냅",
"ui.space_mouse_axes_reassigned": "축이 환경설정에서 다시 지정되어 있으며, 이 보정 후에도 적용됩니다.",
"ui.space_mouse_calibrate": "보정…",
"ui.space_mouse_calibrate_tip": "창의 안내대로 캡을 움직이면 SolidCraft가 이 3D 마우스의 각 축이 어느 방향으로 얼마나 움직이는지 학습합니다. 이 3D 마우스에 저장됩니다.",
"ui.space_mouse_calibrate_title": "3D 마우스 보정",
"ui.space_mouse_calibrated": "보정됨",
"ui.space_mouse_calibration": "3D 마우스 보정",
"ui.space_mouse_calibration_done": "완료했습니다. 저장하면 이 3D 마우스를 연결할 때마다 사용됩니다.",
"ui.space_mouse_calibration_no_response": "거의 움직이지 않은 축이 있어 보정할 수 없습니다. 처음부터 다시 하고 매번 캡을 더 멀리 움직이세요.",
"ui.space_mouse_dead_zone": "데드존",
"ui.space_mouse_dead_zone_tip": "보기가 움직이기 전에 캡이 움직여야 하는 정도로, 전체 이동 범위에 대한 비율입니다. 캡을 건드리지 않았는데 보기가 움직이면 높이세요.",
"ui.space_mouse_driven_by": "이 축을 움직이는 장치의 보정된 동작입니다. 다른 축이 이미 쓰는 동작을 고르면 둘이 서로 바뀝니다.",
"ui.space_mouse_driven_by_label": "제어 동작",
"ui.space_mouse_driver": "3D 마우스 드라이버",
"ui.space_mouse_driver_auto": "자동",
"ui.space_mouse_driver_direct": "직접 (hidraw)",
"ui.space_mouse_driver_only_direct": "장치를 직접 읽는 중 (spacenavd가 실행 중이 아님)",
"ui.space_mouse_driver_only_spacenavd": "spacenavd로 읽는 중 (다른 방법이 없음)",
"ui.space_mouse_forget": "보정 삭제",
"ui.space_mouse_hint": "뷰를 함께 이동하고 회전합니다. 스케치는 이동과 확대/축소만 사용합니다.",
"ui.space_mouse_motion_rotation_x": "회전 X",
"ui.space_mouse_motion_rotation_y": "회전 Y",
"ui.space_mouse_motion_rotation_z": "회전 Z",
"ui.space_mouse_motion_translation_x": "이동 X",
"ui.space_mouse_motion_translation_y": "이동 Y",
"ui.space_mouse_motion_translation_z": "이동 Z",
"ui.space_mouse_navigate": "SpaceNavigator / SpaceMouse로 탐색",
"ui.space_mouse_none": "3D 마우스를 찾을 수 없음",
"ui.space_mouse_not_calibrated": "보정 안 됨",
"ui.space_mouse_reading": "읽은 값",
"ui.space_mouse_reset_axes": "축 지정 초기화",
"ui.space_mouse_step_lift": "캡을 위로 들어 유지한 다음 놓으세요.",
"ui.space_mouse_step_press": "캡을 아래로 눌러 유지한 다음 놓으세요.",
"ui.space_mouse_step_pull": "캡을 몸 쪽으로 당겨 유지한 다음 놓으세요.",
"ui.space_mouse_step_push": "캡을 앞쪽으로 밀어 유지한 다음 놓으세요.",
"ui.space_mouse_step_rest": "캡에서 손을 떼고 가만히 두세요.",
"ui.space_mouse_step_slide_left": "캡을 왼쪽으로 밀어 유지한 다음 놓으세요.",
"ui.space_mouse_step_slide_right": "캡을 오른쪽으로 밀어 유지한 다음 놓으세요.",
"ui.space_mouse_step_tilt_back": "캡을 뒤로 기울여(앞쪽 가장자리를 위로) 유지한 다음 놓으세요.",
"ui.space_mouse_step_tilt_forward": "캡을 앞으로 기울여(앞쪽 가장자리를 아래로) 유지한 다음 놓으세요.",
"ui.space_mouse_step_tilt_left": "캡을 왼쪽으로 기울여(왼쪽 가장자리를 아래로) 유지한 다음 놓으세요.",
"ui.space_mouse_step_tilt_right": "캡을 오른쪽으로 기울여(오른쪽 가장자리를 아래로) 유지한 다음 놓으세요.",
"ui.space_mouse_step_twist_clockwise": "캡을 시계 방향으로 돌려 유지한 다음 놓으세요.",
"ui.space_mouse_step_twist_counterclockwise": "캡을 시계 반대 방향으로 돌려 유지한 다음 놓으세요.",
"ui.space_mouse_view_axis": "보기 축",
"ui.space_mouse_view_off": "끔",
"ui.space_mouse_view_off_tip": "3D 마우스 드라이버 프로필이 이 축을 끄므로, 이 축의 동작으로는 뷰가 움직이지 않습니다. 여기서 다른 축의 동작을 고르면 둘이 바뀌고, 그 동작은 더 이상 뷰를 움직이지 않습니다.",
"ui.space_mouse_view_orbit_sideways": "좌우 궤도",
"ui.space_mouse_view_orbit_up_down": "상하 궤도",
"ui.space_mouse_view_pan_sideways": "좌우 이동",
"ui.space_mouse_view_pan_up_down": "상하 이동",
"ui.space_mouse_view_roll": "롤",
"ui.space_mouse_view_unmapped": "축 {n}",
"ui.space_mouse_view_zoom": "확대/축소",
"ui.spacing": "간격",
"ui.spacing_2": "간격 2",
"ui.sphere": "구",
@@ -1892,7 +1951,7 @@
"ui.top": "상면",
"ui.torus": "토러스",
"ui.total_angle": "전진 각도",
"ui.trackpad_pan_tip": "트랙패드 제스처로 이동(끔: 휠처럼 확대/축소). 마우스 휠은 확대/축소, 엄지 휠은 좌우 이동, 핀치는 항상 확대/축소합니다",
"ui.trackpad_pan_tip": "두 손가락 스크롤로 화면을 이동합니다. Fusion에서는 Shift + 두 손가락 스크롤로 회전합니다. 끄면 스크롤로 확대/축소합니다. 마우스 휠과 핀치는 확대/축소하고, 엄지 휠은 좌우로 이동합니다.",
"ui.trim": "트림",
"ui.twist": "비틀림",
"ui.two_finger_scroll_pans": "두 손가락 스크롤로 이동",
+104 -28
View File
@@ -530,6 +530,10 @@
"cmd.file_insert_step": "Sisip STEP",
"cmd.file_save_mesh": "Simpan sebagai Mesh",
"cmd.file_slicers": "Penghiris Terpasang",
"cmd.frame_member": "Anggota Rangka",
"cmd.frame_profile_insert": "Sisipkan Profil",
"cmd.frame_profile_list": "Pustaka Profil",
"cmd.frame_profile_properties": "Sifat Profil",
"cmd.inspect_accessibility": "Analisis Kebolehcapaian",
"cmd.inspect_center_of_mass": "Pusat Jisim",
"cmd.inspect_clearance": "Kelegaan",
@@ -1121,7 +1125,106 @@
"trace.stopped_by_contact": "Berakhir pada sampel {sample}: {a} akan menembusi {b}",
"trace.stopped_by_loop": "Berakhir pada sampel {sample}: gelung melalui {joint} tidak lagi dapat ditutup",
"ui.1_degree_of_freedom": "1 darjah kebebasan",
"ui.3d_mouse_axes_reassigned": "Paksi ditetapkan semula dalam Keutamaan, dan itu masih terpakai di atas penentukuran ini.",
"ui.3d_mouse_button": "Butang {number}",
"ui.3d_mouse_button_nothing": "Tiada",
"ui.3d_mouse_button_settings": "Tetapan tetikus 3D",
"ui.3d_mouse_buttons": "Butang",
"ui.3d_mouse_buttons_hint": "Tekan butang pada tetikus 3D anda untuk mencarinya di sini, kemudian pilih fungsinya.",
"ui.3d_mouse_buttons_no_device": "Sambungkan tetikus 3D untuk menetapkan fungsi butangnya.",
"ui.3d_mouse_buttons_reset": "Pulihkan butang lalai",
"ui.3d_mouse_calibrate": "Tentukur…",
"ui.3d_mouse_calibrate_tip": "Gerakkan penutup seperti yang diminta tetingkap, supaya SolidCraft mempelajari arah dan jarak setiap paksi tetikus 3D ini. Disimpan untuk tetikus 3D ini.",
"ui.3d_mouse_calibrate_title": "Tentukur tetikus 3D",
"ui.3d_mouse_calibrate_wait": "Gerakkan tetikus 3D sekali supaya SolidCraft dapat melihatnya.",
"ui.3d_mouse_calibrated": "Telah ditentukur",
"ui.3d_mouse_calibration": "Penentukuran tetikus 3D",
"ui.3d_mouse_calibration_done": "Selesai. Simpan untuk digunakan setiap kali tetikus 3D ini disambungkan.",
"ui.3d_mouse_calibration_no_response": "Satu paksi hampir tidak bergerak, jadi tidak dapat ditentukur. Mulakan semula dan gerakkan penutup lebih jauh setiap kali.",
"ui.3d_mouse_circles_help": "Bulatan menunjukkan apa yang dihantar peranti selepas penentukuran. Model ujian menunjukkan apa yang dilakukan paparan dengannya, selepas songsangan, kelajuan dan penetapan paksi.",
"ui.3d_mouse_dead_zone": "Zon mati",
"ui.3d_mouse_dead_zone_tip": "Sejauh mana penutup perlu bergerak sebelum pandangan bergerak, sebagai bahagian daripada julat penuhnya. Naikkan jika pandangan hanyut semasa penutup dalam keadaan rehat.",
"ui.3d_mouse_denied": "SolidCraft nampak tetikus 3D tetapi tidak dibenarkan membacanya. Lihat nota persediaan tetikus 3D untuk peraturan udev.",
"ui.3d_mouse_denied_short": "Dijumpai, tetapi tidak boleh dibaca",
"ui.3d_mouse_driven_by": "Gerakan peranti yang telah ditentukur yang memacu paksi ini. Memilih gerakan yang sudah digunakan paksi lain akan menukar kedua-duanya.",
"ui.3d_mouse_driven_by_label": "dipacu oleh",
"ui.3d_mouse_driver": "Pemacu tetikus 3D",
"ui.3d_mouse_driver_auto": "Automatik",
"ui.3d_mouse_driver_direct": "Terus (hidraw)",
"ui.3d_mouse_driver_fallback": "Buat masa ini dibaca melalui spacenavd: peranti itu sendiri tidak dapat dibuka.",
"ui.3d_mouse_driver_only_direct": "Membaca peranti secara terus; spacenavd tidak berjalan",
"ui.3d_mouse_driver_only_spacenavd": "Membaca melalui spacenavd, satu-satunya cara yang ada",
"ui.3d_mouse_forget": "Lupakan penentukuran",
"ui.3d_mouse_ghost_left_viewport": "Viewport kiri",
"ui.3d_mouse_ghost_left_window": "Tetingkap kiri",
"ui.3d_mouse_ghost_position": "Kedudukan",
"ui.3d_mouse_ghost_right_viewport": "Viewport kanan",
"ui.3d_mouse_hint": "Alih dan putar pandangan serentak; dalam lakaran, hanya sorot dan zum digunakan.",
"ui.3d_mouse_kind_cap": "Kembali ke tengah",
"ui.3d_mouse_kind_question": "Apakah jenis tetikus 3D ini?",
"ui.3d_mouse_kind_trackball": "Bola jejak",
"ui.3d_mouse_looks_like_cap": "Bacaan kekal selagi anda menahannya, seperti peranti jenis “Kembali ke tengah”.",
"ui.3d_mouse_looks_like_trackball": "Bacaan kembali sebaik sahaja anda berhenti bergerak, seperti bola jejak.",
"ui.3d_mouse_motion_rotation_x": "Putaran X",
"ui.3d_mouse_motion_rotation_y": "Putaran Y",
"ui.3d_mouse_motion_rotation_z": "Putaran Z",
"ui.3d_mouse_motion_translation_x": "Anjakan X",
"ui.3d_mouse_motion_translation_y": "Anjakan Y",
"ui.3d_mouse_motion_translation_z": "Anjakan Z",
"ui.3d_mouse_navigate": "Navigasi dengan tetikus 3D",
"ui.3d_mouse_none": "Tiada tetikus 3D ditemui",
"ui.3d_mouse_not_calibrated": "Belum ditentukur",
"ui.3d_mouse_offer": "Menentukur tetikus 3D membetulkan paksi yang bertukar atau terbalik dan menetapkan kelajuan serta rasanya.",
"ui.3d_mouse_offer_never": "Jangan tunjuk lagi",
"ui.3d_mouse_offer_swap": "Tukar ke Hidraw (pemacu terus)",
"ui.3d_mouse_reading": "Bacaan",
"ui.3d_mouse_reset_axes": "Tetapkan semula penetapan paksi",
"ui.3d_mouse_reset_view": "Set semula paparan",
"ui.3d_mouse_restore": "Pulihkan lalai tetikus 3D",
"ui.3d_mouse_restore_ask": "Tetapkan semula tetapan tetikus 3D kepada lalai? Penentukuran dan pemetaan butang kekal.",
"ui.3d_mouse_section": "Tetikus 3D",
"ui.3d_mouse_show_in_view": "Tunjukkan tetikus 3D dalam paparan 3D",
"ui.3d_mouse_show_in_view_tip": "Gambar tetikus 3D anda di sudut kiri bawah, yang bergerak apabila anda menggerakkannya.",
"ui.3d_mouse_skip": "Peranti saya tidak boleh buat ini",
"ui.3d_mouse_skip_tip": "Langkau gerakan ini kedua-dua arah; penentukuran tidak menggunakannya.",
"ui.3d_mouse_speed": "Kelajuan tetikus 3D",
"ui.3d_mouse_step_lift": "Angkat penutup ke atas, tahan, kemudian lepaskan.",
"ui.3d_mouse_step_press": "Tekan penutup ke bawah, tahan, kemudian lepaskan.",
"ui.3d_mouse_step_pull": "Tarik penutup ke arah anda, tahan, kemudian lepaskan.",
"ui.3d_mouse_step_push": "Tolak penutup menjauhi anda, tahan, kemudian lepaskan.",
"ui.3d_mouse_step_rest": "Alihkan tangan anda daripada penutup dan biarkan ia diam.",
"ui.3d_mouse_step_rest_trackball": "Alihkan tangan anda daripada bola dan biarkan ia diam.",
"ui.3d_mouse_step_ring_clockwise": "Putar gelang tatal ikut arah jam beberapa klik.",
"ui.3d_mouse_step_ring_counterclockwise": "Putar gelang tatal lawan arah jam beberapa klik.",
"ui.3d_mouse_step_roll_away": "Gulingkan bola menjauhi anda beberapa kali, kemudian biarkan ia berhenti.",
"ui.3d_mouse_step_roll_left": "Gulingkan bola ke kiri beberapa kali, kemudian biarkan ia berhenti.",
"ui.3d_mouse_step_roll_right": "Gulingkan bola ke kanan beberapa kali, kemudian biarkan ia berhenti.",
"ui.3d_mouse_step_roll_toward": "Gulingkan bola ke arah anda beberapa kali, kemudian biarkan ia berhenti.",
"ui.3d_mouse_step_slide_left": "Luncurkan penutup ke kiri, tahan, kemudian lepaskan.",
"ui.3d_mouse_step_slide_right": "Luncurkan penutup ke kanan, tahan, kemudian lepaskan.",
"ui.3d_mouse_step_spin_clockwise": "Pusing bola ikut arah jam beberapa kali, kemudian biarkan ia berhenti.",
"ui.3d_mouse_step_spin_counterclockwise": "Pusing bola lawan arah jam beberapa kali, kemudian biarkan ia berhenti.",
"ui.3d_mouse_step_tilt_away": "Condongkan bahagian atas penutup menjauhi anda (tepi terdekat naik), tahan, kemudian lepaskan.",
"ui.3d_mouse_step_tilt_left": "Condongkan penutup ke kiri (tepi kiri turun), tahan, kemudian lepaskan.",
"ui.3d_mouse_step_tilt_right": "Condongkan penutup ke kanan (tepi kanan turun), tahan, kemudian lepaskan.",
"ui.3d_mouse_step_tilt_toward": "Condongkan bahagian atas penutup ke arah anda (tepi terdekat turun), tahan, kemudian lepaskan.",
"ui.3d_mouse_step_touch": "Letakkan tangan anda pada penutup tanpa menolaknya.",
"ui.3d_mouse_step_twist_clockwise": "Pusing penutup ikut arah jam, tahan, kemudian lepaskan.",
"ui.3d_mouse_step_twist_counterclockwise": "Pusing penutup lawan arah jam, tahan, kemudian lepaskan.",
"ui.3d_mouse_switch_cap": "Tentukur sebagai kembali ke tengah",
"ui.3d_mouse_switch_trackball": "Tentukur sebagai bola jejak",
"ui.3d_mouse_view_axis": "Paksi paparan",
"ui.3d_mouse_view_off": "Mati",
"ui.3d_mouse_view_off_tip": "Profil pemacu tetikus 3D mematikan paksi ini, jadi gerakannya tidak menggerakkan paparan. Memilih gerakan paksi lain di sini menukar kedua-duanya, dan gerakan itu tidak lagi menggerakkan paparan.",
"ui.3d_mouse_view_orbit_sideways": "Orbit kiri / kanan",
"ui.3d_mouse_view_orbit_up_down": "Orbit atas / bawah",
"ui.3d_mouse_view_pan_sideways": "Pan kiri / kanan",
"ui.3d_mouse_view_pan_up_down": "Pan atas / bawah",
"ui.3d_mouse_view_roll": "Gelek",
"ui.3d_mouse_view_unmapped": "Paksi {n}",
"ui.3d_mouse_view_zoom": "Zum",
"ui.3d_mouse_waiting": "Menunggu pergerakan",
"ui.3d_mouse_wiggle": "Jika anda ada yang disambungkan, gerakkannya sedikit.",
"ui.3d_sketch": "Lakaran 3D",
"ui.activate": "Aktifkan",
"ui.active_component": "Komponen aktif",
@@ -1351,6 +1454,7 @@
"ui.blocked": "Disekat",
"ui.bodies": "Jasad",
"ui.bodies_all_if_none": "Jasad (semua jika tiada)",
"ui.bottom": "Bawah",
"ui.box": "Kotak",
"ui.break": "Putuskan",
"ui.browser_bodies_one": "{count} jasad",
@@ -1794,34 +1898,6 @@
"ui.smooth_wheel_zoom": "Zum roda lancar",
"ui.smooth_wheel_zoom_tip": "Matikan untuk mengezum serta-merta bagi setiap putaran roda tetikus, tanpa gerakan susulan",
"ui.snap": "Lekap",
"ui.space_mouse_calibrate": "Tentukur…",
"ui.space_mouse_calibrate_tip": "Gerakkan penutup seperti yang diminta tetingkap, supaya SolidCraft mempelajari arah dan jarak setiap paksi tetikus 3D ini. Disimpan untuk tetikus 3D ini.",
"ui.space_mouse_calibrate_title": "Tentukur tetikus 3D",
"ui.space_mouse_calibrated": "Telah ditentukur",
"ui.space_mouse_calibration": "Penentukuran tetikus 3D",
"ui.space_mouse_calibration_done": "Selesai. Simpan untuk digunakan setiap kali tetikus 3D ini disambungkan.",
"ui.space_mouse_calibration_no_response": "Satu paksi hampir tidak bergerak, jadi tidak dapat ditentukur. Mulakan semula dan gerakkan penutup lebih jauh setiap kali.",
"ui.space_mouse_dead_zone": "Zon mati",
"ui.space_mouse_dead_zone_tip": "Sejauh mana penutup perlu bergerak sebelum pandangan bergerak, sebagai bahagian daripada julat penuhnya. Naikkan jika pandangan hanyut semasa penutup dalam keadaan rehat.",
"ui.space_mouse_forget": "Lupakan penentukuran",
"ui.space_mouse_hint": "Alih dan putar pandangan serentak; dalam lakaran, hanya sorot dan zum digunakan.",
"ui.space_mouse_navigate": "Navigasi dengan SpaceNavigator / SpaceMouse",
"ui.space_mouse_none": "Tiada tetikus 3D ditemui",
"ui.space_mouse_not_calibrated": "Belum ditentukur",
"ui.space_mouse_reading": "Bacaan",
"ui.space_mouse_step_lift": "Angkat penutup ke atas, tahan, kemudian lepaskan.",
"ui.space_mouse_step_press": "Tekan penutup ke bawah, tahan, kemudian lepaskan.",
"ui.space_mouse_step_pull": "Tarik penutup ke arah anda, tahan, kemudian lepaskan.",
"ui.space_mouse_step_push": "Tolak penutup menjauhi anda, tahan, kemudian lepaskan.",
"ui.space_mouse_step_rest": "Alihkan tangan anda daripada penutup dan biarkan ia diam.",
"ui.space_mouse_step_slide_left": "Luncurkan penutup ke kiri, tahan, kemudian lepaskan.",
"ui.space_mouse_step_slide_right": "Luncurkan penutup ke kanan, tahan, kemudian lepaskan.",
"ui.space_mouse_step_tilt_back": "Condongkan penutup ke belakang (tepi depan naik), tahan, kemudian lepaskan.",
"ui.space_mouse_step_tilt_forward": "Condongkan penutup ke hadapan (tepi depan turun), tahan, kemudian lepaskan.",
"ui.space_mouse_step_tilt_left": "Condongkan penutup ke kiri (tepi kiri turun), tahan, kemudian lepaskan.",
"ui.space_mouse_step_tilt_right": "Condongkan penutup ke kanan (tepi kanan turun), tahan, kemudian lepaskan.",
"ui.space_mouse_step_twist_clockwise": "Pusing penutup ikut arah jam, tahan, kemudian lepaskan.",
"ui.space_mouse_step_twist_counterclockwise": "Pusing penutup lawan arah jam, tahan, kemudian lepaskan.",
"ui.spacing": "Selang",
"ui.spacing_2": "Selang 2",
"ui.sphere": "Sfera",
+47 -28
View File
@@ -529,6 +529,10 @@
"cmd.file_insert_step": "STEP invoegen",
"cmd.file_save_mesh": "Opslaan als mesh",
"cmd.file_slicers": "Geïnstalleerde slicers",
"cmd.frame_member": "Constructiedeel",
"cmd.frame_profile_insert": "Profiel invoegen",
"cmd.frame_profile_list": "Profielbibliotheek",
"cmd.frame_profile_properties": "Profieleigenschappen",
"cmd.inspect_accessibility": "Toegankelijkheidsanalyse",
"cmd.inspect_center_of_mass": "Zwaartepunt",
"cmd.inspect_clearance": "Speling",
@@ -1120,7 +1124,50 @@
"trace.stopped_by_contact": "Eindigt bij monster {sample}: {a} zou door {b} heen gaan",
"trace.stopped_by_loop": "Eindigt bij monster {sample}: de lus via {joint} kan niet verder sluiten",
"ui.1_degree_of_freedom": "1 vrijheidsgraad",
"ui.3d_mouse_calibrate": "Kalibreren…",
"ui.3d_mouse_calibrate_tip": "Beweeg de dop zoals het venster vraagt, zodat SolidCraft leert welke kant elke as van deze 3D-muis op gaat en hoe ver. Opgeslagen voor deze 3D-muis.",
"ui.3d_mouse_calibrate_title": "3D-muis kalibreren",
"ui.3d_mouse_calibrate_wait": "Beweeg de 3D-muis één keer, zodat SolidCraft hem ziet.",
"ui.3d_mouse_calibrated": "Gekalibreerd",
"ui.3d_mouse_calibration": "Kalibratie van 3D-muis",
"ui.3d_mouse_calibration_done": "Gereed. Sla op om het te gebruiken wanneer deze 3D-muis is aangesloten.",
"ui.3d_mouse_calibration_no_response": "Een as bewoog nauwelijks en kan dus niet worden gekalibreerd. Begin opnieuw en beweeg de dop telkens verder.",
"ui.3d_mouse_circles_help": "De cirkels tonen wat het apparaat na kalibratie stuurt. Het testmodel toont wat de weergave ermee doet, na omkeren, snelheid en asindeling.",
"ui.3d_mouse_dead_zone": "Dode zone",
"ui.3d_mouse_dead_zone_tip": "Hoe ver de dop moet bewegen voordat de weergave dat doet, als aandeel van de volledige slag. Verhoog dit als de weergave afdrijft terwijl de dop in rust is.",
"ui.3d_mouse_denied": "SolidCraft ziet een 3D-muis maar mag hem niet lezen. Zie de installatienotities voor de 3D-muis voor de udev-regel.",
"ui.3d_mouse_denied_short": "Gevonden, maar niet leesbaar",
"ui.3d_mouse_driver_fallback": "Voorlopig via spacenavd gelezen: het apparaat zelf kon niet worden geopend.",
"ui.3d_mouse_forget": "Kalibratie vergeten",
"ui.3d_mouse_ghost_left_viewport": "Viewport links",
"ui.3d_mouse_ghost_left_window": "Venster links",
"ui.3d_mouse_ghost_position": "Positie",
"ui.3d_mouse_ghost_right_viewport": "Viewport rechts",
"ui.3d_mouse_hint": "Verplaats en roteer de weergave samen; schetsen gebruiken alleen pannen en zoomen.",
"ui.3d_mouse_navigate": "Navigeren met de 3D-muis",
"ui.3d_mouse_none": "Geen 3D-muis gevonden",
"ui.3d_mouse_not_calibrated": "Niet gekalibreerd",
"ui.3d_mouse_offer": "Je 3D-muis kalibreren verhelpt verwisselde of omgekeerde assen en stelt snelheid en gevoel in.",
"ui.3d_mouse_offer_never": "Niet meer tonen",
"ui.3d_mouse_offer_swap": "Naar Hidraw wisselen (direct)",
"ui.3d_mouse_reading": "Uitlezen",
"ui.3d_mouse_reset_view": "Weergave resetten",
"ui.3d_mouse_restore": "3D-muis standaardwaarden herstellen",
"ui.3d_mouse_restore_ask": "De 3D-muisinstellingen terugzetten naar de standaardwaarden? Je kalibratie en knoppentoewijzing blijven staan.",
"ui.3d_mouse_speed": "Snelheid van 3D-muis",
"ui.3d_mouse_step_lift": "Til de dop omhoog, houd vast en laat dan los.",
"ui.3d_mouse_step_press": "Druk de dop omlaag, houd vast en laat dan los.",
"ui.3d_mouse_step_pull": "Trek de dop naar u toe, houd vast en laat dan los.",
"ui.3d_mouse_step_push": "Duw de dop van u af, houd vast en laat dan los.",
"ui.3d_mouse_step_rest": "Haal uw hand van de dop en laat hem stilstaan.",
"ui.3d_mouse_step_slide_left": "Schuif de dop naar links, houd vast en laat dan los.",
"ui.3d_mouse_step_slide_right": "Schuif de dop naar rechts, houd vast en laat dan los.",
"ui.3d_mouse_step_tilt_left": "Kantel de dop naar links (linkerrand omlaag), houd vast en laat dan los.",
"ui.3d_mouse_step_tilt_right": "Kantel de dop naar rechts (rechterrand omlaag), houd vast en laat dan los.",
"ui.3d_mouse_step_twist_clockwise": "Draai de dop met de klok mee, houd vast en laat dan los.",
"ui.3d_mouse_step_twist_counterclockwise": "Draai de dop tegen de klok in, houd vast en laat dan los.",
"ui.3d_mouse_waiting": "Wacht op beweging",
"ui.3d_mouse_wiggle": "Als je er een hebt aangesloten, beweeg hem even.",
"ui.3d_sketch": "3D-schets",
"ui.activate": "Activeren",
"ui.active_component": "Actief component",
@@ -1793,34 +1840,6 @@
"ui.smooth_wheel_zoom": "Vloeiend zoomen met wiel",
"ui.smooth_wheel_zoom_tip": "Uitschakelen om elke wielgebeurtenis direct toe te passen, zonder uitloop",
"ui.snap": "Snap",
"ui.space_mouse_calibrate": "Kalibreren…",
"ui.space_mouse_calibrate_tip": "Beweeg de dop zoals het venster vraagt, zodat SolidCraft leert welke kant elke as van deze 3D-muis op gaat en hoe ver. Opgeslagen voor deze 3D-muis.",
"ui.space_mouse_calibrate_title": "3D-muis kalibreren",
"ui.space_mouse_calibrated": "Gekalibreerd",
"ui.space_mouse_calibration": "Kalibratie van 3D-muis",
"ui.space_mouse_calibration_done": "Gereed. Sla op om het te gebruiken wanneer deze 3D-muis is aangesloten.",
"ui.space_mouse_calibration_no_response": "Een as bewoog nauwelijks en kan dus niet worden gekalibreerd. Begin opnieuw en beweeg de dop telkens verder.",
"ui.space_mouse_dead_zone": "Dode zone",
"ui.space_mouse_dead_zone_tip": "Hoe ver de dop moet bewegen voordat de weergave dat doet, als aandeel van de volledige slag. Verhoog dit als de weergave afdrijft terwijl de dop in rust is.",
"ui.space_mouse_forget": "Kalibratie vergeten",
"ui.space_mouse_hint": "Verplaats en roteer de weergave samen; schetsen gebruiken alleen pannen en zoomen.",
"ui.space_mouse_navigate": "Navigeren met SpaceNavigator / SpaceMouse",
"ui.space_mouse_none": "Geen 3D-muis gevonden",
"ui.space_mouse_not_calibrated": "Niet gekalibreerd",
"ui.space_mouse_reading": "Uitlezen",
"ui.space_mouse_step_lift": "Til de dop omhoog, houd vast en laat dan los.",
"ui.space_mouse_step_press": "Druk de dop omlaag, houd vast en laat dan los.",
"ui.space_mouse_step_pull": "Trek de dop naar u toe, houd vast en laat dan los.",
"ui.space_mouse_step_push": "Duw de dop van u af, houd vast en laat dan los.",
"ui.space_mouse_step_rest": "Haal uw hand van de dop en laat hem stilstaan.",
"ui.space_mouse_step_slide_left": "Schuif de dop naar links, houd vast en laat dan los.",
"ui.space_mouse_step_slide_right": "Schuif de dop naar rechts, houd vast en laat dan los.",
"ui.space_mouse_step_tilt_back": "Kantel de dop naar achteren (voorrand omhoog), houd vast en laat dan los.",
"ui.space_mouse_step_tilt_forward": "Kantel de dop naar voren (voorrand omlaag), houd vast en laat dan los.",
"ui.space_mouse_step_tilt_left": "Kantel de dop naar links (linkerrand omlaag), houd vast en laat dan los.",
"ui.space_mouse_step_tilt_right": "Kantel de dop naar rechts (rechterrand omlaag), houd vast en laat dan los.",
"ui.space_mouse_step_twist_clockwise": "Draai de dop met de klok mee, houd vast en laat dan los.",
"ui.space_mouse_step_twist_counterclockwise": "Draai de dop tegen de klok in, houd vast en laat dan los.",
"ui.spacing": "Tussenruimte",
"ui.spacing_2": "Tussenruimte 2",
"ui.sphere": "Bol",
+106 -53
View File
@@ -578,6 +578,10 @@
"cmd.file_insert_step": "Wstaw STEP",
"cmd.file_save_mesh": "Zapisz jako siatkę",
"cmd.file_slicers": "Zainstalowane slicery",
"cmd.frame_member": "Element ramy",
"cmd.frame_profile_insert": "Wstaw profil",
"cmd.frame_profile_list": "Biblioteka profili",
"cmd.frame_profile_properties": "Właściwości profilu",
"cmd.inspect_accessibility": "Analiza dostępności",
"cmd.inspect_center_of_mass": "Środek masy",
"cmd.inspect_clearance": "Prześwit",
@@ -1245,6 +1249,8 @@
"settings.msaa_applies_on_restart": "Wygładzanie krawędzi zadziała po ponownym uruchomieniu SolidCraft",
"settings.msaa_reset": "{setting}: {requested}× nie jest obsługiwane przez to urządzenie graficzne; ustawiono {reset}× (obsługiwane: {supported}).",
"settings.msaa_unsupported": "Nieobsługiwane przez to urządzenie graficzne",
"settings.reference_geometry_through_bodies": "Pokaż geometrię odniesienia przez bryły",
"settings.reference_geometry_through_bodies_help": "Rysuj kontury nieaktywnych szkiców i płaszczyzny odniesienia na cieniowanych bryłach",
"settings.reset_intro": "Te ustawienia nie działają na tym komputerze i uniemożliwiłyby uruchomienie SolidCraft, więc zostały zmienione:",
"settings.reset_title": "Zmieniono ustawienia",
"settings.supersampling_note": "Rysuje widok w wyższej rozdzielczości i go zmniejsza: gładsze krawędzie, linie i siatka na ekranach poniżej 4K. Kosztuje czas GPU: ok. 2,25× więcej pikseli przy 1,5× i 4× przy 2×.",
@@ -1303,7 +1309,106 @@
"trace.stopped_by_contact": "Kończy się na próbce {sample}: {a} przeszedłby przez {b}",
"trace.stopped_by_loop": "Kończy się na próbce {sample}: pętla przez {joint} nie może się bardziej zamknąć",
"ui.1_degree_of_freedom": "1 stopień swobody",
"ui.3d_mouse_axes_reassigned": "Osie są przypisane na nowo w Ustawieniach i to nadal obowiązuje razem z tą kalibracją.",
"ui.3d_mouse_button": "Przycisk {number}",
"ui.3d_mouse_button_nothing": "Nic",
"ui.3d_mouse_button_settings": "Ustawienia myszy 3D",
"ui.3d_mouse_buttons": "Przyciski",
"ui.3d_mouse_buttons_hint": "Naciśnij przycisk na myszy 3D, aby go tu znaleźć, a potem wybierz, co ma robić.",
"ui.3d_mouse_buttons_no_device": "Podłącz mysz 3D, aby ustawić, co robią jej przyciski.",
"ui.3d_mouse_buttons_reset": "Przywróć domyślne przyciski",
"ui.3d_mouse_calibrate": "Kalibruj…",
"ui.3d_mouse_calibrate_tip": "Przesuwaj nakładkę zgodnie z poleceniami okna, aby SolidCraft nauczył się kierunku i zakresu każdej osi tej myszy 3D. Zapisywane dla tej myszy 3D.",
"ui.3d_mouse_calibrate_title": "Kalibracja myszy 3D",
"ui.3d_mouse_calibrate_wait": "Rusz raz myszą 3D, aby SolidCraft ją zobaczył.",
"ui.3d_mouse_calibrated": "Skalibrowano",
"ui.3d_mouse_calibration": "Kalibracja myszy 3D",
"ui.3d_mouse_calibration_done": "Gotowe. Zapisz, aby używać kalibracji po każdym podłączeniu tej myszy 3D.",
"ui.3d_mouse_calibration_no_response": "Jedna oś prawie się nie poruszyła, więc nie można jej skalibrować. Zacznij od nowa i za każdym razem wychylaj nakładkę mocniej.",
"ui.3d_mouse_circles_help": "Koła pokazują, co urządzenie wysyła po kalibracji. Model testowy pokazuje, co widok z tym robi po odwróceniu, szybkości i przypisaniu osi.",
"ui.3d_mouse_dead_zone": "Strefa martwa",
"ui.3d_mouse_dead_zone_tip": "O ile trzeba wychylić nakładkę, zanim widok się poruszy, jako część pełnego wychylenia. Zwiększ, jeśli widok dryfuje przy nieruszanej nakładce.",
"ui.3d_mouse_denied": "SolidCraft widzi mysz 3D, ale nie ma pozwolenia, by ją odczytać. Regułę udev opisują uwagi o konfiguracji myszy 3D.",
"ui.3d_mouse_denied_short": "Znaleziono, ale nie można odczytać",
"ui.3d_mouse_driven_by": "Który skalibrowany ruch urządzenia steruje tą osią. Wybranie ruchu używanego już przez inną oś zamienia je miejscami.",
"ui.3d_mouse_driven_by_label": "sterowana przez",
"ui.3d_mouse_driver": "Sterownik myszy 3D",
"ui.3d_mouse_driver_auto": "Automatyczny",
"ui.3d_mouse_driver_direct": "Bezpośredni (hidraw)",
"ui.3d_mouse_driver_fallback": "Na razie odczyt przez spacenavd: samego urządzenia nie udało się otworzyć.",
"ui.3d_mouse_driver_only_direct": "Urządzenie jest czytane bezpośrednio; spacenavd nie działa",
"ui.3d_mouse_driver_only_spacenavd": "Odczyt przez spacenavd, jedyna dostępna droga",
"ui.3d_mouse_forget": "Zapomnij kalibrację",
"ui.3d_mouse_ghost_left_viewport": "Lewy widok",
"ui.3d_mouse_ghost_left_window": "Lewe okno",
"ui.3d_mouse_ghost_position": "Położenie",
"ui.3d_mouse_ghost_right_viewport": "Prawy widok",
"ui.3d_mouse_hint": "Przesuwaj i obracaj widok jednocześnie; w szkicach działa tylko przesuwanie i powiększanie.",
"ui.3d_mouse_kind_cap": "Powrót do środka",
"ui.3d_mouse_kind_question": "Jaki to rodzaj myszy 3D?",
"ui.3d_mouse_kind_trackball": "Trackball",
"ui.3d_mouse_looks_like_cap": "Odczyt zostaje, dopóki trzymasz, jak w urządzeniu typu „Powrót do środka”.",
"ui.3d_mouse_looks_like_trackball": "Odczyt wraca, gdy tylko przestajesz ruszać, jak w trackballu.",
"ui.3d_mouse_motion_rotation_x": "Obrót X",
"ui.3d_mouse_motion_rotation_y": "Obrót Y",
"ui.3d_mouse_motion_rotation_z": "Obrót Z",
"ui.3d_mouse_motion_translation_x": "Przesunięcie X",
"ui.3d_mouse_motion_translation_y": "Przesunięcie Y",
"ui.3d_mouse_motion_translation_z": "Przesunięcie Z",
"ui.3d_mouse_navigate": "Nawiguj za pomocą myszy 3D",
"ui.3d_mouse_none": "Nie znaleziono myszy 3D",
"ui.3d_mouse_not_calibrated": "Nieskalibrowano",
"ui.3d_mouse_offer": "Kalibracja myszy 3D naprawia zamienione lub odwrócone osie oraz ustawia jej szybkość i odczucie.",
"ui.3d_mouse_offer_never": "Nie pokazuj więcej",
"ui.3d_mouse_offer_swap": "Przełącz na Hidraw (sterownik bezpośredni)",
"ui.3d_mouse_reading": "Odczyt",
"ui.3d_mouse_reset_axes": "Przywróć przypisanie osi",
"ui.3d_mouse_reset_view": "Resetuj widok",
"ui.3d_mouse_restore": "Przywróć ustawienia myszy 3D",
"ui.3d_mouse_restore_ask": "Przywrócić domyślne ustawienia myszy 3D? Kalibracja i przypisanie przycisków zostają.",
"ui.3d_mouse_section": "Mysz 3D",
"ui.3d_mouse_show_in_view": "Pokazuj mysz 3D w widoku 3D",
"ui.3d_mouse_show_in_view_tip": "Obraz twojej myszy 3D w lewym dolnym rogu, który porusza się razem z nią.",
"ui.3d_mouse_skip": "Moje urządzenie tego nie potrafi",
"ui.3d_mouse_skip_tip": "Pomija ten ruch w obu kierunkach; kalibracja go nie uwzględnia.",
"ui.3d_mouse_speed": "Czułość myszy 3D",
"ui.3d_mouse_step_lift": "Unieś nakładkę, przytrzymaj, a następnie puść.",
"ui.3d_mouse_step_press": "Wciśnij nakładkę w dół, przytrzymaj, a następnie puść.",
"ui.3d_mouse_step_pull": "Pociągnij nakładkę do siebie, przytrzymaj, a następnie puść.",
"ui.3d_mouse_step_push": "Popchnij nakładkę od siebie, przytrzymaj, a następnie puść.",
"ui.3d_mouse_step_rest": "Zdejmij dłoń z nakładki i nie ruszaj jej.",
"ui.3d_mouse_step_rest_trackball": "Zdejmij dłoń z kulki i nie ruszaj jej.",
"ui.3d_mouse_step_ring_clockwise": "Obróć pierścień przewijania o kilka kliknięć zgodnie z ruchem wskazówek zegara.",
"ui.3d_mouse_step_ring_counterclockwise": "Obróć pierścień przewijania o kilka kliknięć przeciwnie do ruchu wskazówek zegara.",
"ui.3d_mouse_step_roll_away": "Potocz kulkę kilka razy od siebie, a potem pozwól jej się zatrzymać.",
"ui.3d_mouse_step_roll_left": "Potocz kulkę kilka razy w lewo, a potem pozwól jej się zatrzymać.",
"ui.3d_mouse_step_roll_right": "Potocz kulkę kilka razy w prawo, a potem pozwól jej się zatrzymać.",
"ui.3d_mouse_step_roll_toward": "Potocz kulkę kilka razy do siebie, a potem pozwól jej się zatrzymać.",
"ui.3d_mouse_step_slide_left": "Przesuń nakładkę w lewo, przytrzymaj, a następnie puść.",
"ui.3d_mouse_step_slide_right": "Przesuń nakładkę w prawo, przytrzymaj, a następnie puść.",
"ui.3d_mouse_step_spin_clockwise": "Zakręć kulką kilka razy zgodnie z ruchem wskazówek zegara, a potem pozwól jej się zatrzymać.",
"ui.3d_mouse_step_spin_counterclockwise": "Zakręć kulką kilka razy przeciwnie do ruchu wskazówek zegara, a potem pozwól jej się zatrzymać.",
"ui.3d_mouse_step_tilt_away": "Przechyl górę nakładki od siebie (krawędź najbliżej ciebie idzie w górę), przytrzymaj, a następnie puść.",
"ui.3d_mouse_step_tilt_left": "Przechyl nakładkę w lewo (lewa krawędź w dół), przytrzymaj, a następnie puść.",
"ui.3d_mouse_step_tilt_right": "Przechyl nakładkę w prawo (prawa krawędź w dół), przytrzymaj, a następnie puść.",
"ui.3d_mouse_step_tilt_toward": "Przechyl górę nakładki do siebie (krawędź najbliżej ciebie idzie w dół), przytrzymaj, a następnie puść.",
"ui.3d_mouse_step_touch": "Połóż dłoń na nakładce, nie naciskając jej.",
"ui.3d_mouse_step_twist_clockwise": "Obróć nakładkę zgodnie z ruchem wskazówek zegara, przytrzymaj, a następnie puść.",
"ui.3d_mouse_step_twist_counterclockwise": "Obróć nakładkę przeciwnie do ruchu wskazówek zegara, przytrzymaj, a następnie puść.",
"ui.3d_mouse_switch_cap": "Kalibruj jako powrót do środka",
"ui.3d_mouse_switch_trackball": "Kalibruj jako trackball",
"ui.3d_mouse_view_axis": "Oś widoku",
"ui.3d_mouse_view_off": "Wyłączona",
"ui.3d_mouse_view_off_tip": "Profil sterownika myszy 3D wyłącza tę oś, więc jej ruch nie porusza widokiem. Wybranie tu ruchu innej osi zamienia je miejscami, a ten ruch przestaje poruszać widokiem.",
"ui.3d_mouse_view_orbit_sideways": "Orbita w lewo / prawo",
"ui.3d_mouse_view_orbit_up_down": "Orbita w górę / dół",
"ui.3d_mouse_view_pan_sideways": "Przesuwanie w lewo / prawo",
"ui.3d_mouse_view_pan_up_down": "Przesuwanie w górę / dół",
"ui.3d_mouse_view_roll": "Przechył",
"ui.3d_mouse_view_unmapped": "Oś {n}",
"ui.3d_mouse_view_zoom": "Powiększenie",
"ui.3d_mouse_waiting": "Czekam na ruch",
"ui.3d_mouse_wiggle": "Jeśli masz podłączoną, poruszaj nią chwilę.",
"ui.3d_sketch": "Szkic 3D",
"ui.activate": "Aktywuj",
"ui.active_component": "Aktywny komponent",
@@ -1535,6 +1640,7 @@
"ui.blocked": "Zablokowane",
"ui.bodies": "Bryły",
"ui.bodies_all_if_none": "Bryły (wszystkie, jeśli brak)",
"ui.bottom": "Dół",
"ui.box": "Prostopadłościan",
"ui.break": "Podziel",
"ui.browser_bodies_one": "{count} bryła",
@@ -1985,59 +2091,6 @@
"ui.smooth_wheel_zoom": "Płynne powiększanie kółkiem",
"ui.smooth_wheel_zoom_tip": "Wyłącz, aby każdy ruch kółka działał od razu, bez wygładzania",
"ui.snap": "Przyciąganie",
"ui.space_mouse_axes_reassigned": "Osie są przypisane inaczej w Preferencjach i to przypisanie nadal działa niezależnie od tej kalibracji.",
"ui.space_mouse_calibrate": "Kalibruj…",
"ui.space_mouse_calibrate_tip": "Przesuwaj nakładkę zgodnie z poleceniami okna, aby SolidCraft nauczył się kierunku i zakresu każdej osi tej myszy 3D. Zapisywane dla tej myszy 3D.",
"ui.space_mouse_calibrate_title": "Kalibracja myszy 3D",
"ui.space_mouse_calibrated": "Skalibrowano",
"ui.space_mouse_calibration": "Kalibracja myszy 3D",
"ui.space_mouse_calibration_done": "Gotowe. Zapisz, aby używać kalibracji po każdym podłączeniu tej myszy 3D.",
"ui.space_mouse_calibration_no_response": "Jedna oś prawie się nie poruszyła, więc nie można jej skalibrować. Zacznij od nowa i za każdym razem wychylaj nakładkę mocniej.",
"ui.space_mouse_dead_zone": "Strefa martwa",
"ui.space_mouse_dead_zone_tip": "O ile trzeba wychylić nakładkę, zanim widok się poruszy, jako część pełnego wychylenia. Zwiększ, jeśli widok dryfuje przy nieruszanej nakładce.",
"ui.space_mouse_driven_by": "Który skalibrowany ruch urządzenia steruje tą osią. Wybranie ruchu używanego już przez inną oś zamienia je miejscami.",
"ui.space_mouse_driven_by_label": "sterowana przez",
"ui.space_mouse_driver": "Sterownik myszy 3D",
"ui.space_mouse_driver_auto": "Automatycznie",
"ui.space_mouse_driver_direct": "Bezpośrednio (hidraw)",
"ui.space_mouse_driver_only_direct": "Bezpośredni odczyt urządzenia; spacenavd nie działa",
"ui.space_mouse_driver_only_spacenavd": "Odczyt przez spacenavd, jedyny dostępny sposób",
"ui.space_mouse_forget": "Zapomnij kalibrację",
"ui.space_mouse_hint": "Przesuwaj i obracaj widok jednocześnie; w szkicach działa tylko przesuwanie i powiększanie.",
"ui.space_mouse_motion_rotation_x": "Obrót X",
"ui.space_mouse_motion_rotation_y": "Obrót Y",
"ui.space_mouse_motion_rotation_z": "Obrót Z",
"ui.space_mouse_motion_translation_x": "Przesunięcie X",
"ui.space_mouse_motion_translation_y": "Przesunięcie Y",
"ui.space_mouse_motion_translation_z": "Przesunięcie Z",
"ui.space_mouse_navigate": "Nawiguj za pomocą SpaceNavigator / SpaceMouse",
"ui.space_mouse_none": "Nie znaleziono myszy 3D",
"ui.space_mouse_not_calibrated": "Nieskalibrowano",
"ui.space_mouse_reading": "Odczyt",
"ui.space_mouse_reset_axes": "Resetuj przypisanie osi",
"ui.space_mouse_step_lift": "Unieś nakładkę, przytrzymaj, a następnie puść.",
"ui.space_mouse_step_press": "Wciśnij nakładkę w dół, przytrzymaj, a następnie puść.",
"ui.space_mouse_step_pull": "Pociągnij nakładkę do siebie, przytrzymaj, a następnie puść.",
"ui.space_mouse_step_push": "Popchnij nakładkę od siebie, przytrzymaj, a następnie puść.",
"ui.space_mouse_step_rest": "Zdejmij dłoń z nakładki i nie ruszaj jej.",
"ui.space_mouse_step_slide_left": "Przesuń nakładkę w lewo, przytrzymaj, a następnie puść.",
"ui.space_mouse_step_slide_right": "Przesuń nakładkę w prawo, przytrzymaj, a następnie puść.",
"ui.space_mouse_step_tilt_back": "Przechyl nakładkę do tyłu (przednia krawędź w górę), przytrzymaj, a następnie puść.",
"ui.space_mouse_step_tilt_forward": "Przechyl nakładkę do przodu (przednia krawędź w dół), przytrzymaj, a następnie puść.",
"ui.space_mouse_step_tilt_left": "Przechyl nakładkę w lewo (lewa krawędź w dół), przytrzymaj, a następnie puść.",
"ui.space_mouse_step_tilt_right": "Przechyl nakładkę w prawo (prawa krawędź w dół), przytrzymaj, a następnie puść.",
"ui.space_mouse_step_twist_clockwise": "Obróć nakładkę zgodnie z ruchem wskazówek zegara, przytrzymaj, a następnie puść.",
"ui.space_mouse_step_twist_counterclockwise": "Obróć nakładkę przeciwnie do ruchu wskazówek zegara, przytrzymaj, a następnie puść.",
"ui.space_mouse_view_axis": "Oś widoku",
"ui.space_mouse_view_off": "Wyłączona",
"ui.space_mouse_view_off_tip": "Profil sterownika myszy 3D wyłącza tę oś, więc jej ruch nie porusza widokiem. Wybranie tutaj ruchu innej osi zamienia je miejscami, a ten ruch przestaje poruszać widokiem.",
"ui.space_mouse_view_orbit_sideways": "Obracanie w lewo / w prawo",
"ui.space_mouse_view_orbit_up_down": "Obracanie w górę / w dół",
"ui.space_mouse_view_pan_sideways": "Przesuwanie w lewo / w prawo",
"ui.space_mouse_view_pan_up_down": "Przesuwanie w górę / w dół",
"ui.space_mouse_view_roll": "Przechylenie",
"ui.space_mouse_view_unmapped": "Oś {n}",
"ui.space_mouse_view_zoom": "Powiększanie",
"ui.spacing": "Odstęp",
"ui.spacing_2": "Odstęp 2",
"ui.sphere": "Sfera",
+104 -53
View File
@@ -530,6 +530,10 @@
"cmd.file_insert_step": "Inserir STEP",
"cmd.file_save_mesh": "Salvar como malha",
"cmd.file_slicers": "Fatiadores instalados",
"cmd.frame_member": "Membro estrutural",
"cmd.frame_profile_insert": "Inserir perfil",
"cmd.frame_profile_list": "Biblioteca de perfis",
"cmd.frame_profile_properties": "Propriedades do perfil",
"cmd.inspect_accessibility": "Análise de acessibilidade",
"cmd.inspect_center_of_mass": "Centro de massa",
"cmd.inspect_clearance": "Folga",
@@ -1121,7 +1125,106 @@
"trace.stopped_by_contact": "Termina na amostra {sample}: {a} atravessaria {b}",
"trace.stopped_by_loop": "Termina na amostra {sample}: o laço por {joint} não pode fechar mais",
"ui.1_degree_of_freedom": "1 grau de liberdade",
"ui.3d_mouse_axes_reassigned": "Os eixos estão reatribuídos nas Preferências, e isso continua valendo sobre esta calibração.",
"ui.3d_mouse_button": "Botão {number}",
"ui.3d_mouse_button_nothing": "Nada",
"ui.3d_mouse_button_settings": "Configurações do mouse 3D",
"ui.3d_mouse_buttons": "Botões",
"ui.3d_mouse_buttons_hint": "Aperte um botão do seu mouse 3D para encontrá-lo aqui e escolha o que ele faz.",
"ui.3d_mouse_buttons_no_device": "Conecte um mouse 3D para escolher o que os botões fazem.",
"ui.3d_mouse_buttons_reset": "Restaurar os botões padrão",
"ui.3d_mouse_calibrate": "Calibrar…",
"ui.3d_mouse_calibrate_tip": "Mova a tampa como a janela pedir, para que o SolidCraft aprenda para onde e até onde vai cada eixo deste mouse 3D. Salvo para este mouse 3D.",
"ui.3d_mouse_calibrate_title": "Calibrar mouse 3D",
"ui.3d_mouse_calibrate_wait": "Mova o mouse 3D uma vez para o SolidCraft vê-lo.",
"ui.3d_mouse_calibrated": "Calibrado",
"ui.3d_mouse_calibration": "Calibração do mouse 3D",
"ui.3d_mouse_calibration_done": "Pronto. Salve para usá-la sempre que este mouse 3D estiver conectado.",
"ui.3d_mouse_calibration_no_response": "Um eixo quase não se moveu, então não dá para calibrá-lo. Recomece e mova a tampa mais longe a cada vez.",
"ui.3d_mouse_circles_help": "Os círculos mostram o que o dispositivo envia após a calibração. O modelo de teste mostra o que a vista faz com isso, após inversão, velocidade e atribuição de eixos.",
"ui.3d_mouse_dead_zone": "Zona morta",
"ui.3d_mouse_dead_zone_tip": "Quanto a tampa precisa se mover antes de a vista se mover, como fração do curso completo. Aumente se a vista se mexer com a tampa parada.",
"ui.3d_mouse_denied": "O SolidCraft vê um mouse 3D, mas não tem permissão para lê-lo. A regra udev está nas notas de configuração do mouse 3D.",
"ui.3d_mouse_denied_short": "Encontrado, mas não legível",
"ui.3d_mouse_driven_by": "Qual movimento calibrado do dispositivo controla este eixo. Escolher um que outro eixo já usa troca os dois.",
"ui.3d_mouse_driven_by_label": "controlado por",
"ui.3d_mouse_driver": "Driver do mouse 3D",
"ui.3d_mouse_driver_auto": "Automático",
"ui.3d_mouse_driver_direct": "Direto (hidraw)",
"ui.3d_mouse_driver_fallback": "Lendo por enquanto pelo spacenavd: não foi possível abrir o dispositivo em si.",
"ui.3d_mouse_driver_only_direct": "Lendo o dispositivo diretamente; o spacenavd não está em execução",
"ui.3d_mouse_driver_only_spacenavd": "Lendo pelo spacenavd, a única opção disponível",
"ui.3d_mouse_forget": "Esquecer calibração",
"ui.3d_mouse_ghost_left_viewport": "Viewport à esquerda",
"ui.3d_mouse_ghost_left_window": "Janela à esquerda",
"ui.3d_mouse_ghost_position": "Posição",
"ui.3d_mouse_ghost_right_viewport": "Viewport à direita",
"ui.3d_mouse_hint": "Move e gira a vista juntos; esboços usam apenas deslocamento e zoom.",
"ui.3d_mouse_kind_cap": "Retorno ao centro",
"ui.3d_mouse_kind_question": "Que tipo de mouse 3D é?",
"ui.3d_mouse_kind_trackball": "Trackball",
"ui.3d_mouse_looks_like_cap": "O valor se mantém enquanto você segura, como em um dispositivo do tipo “Retorno ao centro”.",
"ui.3d_mouse_looks_like_trackball": "O valor volta assim que você para de mover, como em um trackball.",
"ui.3d_mouse_motion_rotation_x": "Rotação X",
"ui.3d_mouse_motion_rotation_y": "Rotação Y",
"ui.3d_mouse_motion_rotation_z": "Rotação Z",
"ui.3d_mouse_motion_translation_x": "Translação X",
"ui.3d_mouse_motion_translation_y": "Translação Y",
"ui.3d_mouse_motion_translation_z": "Translação Z",
"ui.3d_mouse_navigate": "Navegar com o mouse 3D",
"ui.3d_mouse_none": "Nenhum mouse 3D encontrado",
"ui.3d_mouse_not_calibrated": "Não calibrado",
"ui.3d_mouse_offer": "Calibrar o mouse 3D corrige eixos trocados ou invertidos e ajusta a velocidade e a sensação.",
"ui.3d_mouse_offer_never": "Não mostrar novamente",
"ui.3d_mouse_offer_swap": "Mudar para Hidraw (driver direto)",
"ui.3d_mouse_reading": "Leitura",
"ui.3d_mouse_reset_axes": "Redefinir atribuição de eixos",
"ui.3d_mouse_reset_view": "Redefinir visualização",
"ui.3d_mouse_restore": "Restaurar padrões do mouse 3D",
"ui.3d_mouse_restore_ask": "Voltar as configurações do mouse 3D aos padrões? A calibração e o mapeamento dos botões continuam.",
"ui.3d_mouse_section": "Mouse 3D",
"ui.3d_mouse_show_in_view": "Mostrar o mouse 3D na vista 3D",
"ui.3d_mouse_show_in_view_tip": "Uma imagem do seu mouse 3D no canto inferior esquerdo, que se move quando você o move.",
"ui.3d_mouse_skip": "Meu dispositivo não faz isso",
"ui.3d_mouse_skip_tip": "Pula este movimento nos dois sentidos; a calibração o deixa de fora.",
"ui.3d_mouse_speed": "Velocidade do mouse 3D",
"ui.3d_mouse_step_lift": "Levante a tampa, segure e solte.",
"ui.3d_mouse_step_press": "Pressione a tampa para baixo, segure e solte.",
"ui.3d_mouse_step_pull": "Puxe a tampa na sua direção, segure e solte.",
"ui.3d_mouse_step_push": "Empurre a tampa para longe de você, segure e solte.",
"ui.3d_mouse_step_rest": "Tire a mão da tampa e deixe-a parada.",
"ui.3d_mouse_step_rest_trackball": "Tire a mão da bola e deixe-a parada.",
"ui.3d_mouse_step_ring_clockwise": "Gire o anel de rolagem alguns cliques no sentido horário.",
"ui.3d_mouse_step_ring_counterclockwise": "Gire o anel de rolagem alguns cliques no sentido anti-horário.",
"ui.3d_mouse_step_roll_away": "Role a bola para longe de você algumas vezes e deixe-a parar.",
"ui.3d_mouse_step_roll_left": "Role a bola para a esquerda algumas vezes e deixe-a parar.",
"ui.3d_mouse_step_roll_right": "Role a bola para a direita algumas vezes e deixe-a parar.",
"ui.3d_mouse_step_roll_toward": "Role a bola na sua direção algumas vezes e deixe-a parar.",
"ui.3d_mouse_step_slide_left": "Deslize a tampa para a esquerda, segure e solte.",
"ui.3d_mouse_step_slide_right": "Deslize a tampa para a direita, segure e solte.",
"ui.3d_mouse_step_spin_clockwise": "Gire a bola no sentido horário algumas vezes e deixe-a parar.",
"ui.3d_mouse_step_spin_counterclockwise": "Gire a bola no sentido anti-horário algumas vezes e deixe-a parar.",
"ui.3d_mouse_step_tilt_away": "Incline o topo da tampa para longe de você (a borda mais próxima sobe), segure e solte.",
"ui.3d_mouse_step_tilt_left": "Incline a tampa para a esquerda (borda esquerda para baixo), segure e solte.",
"ui.3d_mouse_step_tilt_right": "Incline a tampa para a direita (borda direita para baixo), segure e solte.",
"ui.3d_mouse_step_tilt_toward": "Incline o topo da tampa na sua direção (a borda mais próxima desce), segure e solte.",
"ui.3d_mouse_step_touch": "Apoie a mão na tampa sem empurrá-la.",
"ui.3d_mouse_step_twist_clockwise": "Gire a tampa no sentido horário, segure e solte.",
"ui.3d_mouse_step_twist_counterclockwise": "Gire a tampa no sentido anti-horário, segure e solte.",
"ui.3d_mouse_switch_cap": "Calibrar como retorno ao centro",
"ui.3d_mouse_switch_trackball": "Calibrar como trackball",
"ui.3d_mouse_view_axis": "Eixo da vista",
"ui.3d_mouse_view_off": "Desligado",
"ui.3d_mouse_view_off_tip": "O perfil do driver do mouse 3D desliga este eixo, então o movimento dele não move a vista. Escolher aqui o movimento de outro eixo troca os dois, e esse movimento deixa de mover a vista.",
"ui.3d_mouse_view_orbit_sideways": "Orbitar esquerda / direita",
"ui.3d_mouse_view_orbit_up_down": "Orbitar cima / baixo",
"ui.3d_mouse_view_pan_sideways": "Deslocar esquerda / direita",
"ui.3d_mouse_view_pan_up_down": "Deslocar cima / baixo",
"ui.3d_mouse_view_roll": "Girar a vista",
"ui.3d_mouse_view_unmapped": "Eixo {n}",
"ui.3d_mouse_view_zoom": "Zoom",
"ui.3d_mouse_waiting": "Aguardando movimento",
"ui.3d_mouse_wiggle": "Se você tiver um conectado, mexa nele um pouco.",
"ui.3d_sketch": "Esboço 3D",
"ui.activate": "Ativar",
"ui.active_component": "Componente ativo",
@@ -1351,6 +1454,7 @@
"ui.blocked": "Bloqueado",
"ui.bodies": "Corpos",
"ui.bodies_all_if_none": "Corpos (todos se nenhum)",
"ui.bottom": "Base",
"ui.box": "Caixa",
"ui.break": "Quebrar",
"ui.browser_bodies_one": "{count} corpo",
@@ -1794,59 +1898,6 @@
"ui.smooth_wheel_zoom": "Zoom suave com a roda",
"ui.smooth_wheel_zoom_tip": "Desative para aplicar cada evento da roda na hora, sem rastro de suavização",
"ui.snap": "Encaixe",
"ui.space_mouse_axes_reassigned": "Os eixos estão reatribuídos nas Preferências, e isso continua valendo sobre esta calibração.",
"ui.space_mouse_calibrate": "Calibrar…",
"ui.space_mouse_calibrate_tip": "Mova a tampa como a janela pedir, para que o SolidCraft aprenda para onde e até onde vai cada eixo deste mouse 3D. Salvo para este mouse 3D.",
"ui.space_mouse_calibrate_title": "Calibrar mouse 3D",
"ui.space_mouse_calibrated": "Calibrado",
"ui.space_mouse_calibration": "Calibração do mouse 3D",
"ui.space_mouse_calibration_done": "Pronto. Salve para usá-la sempre que este mouse 3D estiver conectado.",
"ui.space_mouse_calibration_no_response": "Um eixo quase não se moveu, então não dá para calibrá-lo. Recomece e mova a tampa mais longe a cada vez.",
"ui.space_mouse_dead_zone": "Zona morta",
"ui.space_mouse_dead_zone_tip": "Quanto a tampa precisa se mover antes de a vista se mover, como fração do curso completo. Aumente se a vista se mexer com a tampa parada.",
"ui.space_mouse_driven_by": "Qual movimento calibrado do dispositivo controla este eixo. Escolher um que outro eixo já usa troca os dois.",
"ui.space_mouse_driven_by_label": "controlado por",
"ui.space_mouse_driver": "Driver do mouse 3D",
"ui.space_mouse_driver_auto": "Automático",
"ui.space_mouse_driver_direct": "Direto (hidraw)",
"ui.space_mouse_driver_only_direct": "Lendo o dispositivo diretamente; o spacenavd não está em execução",
"ui.space_mouse_driver_only_spacenavd": "Lendo pelo spacenavd, a única opção disponível",
"ui.space_mouse_forget": "Esquecer calibração",
"ui.space_mouse_hint": "Move e gira a vista juntos; esboços usam apenas deslocamento e zoom.",
"ui.space_mouse_motion_rotation_x": "Rotação X",
"ui.space_mouse_motion_rotation_y": "Rotação Y",
"ui.space_mouse_motion_rotation_z": "Rotação Z",
"ui.space_mouse_motion_translation_x": "Translação X",
"ui.space_mouse_motion_translation_y": "Translação Y",
"ui.space_mouse_motion_translation_z": "Translação Z",
"ui.space_mouse_navigate": "Navegar com SpaceNavigator / SpaceMouse",
"ui.space_mouse_none": "Nenhum mouse 3D encontrado",
"ui.space_mouse_not_calibrated": "Não calibrado",
"ui.space_mouse_reading": "Leitura",
"ui.space_mouse_reset_axes": "Redefinir atribuição de eixos",
"ui.space_mouse_step_lift": "Levante a tampa, segure e solte.",
"ui.space_mouse_step_press": "Pressione a tampa para baixo, segure e solte.",
"ui.space_mouse_step_pull": "Puxe a tampa na sua direção, segure e solte.",
"ui.space_mouse_step_push": "Empurre a tampa para longe de você, segure e solte.",
"ui.space_mouse_step_rest": "Tire a mão da tampa e deixe-a parada.",
"ui.space_mouse_step_slide_left": "Deslize a tampa para a esquerda, segure e solte.",
"ui.space_mouse_step_slide_right": "Deslize a tampa para a direita, segure e solte.",
"ui.space_mouse_step_tilt_back": "Incline a tampa para trás (borda da frente para cima), segure e solte.",
"ui.space_mouse_step_tilt_forward": "Incline a tampa para a frente (borda da frente para baixo), segure e solte.",
"ui.space_mouse_step_tilt_left": "Incline a tampa para a esquerda (borda esquerda para baixo), segure e solte.",
"ui.space_mouse_step_tilt_right": "Incline a tampa para a direita (borda direita para baixo), segure e solte.",
"ui.space_mouse_step_twist_clockwise": "Gire a tampa no sentido horário, segure e solte.",
"ui.space_mouse_step_twist_counterclockwise": "Gire a tampa no sentido anti-horário, segure e solte.",
"ui.space_mouse_view_axis": "Eixo da vista",
"ui.space_mouse_view_off": "Desligado",
"ui.space_mouse_view_off_tip": "O perfil do driver do mouse 3D desliga este eixo, então o movimento dele não move a vista. Escolher aqui o movimento de outro eixo troca os dois, e esse movimento deixa de mover a vista.",
"ui.space_mouse_view_orbit_sideways": "Orbitar esquerda / direita",
"ui.space_mouse_view_orbit_up_down": "Orbitar cima / baixo",
"ui.space_mouse_view_pan_sideways": "Deslocar esquerda / direita",
"ui.space_mouse_view_pan_up_down": "Deslocar cima / baixo",
"ui.space_mouse_view_roll": "Girar a vista",
"ui.space_mouse_view_unmapped": "Eixo {n}",
"ui.space_mouse_view_zoom": "Zoom",
"ui.spacing": "Espaçamento",
"ui.spacing_2": "Espaçamento 2",
"ui.sphere": "Esfera",
+47 -28
View File
@@ -529,6 +529,10 @@
"cmd.file_insert_step": "Inserează STEP",
"cmd.file_save_mesh": "Salvează ca plasă",
"cmd.file_slicers": "Slicere instalate",
"cmd.frame_member": "Element de cadru",
"cmd.frame_profile_insert": "Inserare profil",
"cmd.frame_profile_list": "Bibliotecă de profile",
"cmd.frame_profile_properties": "Proprietăți profil",
"cmd.inspect_accessibility": "Analiza accesibilității",
"cmd.inspect_center_of_mass": "Centru de masă",
"cmd.inspect_clearance": "Joc",
@@ -1120,7 +1124,50 @@
"trace.stopped_by_contact": "Se termină la eșantionul {sample}: {a} ar trece prin {b}",
"trace.stopped_by_loop": "Se termină la eșantionul {sample}: bucla prin {joint} nu se mai poate închide",
"ui.1_degree_of_freedom": "1 grad de libertate",
"ui.3d_mouse_calibrate": "Calibrează…",
"ui.3d_mouse_calibrate_tip": "Mișcați capacul așa cum cere fereastra, ca SolidCraft să învețe în ce direcție merge fiecare axă a acestui mouse 3D și cât de departe. Salvat pentru acest mouse 3D.",
"ui.3d_mouse_calibrate_title": "Calibrează mouse-ul 3D",
"ui.3d_mouse_calibrate_wait": "Mișcă o dată mouse-ul 3D ca SolidCraft să îl vadă.",
"ui.3d_mouse_calibrated": "Calibrat",
"ui.3d_mouse_calibration": "Calibrarea mouse-ului 3D",
"ui.3d_mouse_calibration_done": "Gata. Salvați-o pentru a o folosi ori de câte ori acest mouse 3D este conectat.",
"ui.3d_mouse_calibration_no_response": "O axă abia s-a mișcat, deci nu poate fi calibrată. Reîncepeți și mișcați capacul mai mult de fiecare dată.",
"ui.3d_mouse_circles_help": "Cercurile arată ce trimite dispozitivul după calibrare. Modelul de test arată ce face vizualizarea cu acestea, după inversare, viteză și atribuirea axelor.",
"ui.3d_mouse_dead_zone": "Zonă moartă",
"ui.3d_mouse_dead_zone_tip": "Cât trebuie să se miște capacul înainte ca vizualizarea să se miște, ca fracțiune din cursa completă. Măriți-o dacă vizualizarea derivă cât capacul este în repaus.",
"ui.3d_mouse_denied": "SolidCraft vede un mouse 3D, dar nu are voie să îl citească. Regula udev este în notele de configurare a mouse-ului 3D.",
"ui.3d_mouse_denied_short": "Găsit, dar nu poate fi citit",
"ui.3d_mouse_driver_fallback": "Deocamdată se citește prin spacenavd: dispozitivul în sine nu a putut fi deschis.",
"ui.3d_mouse_forget": "Uită calibrarea",
"ui.3d_mouse_ghost_left_viewport": "Viewport stânga",
"ui.3d_mouse_ghost_left_window": "Fereastră stânga",
"ui.3d_mouse_ghost_position": "Poziție",
"ui.3d_mouse_ghost_right_viewport": "Viewport dreapta",
"ui.3d_mouse_hint": "Mută și rotește vizualizarea împreună; schițele folosesc doar panoramare și zoom.",
"ui.3d_mouse_navigate": "Navighează cu mouse-ul 3D",
"ui.3d_mouse_none": "Niciun mouse 3D găsit",
"ui.3d_mouse_not_calibrated": "Necalibrat",
"ui.3d_mouse_offer": "Calibrarea mouse-ului 3D corectează axele inversate sau schimbate între ele și îi reglează viteza și senzația.",
"ui.3d_mouse_offer_never": "Nu mai afișa",
"ui.3d_mouse_offer_swap": "Treci la Hidraw (driver direct)",
"ui.3d_mouse_reading": "Valoare citită",
"ui.3d_mouse_reset_view": "Resetează vizualizarea",
"ui.3d_mouse_restore": "Restaurează implicitele mouse-ului 3D",
"ui.3d_mouse_restore_ask": "Revii la valorile implicite ale setărilor mouse-ului 3D? Calibrarea și atribuirea butoanelor rămân.",
"ui.3d_mouse_speed": "Viteza mouse-ului 3D",
"ui.3d_mouse_step_lift": "Ridicați capacul în sus, țineți-l, apoi eliberați-l.",
"ui.3d_mouse_step_press": "Apăsați capacul în jos, țineți-l, apoi eliberați-l.",
"ui.3d_mouse_step_pull": "Trageți capacul spre dumneavoastră, țineți-l, apoi eliberați-l.",
"ui.3d_mouse_step_push": "Împingeți capacul de la dumneavoastră, țineți-l, apoi eliberați-l.",
"ui.3d_mouse_step_rest": "Luați mâna de pe capac și lăsați-l nemișcat.",
"ui.3d_mouse_step_slide_left": "Glisați capacul spre stânga, țineți-l, apoi eliberați-l.",
"ui.3d_mouse_step_slide_right": "Glisați capacul spre dreapta, țineți-l, apoi eliberați-l.",
"ui.3d_mouse_step_tilt_left": "Înclinați capacul spre stânga (marginea stângă în jos), țineți-l, apoi eliberați-l.",
"ui.3d_mouse_step_tilt_right": "Înclinați capacul spre dreapta (marginea dreaptă în jos), țineți-l, apoi eliberați-l.",
"ui.3d_mouse_step_twist_clockwise": "Răsuciți capacul în sensul acelor de ceasornic, țineți-l, apoi eliberați-l.",
"ui.3d_mouse_step_twist_counterclockwise": "Răsuciți capacul în sens invers acelor de ceasornic, țineți-l, apoi eliberați-l.",
"ui.3d_mouse_waiting": "Se așteaptă mișcare",
"ui.3d_mouse_wiggle": "Dacă ai unul conectat, mișcă-l puțin.",
"ui.3d_sketch": "Schiță 3D",
"ui.activate": "Activează",
"ui.active_component": "Componentă activă",
@@ -1793,34 +1840,6 @@
"ui.smooth_wheel_zoom": "Zoom lin cu rotița",
"ui.smooth_wheel_zoom_tip": "Dezactivați pentru a aplica imediat fiecare eveniment al rotiței, fără coadă de netezire",
"ui.snap": "Agățare",
"ui.space_mouse_calibrate": "Calibrează…",
"ui.space_mouse_calibrate_tip": "Mișcați capacul așa cum cere fereastra, ca SolidCraft să învețe în ce direcție merge fiecare axă a acestui mouse 3D și cât de departe. Salvat pentru acest mouse 3D.",
"ui.space_mouse_calibrate_title": "Calibrează mouse-ul 3D",
"ui.space_mouse_calibrated": "Calibrat",
"ui.space_mouse_calibration": "Calibrarea mouse-ului 3D",
"ui.space_mouse_calibration_done": "Gata. Salvați-o pentru a o folosi ori de câte ori acest mouse 3D este conectat.",
"ui.space_mouse_calibration_no_response": "O axă abia s-a mișcat, deci nu poate fi calibrată. Reîncepeți și mișcați capacul mai mult de fiecare dată.",
"ui.space_mouse_dead_zone": "Zonă moartă",
"ui.space_mouse_dead_zone_tip": "Cât trebuie să se miște capacul înainte ca vizualizarea să se miște, ca fracțiune din cursa completă. Măriți-o dacă vizualizarea derivă cât capacul este în repaus.",
"ui.space_mouse_forget": "Uită calibrarea",
"ui.space_mouse_hint": "Mută și rotește vizualizarea împreună; schițele folosesc doar panoramare și zoom.",
"ui.space_mouse_navigate": "Navighează cu SpaceNavigator / SpaceMouse",
"ui.space_mouse_none": "Niciun mouse 3D găsit",
"ui.space_mouse_not_calibrated": "Necalibrat",
"ui.space_mouse_reading": "Valoare citită",
"ui.space_mouse_step_lift": "Ridicați capacul în sus, țineți-l, apoi eliberați-l.",
"ui.space_mouse_step_press": "Apăsați capacul în jos, țineți-l, apoi eliberați-l.",
"ui.space_mouse_step_pull": "Trageți capacul spre dumneavoastră, țineți-l, apoi eliberați-l.",
"ui.space_mouse_step_push": "Împingeți capacul de la dumneavoastră, țineți-l, apoi eliberați-l.",
"ui.space_mouse_step_rest": "Luați mâna de pe capac și lăsați-l nemișcat.",
"ui.space_mouse_step_slide_left": "Glisați capacul spre stânga, țineți-l, apoi eliberați-l.",
"ui.space_mouse_step_slide_right": "Glisați capacul spre dreapta, țineți-l, apoi eliberați-l.",
"ui.space_mouse_step_tilt_back": "Înclinați capacul spre spate (marginea din față în sus), țineți-l, apoi eliberați-l.",
"ui.space_mouse_step_tilt_forward": "Înclinați capacul spre față (marginea din față în jos), țineți-l, apoi eliberați-l.",
"ui.space_mouse_step_tilt_left": "Înclinați capacul spre stânga (marginea stângă în jos), țineți-l, apoi eliberați-l.",
"ui.space_mouse_step_tilt_right": "Înclinați capacul spre dreapta (marginea dreaptă în jos), țineți-l, apoi eliberați-l.",
"ui.space_mouse_step_twist_clockwise": "Răsuciți capacul în sensul acelor de ceasornic, țineți-l, apoi eliberați-l.",
"ui.space_mouse_step_twist_counterclockwise": "Răsuciți capacul în sens invers acelor de ceasornic, țineți-l, apoi eliberați-l.",
"ui.spacing": "Spațiere",
"ui.spacing_2": "Spațierea 2",
"ui.sphere": "Sferă",
+104 -53
View File
@@ -529,6 +529,10 @@
"cmd.file_insert_step": "Вставить STEP",
"cmd.file_save_mesh": "Сохранить как меш",
"cmd.file_slicers": "Установленные слайсеры",
"cmd.frame_member": "Элемент рамы",
"cmd.frame_profile_insert": "Вставить профиль",
"cmd.frame_profile_list": "Библиотека профилей",
"cmd.frame_profile_properties": "Свойства профиля",
"cmd.inspect_accessibility": "Анализ доступности",
"cmd.inspect_center_of_mass": "Центр масс",
"cmd.inspect_clearance": "Зазор",
@@ -1120,7 +1124,106 @@
"trace.stopped_by_contact": "Заканчивается на отсчёте {sample}: {a} прошёл бы сквозь {b}",
"trace.stopped_by_loop": "Заканчивается на отсчёте {sample}: контур через {joint} дальше не замыкается",
"ui.1_degree_of_freedom": "1 степень свободы",
"ui.3d_mouse_axes_reassigned": "Оси переназначены в настройках, и это действует и поверх этой калибровки.",
"ui.3d_mouse_button": "Кнопка {number}",
"ui.3d_mouse_button_nothing": "Ничего",
"ui.3d_mouse_button_settings": "Настройки 3D-мыши",
"ui.3d_mouse_buttons": "Кнопки",
"ui.3d_mouse_buttons_hint": "Нажмите кнопку на 3D-мыши, чтобы найти её здесь, и выберите, что она делает.",
"ui.3d_mouse_buttons_no_device": "Подключите 3D-мышь, чтобы назначить её кнопки.",
"ui.3d_mouse_buttons_reset": "Вернуть кнопки по умолчанию",
"ui.3d_mouse_calibrate": "Калибровать…",
"ui.3d_mouse_calibrate_tip": "Двигайте колпачок так, как просит окно, чтобы SolidCraft узнал, куда и насколько далеко движется каждая ось этой 3D-мыши. Сохраняется для этой 3D-мыши.",
"ui.3d_mouse_calibrate_title": "Калибровка 3D-мыши",
"ui.3d_mouse_calibrate_wait": "Один раз подвигайте 3D-мышь, чтобы SolidCraft её увидел.",
"ui.3d_mouse_calibrated": "Откалибрована",
"ui.3d_mouse_calibration": "Калибровка 3D-мыши",
"ui.3d_mouse_calibration_done": "Готово. Сохраните её, чтобы она применялась всякий раз, когда подключена эта 3D-мышь.",
"ui.3d_mouse_calibration_no_response": "Одна ось почти не сдвинулась, поэтому её нельзя откалибровать. Начните заново и каждый раз двигайте колпачок дальше.",
"ui.3d_mouse_circles_help": "Круги показывают, что устройство отправляет после калибровки. Тестовая модель показывает, что вид делает с этим после инверсии, скорости и назначения осей.",
"ui.3d_mouse_dead_zone": "Мёртвая зона",
"ui.3d_mouse_dead_zone_tip": "Насколько нужно сдвинуть колпачок, прежде чем сдвинется вид, в доле от полного хода. Увеличьте, если вид смещается, когда колпачок в покое.",
"ui.3d_mouse_denied": "SolidCraft видит 3D-мышь, но не имеет права её читать. Правило udev описано в заметках по настройке 3D-мыши.",
"ui.3d_mouse_denied_short": "Найдена, но недоступна для чтения",
"ui.3d_mouse_driven_by": "Какое откалиброванное движение устройства управляет этой осью. Если выбрать движение, которое уже использует другая ось, они поменяются местами.",
"ui.3d_mouse_driven_by_label": "управляется",
"ui.3d_mouse_driver": "Драйвер 3D-мыши",
"ui.3d_mouse_driver_auto": "Автоматически",
"ui.3d_mouse_driver_direct": "Напрямую (hidraw)",
"ui.3d_mouse_driver_fallback": "Пока чтение идёт через spacenavd: само устройство открыть не удалось.",
"ui.3d_mouse_driver_only_direct": "Чтение напрямую с устройства; spacenavd не запущен",
"ui.3d_mouse_driver_only_spacenavd": "Чтение через spacenavd, других вариантов нет",
"ui.3d_mouse_forget": "Забыть калибровку",
"ui.3d_mouse_ghost_left_viewport": "Область просмотра слева",
"ui.3d_mouse_ghost_left_window": "Окно слева",
"ui.3d_mouse_ghost_position": "Положение",
"ui.3d_mouse_ghost_right_viewport": "Область просмотра справа",
"ui.3d_mouse_hint": "Совместное перемещение и вращение вида; в эскизе — только панорама и масштаб.",
"ui.3d_mouse_kind_cap": "Возврат в центр",
"ui.3d_mouse_kind_question": "Какая у вас 3D-мышь?",
"ui.3d_mouse_kind_trackball": "Трекбол",
"ui.3d_mouse_looks_like_cap": "Значение держится, пока вы удерживаете, — как у устройства типа «Возврат в центр».",
"ui.3d_mouse_looks_like_trackball": "Значение возвращается, как только вы останавливаетесь, — как у трекбола.",
"ui.3d_mouse_motion_rotation_x": "Вращение X",
"ui.3d_mouse_motion_rotation_y": "Вращение Y",
"ui.3d_mouse_motion_rotation_z": "Вращение Z",
"ui.3d_mouse_motion_translation_x": "Смещение X",
"ui.3d_mouse_motion_translation_y": "Смещение Y",
"ui.3d_mouse_motion_translation_z": "Смещение Z",
"ui.3d_mouse_navigate": "Навигация с помощью 3D-мыши",
"ui.3d_mouse_none": "3D-мышь не найдена",
"ui.3d_mouse_not_calibrated": "Не откалибрована",
"ui.3d_mouse_offer": "Калибровка 3D-мыши исправляет перепутанные или перевёрнутые оси и настраивает скорость и ощущения.",
"ui.3d_mouse_offer_never": "Больше не показывать",
"ui.3d_mouse_offer_swap": "Переключить на Hidraw (прямой драйвер)",
"ui.3d_mouse_reading": "Показания",
"ui.3d_mouse_reset_axes": "Сбросить назначение осей",
"ui.3d_mouse_reset_view": "Сбросить вид",
"ui.3d_mouse_restore": "Восстановить настройки 3D-мыши",
"ui.3d_mouse_restore_ask": "Вернуть настройки 3D-мыши к значениям по умолчанию? Калибровка и назначение кнопок останутся.",
"ui.3d_mouse_section": "3D-мышь",
"ui.3d_mouse_show_in_view": "Показывать 3D-мышь в 3D-виде",
"ui.3d_mouse_show_in_view_tip": "Изображение вашей 3D-мыши в левом нижнем углу, которое двигается вместе с ней.",
"ui.3d_mouse_skip": "Моё устройство так не умеет",
"ui.3d_mouse_skip_tip": "Пропускает это движение в обе стороны; калибровка его не учитывает.",
"ui.3d_mouse_speed": "Скорость 3D-мыши",
"ui.3d_mouse_step_lift": "Поднимите колпачок вверх, удержите и отпустите.",
"ui.3d_mouse_step_press": "Нажмите на колпачок вниз, удержите и отпустите.",
"ui.3d_mouse_step_pull": "Потяните колпачок на себя, удержите и отпустите.",
"ui.3d_mouse_step_push": "Толкните колпачок от себя, удержите и отпустите.",
"ui.3d_mouse_step_rest": "Уберите руку с колпачка и не трогайте его.",
"ui.3d_mouse_step_rest_trackball": "Уберите руку с шара и не трогайте его.",
"ui.3d_mouse_step_ring_clockwise": "Поверните кольцо прокрутки на несколько щелчков по часовой стрелке.",
"ui.3d_mouse_step_ring_counterclockwise": "Поверните кольцо прокрутки на несколько щелчков против часовой стрелки.",
"ui.3d_mouse_step_roll_away": "Прокатите шар от себя несколько раз и дайте ему остановиться.",
"ui.3d_mouse_step_roll_left": "Прокатите шар влево несколько раз и дайте ему остановиться.",
"ui.3d_mouse_step_roll_right": "Прокатите шар вправо несколько раз и дайте ему остановиться.",
"ui.3d_mouse_step_roll_toward": "Прокатите шар к себе несколько раз и дайте ему остановиться.",
"ui.3d_mouse_step_slide_left": "Сдвиньте колпачок влево, удержите и отпустите.",
"ui.3d_mouse_step_slide_right": "Сдвиньте колпачок вправо, удержите и отпустите.",
"ui.3d_mouse_step_spin_clockwise": "Покрутите шар по часовой стрелке несколько раз и дайте ему остановиться.",
"ui.3d_mouse_step_spin_counterclockwise": "Покрутите шар против часовой стрелки несколько раз и дайте ему остановиться.",
"ui.3d_mouse_step_tilt_away": "Наклоните верх колпачка от себя (ближний край поднимается), удержите и отпустите.",
"ui.3d_mouse_step_tilt_left": "Наклоните колпачок влево (левый край вниз), удержите и отпустите.",
"ui.3d_mouse_step_tilt_right": "Наклоните колпачок вправо (правый край вниз), удержите и отпустите.",
"ui.3d_mouse_step_tilt_toward": "Наклоните верх колпачка к себе (ближний край опускается), удержите и отпустите.",
"ui.3d_mouse_step_touch": "Положите руку на колпачок, не нажимая на него.",
"ui.3d_mouse_step_twist_clockwise": "Поверните колпачок по часовой стрелке, удержите и отпустите.",
"ui.3d_mouse_step_twist_counterclockwise": "Поверните колпачок против часовой стрелки, удержите и отпустите.",
"ui.3d_mouse_switch_cap": "Калибровать как возврат в центр",
"ui.3d_mouse_switch_trackball": "Калибровать как трекбол",
"ui.3d_mouse_view_axis": "Ось вида",
"ui.3d_mouse_view_off": "Выкл.",
"ui.3d_mouse_view_off_tip": "Профиль драйвера 3D-мыши отключает эту ось, поэтому её движение не двигает вид. Если выбрать здесь движение другой оси, они поменяются местами, и это движение перестанет двигать вид.",
"ui.3d_mouse_view_orbit_sideways": "Орбита влево / вправо",
"ui.3d_mouse_view_orbit_up_down": "Орбита вверх / вниз",
"ui.3d_mouse_view_pan_sideways": "Сдвиг влево / вправо",
"ui.3d_mouse_view_pan_up_down": "Сдвиг вверх / вниз",
"ui.3d_mouse_view_roll": "Крен",
"ui.3d_mouse_view_unmapped": "Ось {n}",
"ui.3d_mouse_view_zoom": "Масштаб",
"ui.3d_mouse_waiting": "Ожидание движения",
"ui.3d_mouse_wiggle": "Если 3D-мышь подключена, слегка подвигайте её.",
"ui.3d_sketch": "3D-эскиз",
"ui.activate": "Активировать",
"ui.active_component": "Активный компонент",
@@ -1350,6 +1453,7 @@
"ui.blocked": "Заблокировано",
"ui.bodies": "Тела",
"ui.bodies_all_if_none": "Тела (все, если не выбраны)",
"ui.bottom": "Снизу",
"ui.box": "Бокс",
"ui.break": "Разорвать",
"ui.browser_bodies_one": "{count} тело",
@@ -1793,59 +1897,6 @@
"ui.smooth_wheel_zoom": "Плавное масштабирование колесом",
"ui.smooth_wheel_zoom_tip": "Отключите, чтобы каждое движение колеса применялось сразу, без сглаживания",
"ui.snap": "Привязка",
"ui.space_mouse_axes_reassigned": "Оси переназначены в настройках, и это действует и поверх этой калибровки.",
"ui.space_mouse_calibrate": "Калибровать…",
"ui.space_mouse_calibrate_tip": "Двигайте колпачок так, как просит окно, чтобы SolidCraft узнал, куда и насколько далеко движется каждая ось этой 3D-мыши. Сохраняется для этой 3D-мыши.",
"ui.space_mouse_calibrate_title": "Калибровка 3D-мыши",
"ui.space_mouse_calibrated": "Откалибрована",
"ui.space_mouse_calibration": "Калибровка 3D-мыши",
"ui.space_mouse_calibration_done": "Готово. Сохраните её, чтобы она применялась всякий раз, когда подключена эта 3D-мышь.",
"ui.space_mouse_calibration_no_response": "Одна ось почти не сдвинулась, поэтому её нельзя откалибровать. Начните заново и каждый раз двигайте колпачок дальше.",
"ui.space_mouse_dead_zone": "Мёртвая зона",
"ui.space_mouse_dead_zone_tip": "Насколько нужно сдвинуть колпачок, прежде чем сдвинется вид, в доле от полного хода. Увеличьте, если вид смещается, когда колпачок в покое.",
"ui.space_mouse_driven_by": "Какое откалиброванное движение устройства управляет этой осью. Если выбрать движение, которое уже использует другая ось, они поменяются местами.",
"ui.space_mouse_driven_by_label": "управляется",
"ui.space_mouse_driver": "Драйвер 3D-мыши",
"ui.space_mouse_driver_auto": "Автоматически",
"ui.space_mouse_driver_direct": "Напрямую (hidraw)",
"ui.space_mouse_driver_only_direct": "Чтение напрямую с устройства; spacenavd не запущен",
"ui.space_mouse_driver_only_spacenavd": "Чтение через spacenavd, других вариантов нет",
"ui.space_mouse_forget": "Забыть калибровку",
"ui.space_mouse_hint": "Совместное перемещение и вращение вида; в эскизе — только панорама и масштаб.",
"ui.space_mouse_motion_rotation_x": "Вращение X",
"ui.space_mouse_motion_rotation_y": "Вращение Y",
"ui.space_mouse_motion_rotation_z": "Вращение Z",
"ui.space_mouse_motion_translation_x": "Смещение X",
"ui.space_mouse_motion_translation_y": "Смещение Y",
"ui.space_mouse_motion_translation_z": "Смещение Z",
"ui.space_mouse_navigate": "Навигация через SpaceNavigator / SpaceMouse",
"ui.space_mouse_none": "3D-мышь не найдена",
"ui.space_mouse_not_calibrated": "Не откалибрована",
"ui.space_mouse_reading": "Показания",
"ui.space_mouse_reset_axes": "Сбросить назначение осей",
"ui.space_mouse_step_lift": "Поднимите колпачок вверх, удержите и отпустите.",
"ui.space_mouse_step_press": "Нажмите на колпачок вниз, удержите и отпустите.",
"ui.space_mouse_step_pull": "Потяните колпачок на себя, удержите и отпустите.",
"ui.space_mouse_step_push": "Толкните колпачок от себя, удержите и отпустите.",
"ui.space_mouse_step_rest": "Уберите руку с колпачка и не трогайте его.",
"ui.space_mouse_step_slide_left": "Сдвиньте колпачок влево, удержите и отпустите.",
"ui.space_mouse_step_slide_right": "Сдвиньте колпачок вправо, удержите и отпустите.",
"ui.space_mouse_step_tilt_back": "Наклоните колпачок назад (передний край вверх), удержите и отпустите.",
"ui.space_mouse_step_tilt_forward": "Наклоните колпачок вперёд (передний край вниз), удержите и отпустите.",
"ui.space_mouse_step_tilt_left": "Наклоните колпачок влево (левый край вниз), удержите и отпустите.",
"ui.space_mouse_step_tilt_right": "Наклоните колпачок вправо (правый край вниз), удержите и отпустите.",
"ui.space_mouse_step_twist_clockwise": "Поверните колпачок по часовой стрелке, удержите и отпустите.",
"ui.space_mouse_step_twist_counterclockwise": "Поверните колпачок против часовой стрелки, удержите и отпустите.",
"ui.space_mouse_view_axis": "Ось вида",
"ui.space_mouse_view_off": "Выкл.",
"ui.space_mouse_view_off_tip": "Профиль драйвера 3D-мыши отключает эту ось, поэтому её движение не двигает вид. Если выбрать здесь движение другой оси, они поменяются местами, и это движение перестанет двигать вид.",
"ui.space_mouse_view_orbit_sideways": "Орбита влево / вправо",
"ui.space_mouse_view_orbit_up_down": "Орбита вверх / вниз",
"ui.space_mouse_view_pan_sideways": "Сдвиг влево / вправо",
"ui.space_mouse_view_pan_up_down": "Сдвиг вверх / вниз",
"ui.space_mouse_view_roll": "Крен",
"ui.space_mouse_view_unmapped": "Ось {n}",
"ui.space_mouse_view_zoom": "Масштаб",
"ui.spacing": "Интервал",
"ui.spacing_2": "Интервал 2",
"ui.sphere": "Сфера",
+47 -28
View File
@@ -529,6 +529,10 @@
"cmd.file_insert_step": "Infoga STEP",
"cmd.file_save_mesh": "Spara som mesh",
"cmd.file_slicers": "Installerade slicers",
"cmd.frame_member": "Ramdel",
"cmd.frame_profile_insert": "Infoga profil",
"cmd.frame_profile_list": "Profilbibliotek",
"cmd.frame_profile_properties": "Profilegenskaper",
"cmd.inspect_accessibility": "Tillgänglighetsanalys",
"cmd.inspect_center_of_mass": "Masscentrum",
"cmd.inspect_clearance": "Frigång",
@@ -1120,7 +1124,50 @@
"trace.stopped_by_contact": "Slutar vid prov {sample}: {a} skulle gå igenom {b}",
"trace.stopped_by_loop": "Slutar vid prov {sample}: slingan genom {joint} kan inte stängas längre",
"ui.1_degree_of_freedom": "1 frihetsgrad",
"ui.3d_mouse_calibrate": "Kalibrera…",
"ui.3d_mouse_calibrate_tip": "Flytta knappen som fönstret ber om, så att SolidCraft lär sig åt vilket håll och hur långt varje axel på denna 3D-mus går. Sparas för denna 3D-mus.",
"ui.3d_mouse_calibrate_title": "Kalibrera 3D-mus",
"ui.3d_mouse_calibrate_wait": "Rör 3D-musen en gång så att SolidCraft ser den.",
"ui.3d_mouse_calibrated": "Kalibrerad",
"ui.3d_mouse_calibration": "Kalibrering av 3D-mus",
"ui.3d_mouse_calibration_done": "Klart. Spara den för att använda den när denna 3D-mus är ansluten.",
"ui.3d_mouse_calibration_no_response": "En axel rörde sig knappt, så den kan inte kalibreras. Börja om och flytta knappen längre varje gång.",
"ui.3d_mouse_circles_help": "Cirklarna visar vad enheten skickar efter kalibrering. Testmodellen visar vad vyn gör med det, efter inversion, hastighet och axeltilldelning.",
"ui.3d_mouse_dead_zone": "Dödzon",
"ui.3d_mouse_dead_zone_tip": "Hur långt knappen måste röra sig innan vyn gör det, som andel av dess fulla rörelse. Höj den om vyn driver medan knappen vilar.",
"ui.3d_mouse_denied": "SolidCraft ser en 3D-mus men får inte läsa den. Se installationsanteckningarna för 3D-musen om udev-regeln.",
"ui.3d_mouse_denied_short": "Hittad, men går inte att läsa",
"ui.3d_mouse_driver_fallback": "Läser tills vidare via spacenavd: själva enheten kunde inte öppnas.",
"ui.3d_mouse_forget": "Glöm kalibrering",
"ui.3d_mouse_ghost_left_viewport": "Vyn vänster",
"ui.3d_mouse_ghost_left_window": "Fönster vänster",
"ui.3d_mouse_ghost_position": "Placering",
"ui.3d_mouse_ghost_right_viewport": "Vyn höger",
"ui.3d_mouse_hint": "Flytta och rotera vyn tillsammans; skisser använder endast panorering och zoom.",
"ui.3d_mouse_navigate": "Navigera med 3D-musen",
"ui.3d_mouse_none": "Ingen 3D-mus hittades",
"ui.3d_mouse_not_calibrated": "Inte kalibrerad",
"ui.3d_mouse_offer": "Att kalibrera din 3D-mus rättar förväxlade eller omvända axlar och ställer in hastighet och känsla.",
"ui.3d_mouse_offer_never": "Visa inte igen",
"ui.3d_mouse_offer_swap": "Byt till Hidraw (direkt drivrutin)",
"ui.3d_mouse_reading": "Avläsning",
"ui.3d_mouse_reset_view": "Återställ vyn",
"ui.3d_mouse_restore": "Återställ 3D-musens standardvärden",
"ui.3d_mouse_restore_ask": "Vill du återställa 3D-musens inställningar till standard? Din kalibrering och knapptilldelning behålls.",
"ui.3d_mouse_speed": "3D-musens hastighet",
"ui.3d_mouse_step_lift": "Lyft knappen uppåt, håll den och släpp sedan.",
"ui.3d_mouse_step_press": "Tryck ned knappen, håll den och släpp sedan.",
"ui.3d_mouse_step_pull": "Dra knappen mot dig, håll den och släpp sedan.",
"ui.3d_mouse_step_push": "Skjut knappen bort från dig, håll den och släpp sedan.",
"ui.3d_mouse_step_rest": "Ta bort handen från knappen och låt den vara stilla.",
"ui.3d_mouse_step_slide_left": "Skjut knappen åt vänster, håll den och släpp sedan.",
"ui.3d_mouse_step_slide_right": "Skjut knappen åt höger, håll den och släpp sedan.",
"ui.3d_mouse_step_tilt_left": "Luta knappen åt vänster (vänsterkanten nedåt), håll den och släpp sedan.",
"ui.3d_mouse_step_tilt_right": "Luta knappen åt höger (högerkanten nedåt), håll den och släpp sedan.",
"ui.3d_mouse_step_twist_clockwise": "Vrid knappen medurs, håll den och släpp sedan.",
"ui.3d_mouse_step_twist_counterclockwise": "Vrid knappen moturs, håll den och släpp sedan.",
"ui.3d_mouse_waiting": "Väntar på rörelse",
"ui.3d_mouse_wiggle": "Om du har en ansluten, rör lite på den.",
"ui.3d_sketch": "3D-skiss",
"ui.activate": "Aktivera",
"ui.active_component": "Aktiv komponent",
@@ -1793,34 +1840,6 @@
"ui.smooth_wheel_zoom": "Jämn hjulzoom",
"ui.smooth_wheel_zoom_tip": "Stäng av för att tillämpa varje hjulhändelse direkt, utan utjämningsfördröjning",
"ui.snap": "Snappa",
"ui.space_mouse_calibrate": "Kalibrera…",
"ui.space_mouse_calibrate_tip": "Flytta knappen som fönstret ber om, så att SolidCraft lär sig åt vilket håll och hur långt varje axel på denna 3D-mus går. Sparas för denna 3D-mus.",
"ui.space_mouse_calibrate_title": "Kalibrera 3D-mus",
"ui.space_mouse_calibrated": "Kalibrerad",
"ui.space_mouse_calibration": "Kalibrering av 3D-mus",
"ui.space_mouse_calibration_done": "Klart. Spara den för att använda den när denna 3D-mus är ansluten.",
"ui.space_mouse_calibration_no_response": "En axel rörde sig knappt, så den kan inte kalibreras. Börja om och flytta knappen längre varje gång.",
"ui.space_mouse_dead_zone": "Dödzon",
"ui.space_mouse_dead_zone_tip": "Hur långt knappen måste röra sig innan vyn gör det, som andel av dess fulla rörelse. Höj den om vyn driver medan knappen vilar.",
"ui.space_mouse_forget": "Glöm kalibrering",
"ui.space_mouse_hint": "Flytta och rotera vyn tillsammans; skisser använder endast panorering och zoom.",
"ui.space_mouse_navigate": "Navigera med SpaceNavigator / SpaceMouse",
"ui.space_mouse_none": "Ingen 3D-mus hittades",
"ui.space_mouse_not_calibrated": "Inte kalibrerad",
"ui.space_mouse_reading": "Avläsning",
"ui.space_mouse_step_lift": "Lyft knappen uppåt, håll den och släpp sedan.",
"ui.space_mouse_step_press": "Tryck ned knappen, håll den och släpp sedan.",
"ui.space_mouse_step_pull": "Dra knappen mot dig, håll den och släpp sedan.",
"ui.space_mouse_step_push": "Skjut knappen bort från dig, håll den och släpp sedan.",
"ui.space_mouse_step_rest": "Ta bort handen från knappen och låt den vara stilla.",
"ui.space_mouse_step_slide_left": "Skjut knappen åt vänster, håll den och släpp sedan.",
"ui.space_mouse_step_slide_right": "Skjut knappen åt höger, håll den och släpp sedan.",
"ui.space_mouse_step_tilt_back": "Luta knappen bakåt (framkanten uppåt), håll den och släpp sedan.",
"ui.space_mouse_step_tilt_forward": "Luta knappen framåt (framkanten nedåt), håll den och släpp sedan.",
"ui.space_mouse_step_tilt_left": "Luta knappen åt vänster (vänsterkanten nedåt), håll den och släpp sedan.",
"ui.space_mouse_step_tilt_right": "Luta knappen åt höger (högerkanten nedåt), håll den och släpp sedan.",
"ui.space_mouse_step_twist_clockwise": "Vrid knappen medurs, håll den och släpp sedan.",
"ui.space_mouse_step_twist_counterclockwise": "Vrid knappen moturs, håll den och släpp sedan.",
"ui.spacing": "Avstånd",
"ui.spacing_2": "Avstånd 2",
"ui.sphere": "Sfär",
+104 -53
View File
@@ -529,6 +529,10 @@
"cmd.file_insert_step": "STEP ekle",
"cmd.file_save_mesh": "Ağ olarak kaydet",
"cmd.file_slicers": "Yüklü dilimleyiciler",
"cmd.frame_member": "Çerçeve Elemanı",
"cmd.frame_profile_insert": "Profil Ekle",
"cmd.frame_profile_list": "Profil Kitaplığı",
"cmd.frame_profile_properties": "Profil Özellikleri",
"cmd.inspect_accessibility": "Erişilebilirlik analizi",
"cmd.inspect_center_of_mass": "Kütle merkezi",
"cmd.inspect_clearance": "Açıklık",
@@ -1120,7 +1124,106 @@
"trace.stopped_by_contact": "Örnek {sample} noktasında biter: {a}, {b} içinden geçecek",
"trace.stopped_by_loop": "Örnek {sample} noktasında biter: {joint} üzerinden geçen döngü daha fazla kapanamaz",
"ui.1_degree_of_freedom": "1 serbestlik derecesi",
"ui.3d_mouse_axes_reassigned": "Eksenler Tercihler'de yeniden atanmış; bu, bu kalibrasyonun üstüne de uygulanır.",
"ui.3d_mouse_button": "Düğme {number}",
"ui.3d_mouse_button_nothing": "Hiçbir şey",
"ui.3d_mouse_button_settings": "3B fare ayarları",
"ui.3d_mouse_buttons": "Düğmeler",
"ui.3d_mouse_buttons_hint": "Burada bulmak için 3B farenizdeki bir düğmeye basın, sonra ne yapacağını seçin.",
"ui.3d_mouse_buttons_no_device": "Düğmelerinin ne yapacağını seçmek için bir 3B fare bağlayın.",
"ui.3d_mouse_buttons_reset": "Varsayılan düğmelere dön",
"ui.3d_mouse_calibrate": "Kalibre et…",
"ui.3d_mouse_calibrate_tip": "Pencerenin istediği gibi başlığı hareket ettirin; SolidCraft bu 3B farenin her ekseninin hangi yöne ve ne kadar gittiğini öğrensin. Bu 3B fare için kaydedilir.",
"ui.3d_mouse_calibrate_title": "3B fareyi kalibre et",
"ui.3d_mouse_calibrate_wait": "SolidCraft'ın görebilmesi için 3D fareyi bir kez hareket ettirin.",
"ui.3d_mouse_calibrated": "Kalibre edildi",
"ui.3d_mouse_calibration": "3B fare kalibrasyonu",
"ui.3d_mouse_calibration_done": "Bitti. Bu 3B fare her bağlandığında kullanılması için kaydedin.",
"ui.3d_mouse_calibration_no_response": "Bir eksen neredeyse hiç hareket etmedi, bu yüzden kalibre edilemiyor. Baştan başlayın ve başlığı her seferinde daha fazla hareket ettirin.",
"ui.3d_mouse_circles_help": "Daireler, aygıtın kalibrasyondan sonra gönderdiğini gösterir. Test modeli, görünümün bunu ters çevirme, hız ve eksen atamasından sonra ne yaptığını gösterir.",
"ui.3d_mouse_dead_zone": "Ölü bölge",
"ui.3d_mouse_dead_zone_tip": "Görünüm hareket etmeden önce başlığın ne kadar hareket etmesi gerektiği, tam hareket aralığının oranı olarak. Başlık dururken görünüm kayıyorsa artırın.",
"ui.3d_mouse_denied": "SolidCraft bir 3D fare görüyor ama onu okumasına izin verilmiyor. udev kuralı için 3D fare kurulum notlarına bakın.",
"ui.3d_mouse_denied_short": "Bulundu, ancak okunamıyor",
"ui.3d_mouse_driven_by": "Bu ekseni cihazın hangi kalibre edilmiş hareketinin yönettiği. Başka bir eksenin zaten kullandığını seçerseniz ikisi yer değiştirir.",
"ui.3d_mouse_driven_by_label": "kumanda eden",
"ui.3d_mouse_driver": "3B fare sürücüsü",
"ui.3d_mouse_driver_auto": "Otomatik",
"ui.3d_mouse_driver_direct": "Doğrudan (hidraw)",
"ui.3d_mouse_driver_fallback": "Şimdilik spacenavd üzerinden okunuyor: aygıtın kendisi açılamadı.",
"ui.3d_mouse_driver_only_direct": "Aygıt doğrudan okunuyor; spacenavd çalışmıyor",
"ui.3d_mouse_driver_only_spacenavd": "spacenavd üzerinden okunuyor, tek seçenek bu",
"ui.3d_mouse_forget": "Kalibrasyonu unut",
"ui.3d_mouse_ghost_left_viewport": "Sol görünüm",
"ui.3d_mouse_ghost_left_window": "Sol pencere",
"ui.3d_mouse_ghost_position": "Konum",
"ui.3d_mouse_ghost_right_viewport": "Sağ görünüm",
"ui.3d_mouse_hint": "Görünümü aynı anda kaydırın ve döndürün; eskizlerde yalnızca kaydırma ve yakınlaştırma kullanılır.",
"ui.3d_mouse_kind_cap": "Merkeze dönüş",
"ui.3d_mouse_kind_question": "Ne tür bir 3B fare?",
"ui.3d_mouse_kind_trackball": "İztopu",
"ui.3d_mouse_looks_like_cap": "Tuttuğunuz sürece değer yerinde kalıyor, “Merkeze dönüş” türü bir aygıttaki gibi.",
"ui.3d_mouse_looks_like_trackball": "Hareketi bırakır bırakmaz değer geri dönüyor, iztopunda olduğu gibi.",
"ui.3d_mouse_motion_rotation_x": "Dönme X",
"ui.3d_mouse_motion_rotation_y": "Dönme Y",
"ui.3d_mouse_motion_rotation_z": "Dönme Z",
"ui.3d_mouse_motion_translation_x": "Öteleme X",
"ui.3d_mouse_motion_translation_y": "Öteleme Y",
"ui.3d_mouse_motion_translation_z": "Öteleme Z",
"ui.3d_mouse_navigate": "3D fare ile gezin",
"ui.3d_mouse_none": "3B fare bulunamadı",
"ui.3d_mouse_not_calibrated": "Kalibre edilmedi",
"ui.3d_mouse_offer": "3D farenizi kalibre etmek, yer değiştirmiş veya ters dönmüş eksenleri düzeltir; hızını ve hissini ayarlar.",
"ui.3d_mouse_offer_never": "Bir daha gösterme",
"ui.3d_mouse_offer_swap": "Hidraw'a geç (doğrudan sürücü)",
"ui.3d_mouse_reading": "Okunan değer",
"ui.3d_mouse_reset_axes": "Eksen atamasını sıfırla",
"ui.3d_mouse_reset_view": "Görünümü sıfırla",
"ui.3d_mouse_restore": "3D fare varsayılanlarını geri yükle",
"ui.3d_mouse_restore_ask": "3D fare ayarları varsayılanlara döndürülsün mü? Kalibrasyon ve düğme eşlemesi korunur.",
"ui.3d_mouse_section": "3D fare",
"ui.3d_mouse_show_in_view": "3B fareyi 3B görünümde göster",
"ui.3d_mouse_show_in_view_tip": "Sol alt köşede, siz hareket ettirdikçe hareket eden bir 3B fare resmi.",
"ui.3d_mouse_skip": "Cihazım bunu yapamıyor",
"ui.3d_mouse_skip_tip": "Bu hareketi iki yönde de atlar; kalibrasyon onu dışarıda bırakır.",
"ui.3d_mouse_speed": "3D fare hızı",
"ui.3d_mouse_step_lift": "Başlığı yukarı kaldırın, tutun, sonra bırakın.",
"ui.3d_mouse_step_press": "Başlığı aşağı bastırın, tutun, sonra bırakın.",
"ui.3d_mouse_step_pull": "Başlığı kendinize doğru çekin, tutun, sonra bırakın.",
"ui.3d_mouse_step_push": "Başlığı sizden uzağa itin, tutun, sonra bırakın.",
"ui.3d_mouse_step_rest": "Elinizi başlıktan çekin ve hareketsiz bırakın.",
"ui.3d_mouse_step_rest_trackball": "Elinizi toptan çekin ve hareketsiz bırakın.",
"ui.3d_mouse_step_ring_clockwise": "Kaydırma halkasını saat yönünde birkaç tık çevirin.",
"ui.3d_mouse_step_ring_counterclockwise": "Kaydırma halkasını saat yönünün tersine birkaç tık çevirin.",
"ui.3d_mouse_step_roll_away": "Topu birkaç kez sizden uzağa yuvarlayın, sonra durmasını bekleyin.",
"ui.3d_mouse_step_roll_left": "Topu birkaç kez sola yuvarlayın, sonra durmasını bekleyin.",
"ui.3d_mouse_step_roll_right": "Topu birkaç kez sağa yuvarlayın, sonra durmasını bekleyin.",
"ui.3d_mouse_step_roll_toward": "Topu birkaç kez kendinize doğru yuvarlayın, sonra durmasını bekleyin.",
"ui.3d_mouse_step_slide_left": "Başlığı sola kaydırın, tutun, sonra bırakın.",
"ui.3d_mouse_step_slide_right": "Başlığı sağa kaydırın, tutun, sonra bırakın.",
"ui.3d_mouse_step_spin_clockwise": "Topu birkaç kez saat yönünde döndürün, sonra durmasını bekleyin.",
"ui.3d_mouse_step_spin_counterclockwise": "Topu birkaç kez saat yönünün tersine döndürün, sonra durmasını bekleyin.",
"ui.3d_mouse_step_tilt_away": "Başlığın üstünü sizden uzağa eğin (size en yakın kenar yukarı kalkar), tutun, sonra bırakın.",
"ui.3d_mouse_step_tilt_left": "Başlığı sola eğin (sol kenar aşağı), tutun, sonra bırakın.",
"ui.3d_mouse_step_tilt_right": "Başlığı sağa eğin (sağ kenar aşağı), tutun, sonra bırakın.",
"ui.3d_mouse_step_tilt_toward": "Başlığın üstünü kendinize doğru eğin (size en yakın kenar aşağı iner), tutun, sonra bırakın.",
"ui.3d_mouse_step_touch": "Elinizi başlığa itmeden koyun.",
"ui.3d_mouse_step_twist_clockwise": "Başlığı saat yönünde çevirin, tutun, sonra bırakın.",
"ui.3d_mouse_step_twist_counterclockwise": "Başlığı saat yönünün tersine çevirin, tutun, sonra bırakın.",
"ui.3d_mouse_switch_cap": "Merkeze dönüş olarak kalibre et",
"ui.3d_mouse_switch_trackball": "İztopu olarak kalibre et",
"ui.3d_mouse_view_axis": "Görünüm ekseni",
"ui.3d_mouse_view_off": "Kapalı",
"ui.3d_mouse_view_off_tip": "3D fare sürücüsünün profili bu ekseni kapatıyor, bu yüzden hareketi görünümü oynatmaz. Burada başka bir eksenin hareketini seçerseniz ikisi yer değiştirir ve o hareket görünümü oynatmayı bırakır.",
"ui.3d_mouse_view_orbit_sideways": "Sola / sağa yörünge",
"ui.3d_mouse_view_orbit_up_down": "Yukarı / aşağı yörünge",
"ui.3d_mouse_view_pan_sideways": "Sola / sağa kaydır",
"ui.3d_mouse_view_pan_up_down": "Yukarı / aşağı kaydır",
"ui.3d_mouse_view_roll": "Yuvarlanma",
"ui.3d_mouse_view_unmapped": "Eksen {n}",
"ui.3d_mouse_view_zoom": "Yakınlaştır",
"ui.3d_mouse_waiting": "Hareket bekleniyor",
"ui.3d_mouse_wiggle": "Takılı bir tane varsa biraz oynatın.",
"ui.3d_sketch": "3D eskiz",
"ui.activate": "Etkinleştir",
"ui.active_component": "Etkin bileşen",
@@ -1350,6 +1453,7 @@
"ui.blocked": "Engellenmiş",
"ui.bodies": "Gövdeler",
"ui.bodies_all_if_none": "Gövdeler (yoksa tümü)",
"ui.bottom": "Alt",
"ui.box": "Kutu",
"ui.break": "Kır",
"ui.browser_bodies_one": "{count} gövde",
@@ -1793,59 +1897,6 @@
"ui.smooth_wheel_zoom": "Yumuşak tekerlek yakınlaştırması",
"ui.smooth_wheel_zoom_tip": "Her tekerlek hareketini yumuşatma olmadan hemen uygulamak için kapatın",
"ui.snap": "Yakala",
"ui.space_mouse_axes_reassigned": "Eksenler Tercihler'de yeniden atanmış; bu, bu kalibrasyonun üstüne de uygulanır.",
"ui.space_mouse_calibrate": "Kalibre et…",
"ui.space_mouse_calibrate_tip": "Pencerenin istediği gibi başlığı hareket ettirin; SolidCraft bu 3B farenin her ekseninin hangi yöne ve ne kadar gittiğini öğrensin. Bu 3B fare için kaydedilir.",
"ui.space_mouse_calibrate_title": "3B fareyi kalibre et",
"ui.space_mouse_calibrated": "Kalibre edildi",
"ui.space_mouse_calibration": "3B fare kalibrasyonu",
"ui.space_mouse_calibration_done": "Bitti. Bu 3B fare her bağlandığında kullanılması için kaydedin.",
"ui.space_mouse_calibration_no_response": "Bir eksen neredeyse hiç hareket etmedi, bu yüzden kalibre edilemiyor. Baştan başlayın ve başlığı her seferinde daha fazla hareket ettirin.",
"ui.space_mouse_dead_zone": "Ölü bölge",
"ui.space_mouse_dead_zone_tip": "Görünüm hareket etmeden önce başlığın ne kadar hareket etmesi gerektiği, tam hareket aralığının oranı olarak. Başlık dururken görünüm kayıyorsa artırın.",
"ui.space_mouse_driven_by": "Bu ekseni cihazın hangi kalibre edilmiş hareketinin yönettiği. Başka bir eksenin zaten kullandığını seçerseniz ikisi yer değiştirir.",
"ui.space_mouse_driven_by_label": "kumanda eden",
"ui.space_mouse_driver": "3B fare sürücüsü",
"ui.space_mouse_driver_auto": "Otomatik",
"ui.space_mouse_driver_direct": "Doğrudan (hidraw)",
"ui.space_mouse_driver_only_direct": "Aygıt doğrudan okunuyor; spacenavd çalışmıyor",
"ui.space_mouse_driver_only_spacenavd": "spacenavd üzerinden okunuyor, tek seçenek bu",
"ui.space_mouse_forget": "Kalibrasyonu unut",
"ui.space_mouse_hint": "Görünümü aynı anda kaydırın ve döndürün; eskizlerde yalnızca kaydırma ve yakınlaştırma kullanılır.",
"ui.space_mouse_motion_rotation_x": "Dönme X",
"ui.space_mouse_motion_rotation_y": "Dönme Y",
"ui.space_mouse_motion_rotation_z": "Dönme Z",
"ui.space_mouse_motion_translation_x": "Öteleme X",
"ui.space_mouse_motion_translation_y": "Öteleme Y",
"ui.space_mouse_motion_translation_z": "Öteleme Z",
"ui.space_mouse_navigate": "SpaceNavigator / SpaceMouse ile gezin",
"ui.space_mouse_none": "3B fare bulunamadı",
"ui.space_mouse_not_calibrated": "Kalibre edilmedi",
"ui.space_mouse_reading": "Okunan değer",
"ui.space_mouse_reset_axes": "Eksen atamasını sıfırla",
"ui.space_mouse_step_lift": "Başlığı yukarı kaldırın, tutun, sonra bırakın.",
"ui.space_mouse_step_press": "Başlığı aşağı bastırın, tutun, sonra bırakın.",
"ui.space_mouse_step_pull": "Başlığı kendinize doğru çekin, tutun, sonra bırakın.",
"ui.space_mouse_step_push": "Başlığı sizden uzağa itin, tutun, sonra bırakın.",
"ui.space_mouse_step_rest": "Elinizi başlıktan çekin ve hareketsiz bırakın.",
"ui.space_mouse_step_slide_left": "Başlığı sola kaydırın, tutun, sonra bırakın.",
"ui.space_mouse_step_slide_right": "Başlığı sağa kaydırın, tutun, sonra bırakın.",
"ui.space_mouse_step_tilt_back": "Başlığı geriye eğin (ön kenar yukarı), tutun, sonra bırakın.",
"ui.space_mouse_step_tilt_forward": "Başlığı öne eğin (ön kenar aşağı), tutun, sonra bırakın.",
"ui.space_mouse_step_tilt_left": "Başlığı sola eğin (sol kenar aşağı), tutun, sonra bırakın.",
"ui.space_mouse_step_tilt_right": "Başlığı sağa eğin (sağ kenar aşağı), tutun, sonra bırakın.",
"ui.space_mouse_step_twist_clockwise": "Başlığı saat yönünde çevirin, tutun, sonra bırakın.",
"ui.space_mouse_step_twist_counterclockwise": "Başlığı saat yönünün tersine çevirin, tutun, sonra bırakın.",
"ui.space_mouse_view_axis": "Görünüm ekseni",
"ui.space_mouse_view_off": "Kapalı",
"ui.space_mouse_view_off_tip": "3D fare sürücüsünün profili bu ekseni kapatıyor, bu yüzden hareketi görünümü oynatmaz. Burada başka bir eksenin hareketini seçerseniz ikisi yer değiştirir ve o hareket görünümü oynatmayı bırakır.",
"ui.space_mouse_view_orbit_sideways": "Sola / sağa yörünge",
"ui.space_mouse_view_orbit_up_down": "Yukarı / aşağı yörünge",
"ui.space_mouse_view_pan_sideways": "Sola / sağa kaydır",
"ui.space_mouse_view_pan_up_down": "Yukarı / aşağı kaydır",
"ui.space_mouse_view_roll": "Yuvarlanma",
"ui.space_mouse_view_unmapped": "Eksen {n}",
"ui.space_mouse_view_zoom": "Yakınlaştır",
"ui.spacing": "Aralık",
"ui.spacing_2": "Aralık 2",
"ui.sphere": "Küre",
+104 -53
View File
@@ -530,6 +530,10 @@
"cmd.file_insert_step": "Вставити STEP",
"cmd.file_save_mesh": "Зберегти як сітку",
"cmd.file_slicers": "Встановлені слайсери",
"cmd.frame_member": "Елемент рами",
"cmd.frame_profile_insert": "Вставити профіль",
"cmd.frame_profile_list": "Бібліотека профілів",
"cmd.frame_profile_properties": "Властивості профілю",
"cmd.inspect_accessibility": "Аналіз доступності",
"cmd.inspect_center_of_mass": "Центр мас",
"cmd.inspect_clearance": "Зазор",
@@ -1121,7 +1125,106 @@
"trace.stopped_by_contact": "Закінчується на відліку {sample}: {a} пройшов би крізь {b}",
"trace.stopped_by_loop": "Закінчується на відліку {sample}: контур через {joint} далі не замикається",
"ui.1_degree_of_freedom": "1 ступінь вільності",
"ui.3d_mouse_axes_reassigned": "Осі перепризначено в налаштуваннях, і це діє й поверх цього калібрування.",
"ui.3d_mouse_button": "Кнопка {number}",
"ui.3d_mouse_button_nothing": "Нічого",
"ui.3d_mouse_button_settings": "Налаштування 3D-миші",
"ui.3d_mouse_buttons": "Кнопки",
"ui.3d_mouse_buttons_hint": "Натисніть кнопку на 3D-миші, щоб знайти її тут, і виберіть, що вона робить.",
"ui.3d_mouse_buttons_no_device": "Під'єднайте 3D-мишу, щоб призначити її кнопки.",
"ui.3d_mouse_buttons_reset": "Повернути типові кнопки",
"ui.3d_mouse_calibrate": "Калібрувати…",
"ui.3d_mouse_calibrate_tip": "Рухайте ковпачок так, як просить вікно, щоб SolidCraft дізнався, куди й наскільки далеко рухається кожна вісь цієї 3D-миші. Зберігається для цієї 3D-миші.",
"ui.3d_mouse_calibrate_title": "Калібрування 3D-миші",
"ui.3d_mouse_calibrate_wait": "Один раз порухайте 3D-мишу, щоб SolidCraft її побачив.",
"ui.3d_mouse_calibrated": "Відкалібровано",
"ui.3d_mouse_calibration": "Калібрування 3D-миші",
"ui.3d_mouse_calibration_done": "Готово. Збережіть його, щоб воно застосовувалося щоразу, коли підключено цю 3D-мишу.",
"ui.3d_mouse_calibration_no_response": "Одна вісь майже не зрушила, тому її не можна відкалібрувати. Почніть спочатку й щоразу рухайте ковпачок далі.",
"ui.3d_mouse_circles_help": "Кола показують, що пристрій надсилає після калібрування. Тестова модель показує, що вигляд робить із цим після інверсії, швидкості та призначення осей.",
"ui.3d_mouse_dead_zone": "Мертва зона",
"ui.3d_mouse_dead_zone_tip": "Наскільки треба зсунути ковпачок, перш ніж зрушить вигляд, у частці від повного ходу. Збільште, якщо вигляд зміщується, коли ковпачок у спокої.",
"ui.3d_mouse_denied": "SolidCraft бачить 3D-мишу, але не має права її читати. Правило udev описано в нотатках із налаштування 3D-миші.",
"ui.3d_mouse_denied_short": "Знайдено, але не читається",
"ui.3d_mouse_driven_by": "Який відкалібрований рух пристрою керує цією віссю. Якщо вибрати рух, який уже використовує інша вісь, вони поміняються місцями.",
"ui.3d_mouse_driven_by_label": "керується",
"ui.3d_mouse_driver": "Драйвер 3D-миші",
"ui.3d_mouse_driver_auto": "Автоматично",
"ui.3d_mouse_driver_direct": "Напряму (hidraw)",
"ui.3d_mouse_driver_fallback": "Наразі читання йде через spacenavd: сам пристрій відкрити не вдалося.",
"ui.3d_mouse_driver_only_direct": "Читання напряму з пристрою; spacenavd не запущено",
"ui.3d_mouse_driver_only_spacenavd": "Читання через spacenavd, інших варіантів немає",
"ui.3d_mouse_forget": "Забути калібрування",
"ui.3d_mouse_ghost_left_viewport": "Ліворуч у вікні перегляду",
"ui.3d_mouse_ghost_left_window": "Ліворуч у вікні",
"ui.3d_mouse_ghost_position": "Розташування",
"ui.3d_mouse_ghost_right_viewport": "Праворуч у вікні перегляду",
"ui.3d_mouse_hint": "Переміщуйте й обертайте вид разом; в ескізах доступні лише панорамування та масштаб.",
"ui.3d_mouse_kind_cap": "Повернення до центру",
"ui.3d_mouse_kind_question": "Яка у вас 3D-миша?",
"ui.3d_mouse_kind_trackball": "Трекбол",
"ui.3d_mouse_looks_like_cap": "Значення тримається, поки ви утримуєте, — як у пристрою типу «Повернення до центру».",
"ui.3d_mouse_looks_like_trackball": "Значення повертається, щойно ви зупиняєтеся, — як у трекбола.",
"ui.3d_mouse_motion_rotation_x": "Обертання X",
"ui.3d_mouse_motion_rotation_y": "Обертання Y",
"ui.3d_mouse_motion_rotation_z": "Обертання Z",
"ui.3d_mouse_motion_translation_x": "Зміщення X",
"ui.3d_mouse_motion_translation_y": "Зміщення Y",
"ui.3d_mouse_motion_translation_z": "Зміщення Z",
"ui.3d_mouse_navigate": "Навігація за допомогою 3D-миші",
"ui.3d_mouse_none": "3D-мишу не знайдено",
"ui.3d_mouse_not_calibrated": "Не відкалібровано",
"ui.3d_mouse_offer": "Калібрування 3D-миші виправляє переплутані або обернені осі та налаштовує швидкість і відчуття.",
"ui.3d_mouse_offer_never": "Більше не показувати",
"ui.3d_mouse_offer_swap": "Перемкнути на Hidraw (прямий драйвер)",
"ui.3d_mouse_reading": "Показники",
"ui.3d_mouse_reset_axes": "Скинути призначення осей",
"ui.3d_mouse_reset_view": "Скинути вигляд",
"ui.3d_mouse_restore": "Відновити налаштування 3D-миші",
"ui.3d_mouse_restore_ask": "Повернути налаштування 3D-миші до типових? Калібрування і призначення кнопок залишаться.",
"ui.3d_mouse_section": "3D-миша",
"ui.3d_mouse_show_in_view": "Показувати 3D-мишу в 3D-вигляді",
"ui.3d_mouse_show_in_view_tip": "Зображення вашої 3D-миші в лівому нижньому куті, що рухається разом із нею.",
"ui.3d_mouse_skip": "Мій пристрій так не вміє",
"ui.3d_mouse_skip_tip": "Пропускає цей рух в обидва боки; калібрування його не враховує.",
"ui.3d_mouse_speed": "Швидкість 3D-миші",
"ui.3d_mouse_step_lift": "Підніміть ковпачок угору, утримайте й відпустіть.",
"ui.3d_mouse_step_press": "Натисніть ковпачок униз, утримайте й відпустіть.",
"ui.3d_mouse_step_pull": "Потягніть ковпачок до себе, утримайте й відпустіть.",
"ui.3d_mouse_step_push": "Штовхніть ковпачок від себе, утримайте й відпустіть.",
"ui.3d_mouse_step_rest": "Приберіть руку з ковпачка й не торкайтеся його.",
"ui.3d_mouse_step_rest_trackball": "Приберіть руку з кулі й не торкайтеся її.",
"ui.3d_mouse_step_ring_clockwise": "Поверніть кільце прокручування на кілька клацань за годинниковою стрілкою.",
"ui.3d_mouse_step_ring_counterclockwise": "Поверніть кільце прокручування на кілька клацань проти годинникової стрілки.",
"ui.3d_mouse_step_roll_away": "Прокотіть кулю від себе кілька разів і дайте їй зупинитися.",
"ui.3d_mouse_step_roll_left": "Прокотіть кулю ліворуч кілька разів і дайте їй зупинитися.",
"ui.3d_mouse_step_roll_right": "Прокотіть кулю праворуч кілька разів і дайте їй зупинитися.",
"ui.3d_mouse_step_roll_toward": "Прокотіть кулю до себе кілька разів і дайте їй зупинитися.",
"ui.3d_mouse_step_slide_left": "Зсуньте ковпачок ліворуч, утримайте й відпустіть.",
"ui.3d_mouse_step_slide_right": "Зсуньте ковпачок праворуч, утримайте й відпустіть.",
"ui.3d_mouse_step_spin_clockwise": "Покрутіть кулю за годинниковою стрілкою кілька разів і дайте їй зупинитися.",
"ui.3d_mouse_step_spin_counterclockwise": "Покрутіть кулю проти годинникової стрілки кілька разів і дайте їй зупинитися.",
"ui.3d_mouse_step_tilt_away": "Нахиліть верх ковпачка від себе (ближній край піднімається), утримайте й відпустіть.",
"ui.3d_mouse_step_tilt_left": "Нахиліть ковпачок ліворуч (лівий край униз), утримайте й відпустіть.",
"ui.3d_mouse_step_tilt_right": "Нахиліть ковпачок праворуч (правий край униз), утримайте й відпустіть.",
"ui.3d_mouse_step_tilt_toward": "Нахиліть верх ковпачка до себе (ближній край опускається), утримайте й відпустіть.",
"ui.3d_mouse_step_touch": "Покладіть руку на ковпачок, не натискаючи на нього.",
"ui.3d_mouse_step_twist_clockwise": "Поверніть ковпачок за годинниковою стрілкою, утримайте й відпустіть.",
"ui.3d_mouse_step_twist_counterclockwise": "Поверніть ковпачок проти годинникової стрілки, утримайте й відпустіть.",
"ui.3d_mouse_switch_cap": "Калібрувати як повернення до центру",
"ui.3d_mouse_switch_trackball": "Калібрувати як трекбол",
"ui.3d_mouse_view_axis": "Вісь вигляду",
"ui.3d_mouse_view_off": "Вимк.",
"ui.3d_mouse_view_off_tip": "Профіль драйвера 3D-миші вимикає цю вісь, тож її рух не рухає вигляд. Якщо вибрати тут рух іншої осі, вони поміняються місцями, і цей рух перестане рухати вигляд.",
"ui.3d_mouse_view_orbit_sideways": "Орбіта ліворуч / праворуч",
"ui.3d_mouse_view_orbit_up_down": "Орбіта вгору / вниз",
"ui.3d_mouse_view_pan_sideways": "Зсув ліворуч / праворуч",
"ui.3d_mouse_view_pan_up_down": "Зсув угору / вниз",
"ui.3d_mouse_view_roll": "Крен",
"ui.3d_mouse_view_unmapped": "Вісь {n}",
"ui.3d_mouse_view_zoom": "Масштаб",
"ui.3d_mouse_waiting": "Очікування руху",
"ui.3d_mouse_wiggle": "Якщо 3D-миша підключена, трохи порухайте нею.",
"ui.3d_sketch": "3D-ескіз",
"ui.activate": "Активувати",
"ui.active_component": "Активний компонент",
@@ -1351,6 +1454,7 @@
"ui.blocked": "Заблоковані",
"ui.bodies": "Тіла",
"ui.bodies_all_if_none": "Тіла (усі, якщо не вибрано)",
"ui.bottom": "Знизу",
"ui.box": "Куб",
"ui.break": "Розірвати",
"ui.browser_bodies_one": "{count} тіло",
@@ -1794,59 +1898,6 @@
"ui.smooth_wheel_zoom": "Плавне масштабування колесом",
"ui.smooth_wheel_zoom_tip": "Вимкніть, щоб застосовувати кожну подію колеса негайно, без плавного завершення",
"ui.snap": "Прив'язка",
"ui.space_mouse_axes_reassigned": "Осі перепризначено в налаштуваннях, і це діє й поверх цього калібрування.",
"ui.space_mouse_calibrate": "Калібрувати…",
"ui.space_mouse_calibrate_tip": "Рухайте ковпачок так, як просить вікно, щоб SolidCraft дізнався, куди й наскільки далеко рухається кожна вісь цієї 3D-миші. Зберігається для цієї 3D-миші.",
"ui.space_mouse_calibrate_title": "Калібрування 3D-миші",
"ui.space_mouse_calibrated": "Відкалібровано",
"ui.space_mouse_calibration": "Калібрування 3D-миші",
"ui.space_mouse_calibration_done": "Готово. Збережіть його, щоб воно застосовувалося щоразу, коли підключено цю 3D-мишу.",
"ui.space_mouse_calibration_no_response": "Одна вісь майже не зрушила, тому її не можна відкалібрувати. Почніть спочатку й щоразу рухайте ковпачок далі.",
"ui.space_mouse_dead_zone": "Мертва зона",
"ui.space_mouse_dead_zone_tip": "Наскільки треба зсунути ковпачок, перш ніж зрушить вигляд, у частці від повного ходу. Збільште, якщо вигляд зміщується, коли ковпачок у спокої.",
"ui.space_mouse_driven_by": "Який відкалібрований рух пристрою керує цією віссю. Якщо вибрати рух, який уже використовує інша вісь, вони поміняються місцями.",
"ui.space_mouse_driven_by_label": "керується",
"ui.space_mouse_driver": "Драйвер 3D-миші",
"ui.space_mouse_driver_auto": "Автоматично",
"ui.space_mouse_driver_direct": "Напряму (hidraw)",
"ui.space_mouse_driver_only_direct": "Читання напряму з пристрою; spacenavd не запущено",
"ui.space_mouse_driver_only_spacenavd": "Читання через spacenavd, інших варіантів немає",
"ui.space_mouse_forget": "Забути калібрування",
"ui.space_mouse_hint": "Переміщуйте й обертайте вид разом; в ескізах доступні лише панорамування та масштаб.",
"ui.space_mouse_motion_rotation_x": "Обертання X",
"ui.space_mouse_motion_rotation_y": "Обертання Y",
"ui.space_mouse_motion_rotation_z": "Обертання Z",
"ui.space_mouse_motion_translation_x": "Зміщення X",
"ui.space_mouse_motion_translation_y": "Зміщення Y",
"ui.space_mouse_motion_translation_z": "Зміщення Z",
"ui.space_mouse_navigate": "Навігація за допомогою SpaceNavigator / SpaceMouse",
"ui.space_mouse_none": "3D-мишу не знайдено",
"ui.space_mouse_not_calibrated": "Не відкалібровано",
"ui.space_mouse_reading": "Показники",
"ui.space_mouse_reset_axes": "Скинути призначення осей",
"ui.space_mouse_step_lift": "Підніміть ковпачок угору, утримайте й відпустіть.",
"ui.space_mouse_step_press": "Натисніть ковпачок униз, утримайте й відпустіть.",
"ui.space_mouse_step_pull": "Потягніть ковпачок до себе, утримайте й відпустіть.",
"ui.space_mouse_step_push": "Штовхніть ковпачок від себе, утримайте й відпустіть.",
"ui.space_mouse_step_rest": "Приберіть руку з ковпачка й не торкайтеся його.",
"ui.space_mouse_step_slide_left": "Зсуньте ковпачок ліворуч, утримайте й відпустіть.",
"ui.space_mouse_step_slide_right": "Зсуньте ковпачок праворуч, утримайте й відпустіть.",
"ui.space_mouse_step_tilt_back": "Нахиліть ковпачок назад (передній край угору), утримайте й відпустіть.",
"ui.space_mouse_step_tilt_forward": "Нахиліть ковпачок уперед (передній край униз), утримайте й відпустіть.",
"ui.space_mouse_step_tilt_left": "Нахиліть ковпачок ліворуч (лівий край униз), утримайте й відпустіть.",
"ui.space_mouse_step_tilt_right": "Нахиліть ковпачок праворуч (правий край униз), утримайте й відпустіть.",
"ui.space_mouse_step_twist_clockwise": "Поверніть ковпачок за годинниковою стрілкою, утримайте й відпустіть.",
"ui.space_mouse_step_twist_counterclockwise": "Поверніть ковпачок проти годинникової стрілки, утримайте й відпустіть.",
"ui.space_mouse_view_axis": "Вісь вигляду",
"ui.space_mouse_view_off": "Вимк.",
"ui.space_mouse_view_off_tip": "Профіль драйвера 3D-миші вимикає цю вісь, тож її рух не рухає вигляд. Якщо вибрати тут рух іншої осі, вони поміняються місцями, і цей рух перестане рухати вигляд.",
"ui.space_mouse_view_orbit_sideways": "Орбіта ліворуч / праворуч",
"ui.space_mouse_view_orbit_up_down": "Орбіта вгору / вниз",
"ui.space_mouse_view_pan_sideways": "Зсув ліворуч / праворуч",
"ui.space_mouse_view_pan_up_down": "Зсув угору / вниз",
"ui.space_mouse_view_roll": "Крен",
"ui.space_mouse_view_unmapped": "Вісь {n}",
"ui.space_mouse_view_zoom": "Масштаб",
"ui.spacing": "Крок",
"ui.spacing_2": "Крок 2",
"ui.sphere": "Куля",
+104 -28
View File
@@ -530,6 +530,10 @@
"cmd.file_insert_step": "Chèn tệp STEP",
"cmd.file_save_mesh": "Lưu dưới dạng lưới đa giác",
"cmd.file_slicers": "Phần mềm cắt lớp đã cài đặt",
"cmd.frame_member": "Thanh khung",
"cmd.frame_profile_insert": "Chèn tiết diện",
"cmd.frame_profile_list": "Thư viện tiết diện",
"cmd.frame_profile_properties": "Thuộc tính tiết diện",
"cmd.inspect_accessibility": "Phân tích khả năng gia công tiếp cận",
"cmd.inspect_center_of_mass": "Trọng tâm",
"cmd.inspect_clearance": "Khoảng cách an toàn",
@@ -1121,7 +1125,106 @@
"trace.stopped_by_contact": "Kết thúc tại mẫu {sample}: {a} sẽ xuyên qua {b}",
"trace.stopped_by_loop": "Kết thúc tại mẫu {sample}: vòng lặp qua {joint} không thể khép kín thêm được nữa",
"ui.1_degree_of_freedom": "1 bậc tự do",
"ui.3d_mouse_axes_reassigned": "Các trục được gán lại trong Tùy chọn, và điều đó vẫn áp dụng cùng với hiệu chuẩn này.",
"ui.3d_mouse_button": "Nút {number}",
"ui.3d_mouse_button_nothing": "Không có",
"ui.3d_mouse_button_settings": "Cài đặt chuột 3D",
"ui.3d_mouse_buttons": "Nút",
"ui.3d_mouse_buttons_hint": "Nhấn một nút trên chuột 3D để tìm nó ở đây, rồi chọn chức năng.",
"ui.3d_mouse_buttons_no_device": "Kết nối chuột 3D để chọn chức năng cho các nút của nó.",
"ui.3d_mouse_buttons_reset": "Khôi phục nút mặc định",
"ui.3d_mouse_calibrate": "Hiệu chuẩn…",
"ui.3d_mouse_calibrate_tip": "Di chuyển núm điều khiển theo yêu cầu của cửa sổ để SolidCraft biết mỗi trục của chuột 3D này đi theo hướng nào và xa bao nhiêu. Được lưu cho chuột 3D này.",
"ui.3d_mouse_calibrate_title": "Hiệu chuẩn chuột 3D",
"ui.3d_mouse_calibrate_wait": "Hãy di chuyển chuột 3D một lần để SolidCraft nhận ra nó.",
"ui.3d_mouse_calibrated": "Đã hiệu chuẩn",
"ui.3d_mouse_calibration": "Hiệu chuẩn chuột 3D",
"ui.3d_mouse_calibration_done": "Xong. Hãy lưu để dùng mỗi khi chuột 3D này được kết nối.",
"ui.3d_mouse_calibration_no_response": "Một trục hầu như không di chuyển nên không thể hiệu chuẩn. Hãy bắt đầu lại và di chuyển núm điều khiển xa hơn mỗi lần.",
"ui.3d_mouse_circles_help": "Các vòng tròn cho thấy thiết bị gửi gì sau khi hiệu chuẩn. Mô hình thử cho thấy khung nhìn làm gì với nó, sau đảo chiều, tốc độ và gán trục.",
"ui.3d_mouse_dead_zone": "Vùng chết",
"ui.3d_mouse_dead_zone_tip": "Núm điều khiển phải di chuyển bao xa thì khung nhìn mới di chuyển, tính theo tỷ lệ hành trình tối đa. Hãy tăng giá trị này nếu khung nhìn bị trôi khi núm đang đứng yên.",
"ui.3d_mouse_denied": "SolidCraft thấy một chuột 3D nhưng không được phép đọc nó. Xem ghi chú thiết lập chuột 3D để biết quy tắc udev.",
"ui.3d_mouse_denied_short": "Đã thấy, nhưng không đọc được",
"ui.3d_mouse_driven_by": "Chuyển động đã hiệu chuẩn nào của thiết bị điều khiển trục này. Chọn chuyển động mà trục khác đang dùng sẽ hoán đổi hai trục.",
"ui.3d_mouse_driven_by_label": "điều khiển bởi",
"ui.3d_mouse_driver": "Trình điều khiển chuột 3D",
"ui.3d_mouse_driver_auto": "Tự động",
"ui.3d_mouse_driver_direct": "Trực tiếp (hidraw)",
"ui.3d_mouse_driver_fallback": "Tạm thời đọc qua spacenavd: không mở được chính thiết bị.",
"ui.3d_mouse_driver_only_direct": "Đang đọc thiết bị trực tiếp; spacenavd không chạy",
"ui.3d_mouse_driver_only_spacenavd": "Đang đọc qua spacenavd, cách duy nhất có sẵn",
"ui.3d_mouse_forget": "Xóa hiệu chuẩn",
"ui.3d_mouse_ghost_left_viewport": "Khung nhìn bên trái",
"ui.3d_mouse_ghost_left_window": "Cửa sổ bên trái",
"ui.3d_mouse_ghost_position": "Vị trí",
"ui.3d_mouse_ghost_right_viewport": "Khung nhìn bên phải",
"ui.3d_mouse_hint": "Di chuyển và xoay khung nhìn đồng thời; môi trường phác thảo chỉ sử dụng dời khung nhìn và thu phóng.",
"ui.3d_mouse_kind_cap": "Trở về giữa",
"ui.3d_mouse_kind_question": "Đây là loại chuột 3D nào?",
"ui.3d_mouse_kind_trackball": "Bi xoay",
"ui.3d_mouse_looks_like_cap": "Giá trị giữ nguyên khi bạn giữ, giống thiết bị kiểu “Trở về giữa”.",
"ui.3d_mouse_looks_like_trackball": "Giá trị trở về ngay khi bạn ngừng di chuyển, giống bi xoay.",
"ui.3d_mouse_motion_rotation_x": "Xoay X",
"ui.3d_mouse_motion_rotation_y": "Xoay Y",
"ui.3d_mouse_motion_rotation_z": "Xoay Z",
"ui.3d_mouse_motion_translation_x": "Tịnh tiến X",
"ui.3d_mouse_motion_translation_y": "Tịnh tiến Y",
"ui.3d_mouse_motion_translation_z": "Tịnh tiến Z",
"ui.3d_mouse_navigate": "Điều hướng bằng chuột 3D",
"ui.3d_mouse_none": "Không tìm thấy chuột 3D",
"ui.3d_mouse_not_calibrated": "Chưa hiệu chuẩn",
"ui.3d_mouse_offer": "Hiệu chuẩn chuột 3D sẽ sửa các trục bị hoán đổi hoặc đảo ngược và chỉnh tốc độ cũng như cảm giác.",
"ui.3d_mouse_offer_never": "Không hiện lại",
"ui.3d_mouse_offer_swap": "Chuyển sang Hidraw (điều khiển trực tiếp)",
"ui.3d_mouse_reading": "Giá trị đọc",
"ui.3d_mouse_reset_axes": "Đặt lại phép gán trục",
"ui.3d_mouse_reset_view": "Đặt lại khung nhìn",
"ui.3d_mouse_restore": "Khôi phục mặc định chuột 3D",
"ui.3d_mouse_restore_ask": "Đặt cài đặt chuột 3D về mặc định? Hiệu chuẩn và gán nút được giữ nguyên.",
"ui.3d_mouse_section": "Chuột 3D",
"ui.3d_mouse_show_in_view": "Hiện chuột 3D trong khung nhìn 3D",
"ui.3d_mouse_show_in_view_tip": "Hình chuột 3D của bạn ở góc dưới bên trái, chuyển động theo bạn.",
"ui.3d_mouse_skip": "Thiết bị của tôi không làm được điều này",
"ui.3d_mouse_skip_tip": "Bỏ qua chuyển động này theo cả hai chiều; việc hiệu chuẩn sẽ không dùng nó.",
"ui.3d_mouse_speed": "Tốc độ chuột 3D",
"ui.3d_mouse_step_lift": "Nâng núm điều khiển lên, giữ nguyên, rồi thả ra.",
"ui.3d_mouse_step_press": "Nhấn núm điều khiển xuống, giữ nguyên, rồi thả ra.",
"ui.3d_mouse_step_pull": "Kéo núm điều khiển về phía bạn, giữ nguyên, rồi thả ra.",
"ui.3d_mouse_step_push": "Đẩy núm điều khiển ra xa bạn, giữ nguyên, rồi thả ra.",
"ui.3d_mouse_step_rest": "Bỏ tay khỏi núm điều khiển và để yên.",
"ui.3d_mouse_step_rest_trackball": "Bỏ tay khỏi viên bi và để yên.",
"ui.3d_mouse_step_ring_clockwise": "Xoay vòng cuộn theo chiều kim đồng hồ vài nấc.",
"ui.3d_mouse_step_ring_counterclockwise": "Xoay vòng cuộn ngược chiều kim đồng hồ vài nấc.",
"ui.3d_mouse_step_roll_away": "Lăn viên bi ra xa bạn vài lần, rồi để nó dừng lại.",
"ui.3d_mouse_step_roll_left": "Lăn viên bi sang trái vài lần, rồi để nó dừng lại.",
"ui.3d_mouse_step_roll_right": "Lăn viên bi sang phải vài lần, rồi để nó dừng lại.",
"ui.3d_mouse_step_roll_toward": "Lăn viên bi về phía bạn vài lần, rồi để nó dừng lại.",
"ui.3d_mouse_step_slide_left": "Trượt núm điều khiển sang trái, giữ nguyên, rồi thả ra.",
"ui.3d_mouse_step_slide_right": "Trượt núm điều khiển sang phải, giữ nguyên, rồi thả ra.",
"ui.3d_mouse_step_spin_clockwise": "Xoay viên bi theo chiều kim đồng hồ vài lần, rồi để nó dừng lại.",
"ui.3d_mouse_step_spin_counterclockwise": "Xoay viên bi ngược chiều kim đồng hồ vài lần, rồi để nó dừng lại.",
"ui.3d_mouse_step_tilt_away": "Nghiêng phần trên núm điều khiển ra xa bạn (cạnh gần bạn nhất nâng lên), giữ nguyên, rồi thả ra.",
"ui.3d_mouse_step_tilt_left": "Nghiêng núm điều khiển sang trái (cạnh trái hạ xuống), giữ nguyên, rồi thả ra.",
"ui.3d_mouse_step_tilt_right": "Nghiêng núm điều khiển sang phải (cạnh phải hạ xuống), giữ nguyên, rồi thả ra.",
"ui.3d_mouse_step_tilt_toward": "Nghiêng phần trên núm điều khiển về phía bạn (cạnh gần bạn nhất hạ xuống), giữ nguyên, rồi thả ra.",
"ui.3d_mouse_step_touch": "Đặt tay lên núm điều khiển nhưng không đẩy.",
"ui.3d_mouse_step_twist_clockwise": "Xoay núm điều khiển theo chiều kim đồng hồ, giữ nguyên, rồi thả ra.",
"ui.3d_mouse_step_twist_counterclockwise": "Xoay núm điều khiển ngược chiều kim đồng hồ, giữ nguyên, rồi thả ra.",
"ui.3d_mouse_switch_cap": "Hiệu chuẩn theo kiểu trở về giữa",
"ui.3d_mouse_switch_trackball": "Hiệu chuẩn như bi xoay",
"ui.3d_mouse_view_axis": "Trục khung nhìn",
"ui.3d_mouse_view_off": "Tắt",
"ui.3d_mouse_view_off_tip": "Hồ sơ của trình điều khiển chuột 3D tắt trục này, nên chuyển động của nó không làm khung nhìn di chuyển. Chọn chuyển động của trục khác ở đây sẽ hoán đổi hai trục, và chuyển động đó không còn di chuyển khung nhìn.",
"ui.3d_mouse_view_orbit_sideways": "Xoay quanh trái / phải",
"ui.3d_mouse_view_orbit_up_down": "Xoay quanh lên / xuống",
"ui.3d_mouse_view_pan_sideways": "Kéo trái / phải",
"ui.3d_mouse_view_pan_up_down": "Kéo lên / xuống",
"ui.3d_mouse_view_roll": "Lăn",
"ui.3d_mouse_view_unmapped": "Trục {n}",
"ui.3d_mouse_view_zoom": "Thu phóng",
"ui.3d_mouse_waiting": "Đang chờ chuyển động",
"ui.3d_mouse_wiggle": "Nếu bạn đã cắm một chiếc, hãy lắc nhẹ nó.",
"ui.3d_sketch": "3D Phác thảo",
"ui.activate": "Kích hoạt",
"ui.active_component": "Cụm chi tiết đang kích hoạt",
@@ -1351,6 +1454,7 @@
"ui.blocked": "Bị chặn",
"ui.bodies": "Các thân khối",
"ui.bodies_all_if_none": "Thân khối (tất cả nếu không chọn)",
"ui.bottom": "Dưới",
"ui.box": "Khối hộp",
"ui.break": "Ngắt",
"ui.browser_bodies_one": "{count} thân khối",
@@ -1794,34 +1898,6 @@
"ui.smooth_wheel_zoom": "Thu phóng mượt bằng con lăn",
"ui.smooth_wheel_zoom_tip": "Tắt tùy chọn này để áp dụng từng sự kiện con lăn ngay lập tức mà không có hiệu ứng làm mượt chuyển động",
"ui.snap": "Bắt điểm",
"ui.space_mouse_calibrate": "Hiệu chuẩn…",
"ui.space_mouse_calibrate_tip": "Di chuyển núm điều khiển theo yêu cầu của cửa sổ để SolidCraft biết mỗi trục của chuột 3D này đi theo hướng nào và xa bao nhiêu. Được lưu cho chuột 3D này.",
"ui.space_mouse_calibrate_title": "Hiệu chuẩn chuột 3D",
"ui.space_mouse_calibrated": "Đã hiệu chuẩn",
"ui.space_mouse_calibration": "Hiệu chuẩn chuột 3D",
"ui.space_mouse_calibration_done": "Xong. Hãy lưu để dùng mỗi khi chuột 3D này được kết nối.",
"ui.space_mouse_calibration_no_response": "Một trục hầu như không di chuyển nên không thể hiệu chuẩn. Hãy bắt đầu lại và di chuyển núm điều khiển xa hơn mỗi lần.",
"ui.space_mouse_dead_zone": "Vùng chết",
"ui.space_mouse_dead_zone_tip": "Núm điều khiển phải di chuyển bao xa thì góc nhìn mới di chuyển, tính theo tỷ lệ hành trình tối đa. Hãy tăng giá trị này nếu góc nhìn bị trôi khi núm đang đứng yên.",
"ui.space_mouse_forget": "Xóa hiệu chuẩn",
"ui.space_mouse_hint": "Di chuyển và xoay khung nhìn đồng thời; môi trường phác thảo chỉ sử dụng dời góc nhìn và thu phóng.",
"ui.space_mouse_navigate": "Điều hướng bằng SpaceNavigator / SpaceMouse",
"ui.space_mouse_none": "Không tìm thấy chuột 3D",
"ui.space_mouse_not_calibrated": "Chưa hiệu chuẩn",
"ui.space_mouse_reading": "Giá trị đọc",
"ui.space_mouse_step_lift": "Nâng núm điều khiển lên, giữ nguyên, rồi thả ra.",
"ui.space_mouse_step_press": "Nhấn núm điều khiển xuống, giữ nguyên, rồi thả ra.",
"ui.space_mouse_step_pull": "Kéo núm điều khiển về phía bạn, giữ nguyên, rồi thả ra.",
"ui.space_mouse_step_push": "Đẩy núm điều khiển ra xa bạn, giữ nguyên, rồi thả ra.",
"ui.space_mouse_step_rest": "Bỏ tay khỏi núm điều khiển và để yên.",
"ui.space_mouse_step_slide_left": "Trượt núm điều khiển sang trái, giữ nguyên, rồi thả ra.",
"ui.space_mouse_step_slide_right": "Trượt núm điều khiển sang phải, giữ nguyên, rồi thả ra.",
"ui.space_mouse_step_tilt_back": "Nghiêng núm điều khiển về sau (cạnh trước nâng lên), giữ nguyên, rồi thả ra.",
"ui.space_mouse_step_tilt_forward": "Nghiêng núm điều khiển về trước (cạnh trước hạ xuống), giữ nguyên, rồi thả ra.",
"ui.space_mouse_step_tilt_left": "Nghiêng núm điều khiển sang trái (cạnh trái hạ xuống), giữ nguyên, rồi thả ra.",
"ui.space_mouse_step_tilt_right": "Nghiêng núm điều khiển sang phải (cạnh phải hạ xuống), giữ nguyên, rồi thả ra.",
"ui.space_mouse_step_twist_clockwise": "Xoay núm điều khiển theo chiều kim đồng hồ, giữ nguyên, rồi thả ra.",
"ui.space_mouse_step_twist_counterclockwise": "Xoay núm điều khiển ngược chiều kim đồng hồ, giữ nguyên, rồi thả ra.",
"ui.spacing": "Khoảng cách",
"ui.spacing_2": "Khoảng cách 2",
"ui.sphere": "Hình cầu",
+47 -28
View File
@@ -529,6 +529,10 @@
"cmd.file_insert_step": "插入 STEP",
"cmd.file_save_mesh": "另存為網格",
"cmd.file_slicers": "已安裝的切片軟體",
"cmd.frame_member": "框架構件",
"cmd.frame_profile_insert": "插入型材",
"cmd.frame_profile_list": "型材庫",
"cmd.frame_profile_properties": "型材屬性",
"cmd.inspect_accessibility": "可達性分析",
"cmd.inspect_center_of_mass": "質心",
"cmd.inspect_clearance": "間隙",
@@ -1120,7 +1124,50 @@
"trace.stopped_by_contact": "在取樣 {sample} 處結束:{a} 會穿過 {b}",
"trace.stopped_by_loop": "在取樣 {sample} 處結束:經過 {joint} 的環路無法再閉合",
"ui.1_degree_of_freedom": "1 個自由度",
"ui.3d_mouse_calibrate": "校準…",
"ui.3d_mouse_calibrate_tip": "按視窗提示移動搖桿帽,SolidCraft 會記住這個 3D 滑鼠每個軸的方向和行程。校準結果按此 3D 滑鼠儲存。",
"ui.3d_mouse_calibrate_title": "校準 3D 滑鼠",
"ui.3d_mouse_calibrate_wait": "請移動一次 3D 滑鼠,讓 SolidCraft 能夠辨識它。",
"ui.3d_mouse_calibrated": "已校準",
"ui.3d_mouse_calibration": "3D 滑鼠校準",
"ui.3d_mouse_calibration_done": "完成。儲存後,每次連線此 3D 滑鼠都會使用它。",
"ui.3d_mouse_calibration_no_response": "有一個軸幾乎沒有移動,因此無法校準。請重新開始,並且每次把搖桿帽移得更遠。",
"ui.3d_mouse_circles_help": "圓圈顯示裝置在校準後送出的內容。測試模型顯示檢視在反向、速度與軸指定之後如何處理它。",
"ui.3d_mouse_dead_zone": "死區",
"ui.3d_mouse_dead_zone_tip": "檢視開始移動前搖桿帽需要移動的距離,以其全行程的比例表示。如果搖桿帽靜止時檢視仍在漂移,請調大。",
"ui.3d_mouse_denied": "SolidCraft 看得到 3D 滑鼠,但沒有權限讀取。udev 規則請見 3D 滑鼠的設定說明。",
"ui.3d_mouse_denied_short": "已找到,但無法讀取",
"ui.3d_mouse_driver_fallback": "目前改透過 spacenavd 讀取:無法開啟裝置本身。",
"ui.3d_mouse_forget": "清除校準",
"ui.3d_mouse_ghost_left_viewport": "視埠左側",
"ui.3d_mouse_ghost_left_window": "視窗左側",
"ui.3d_mouse_ghost_position": "位置",
"ui.3d_mouse_ghost_right_viewport": "視埠右側",
"ui.3d_mouse_hint": "同時移動和旋轉檢視;草圖中僅支援平移和縮放。",
"ui.3d_mouse_navigate": "使用 3D 滑鼠導覽",
"ui.3d_mouse_none": "未找到 3D 滑鼠",
"ui.3d_mouse_not_calibrated": "未校準",
"ui.3d_mouse_offer": "校準 3D 滑鼠可以修正互換或反向的軸,並調整它的速度和手感。",
"ui.3d_mouse_offer_never": "不再顯示",
"ui.3d_mouse_offer_swap": "切換到 Hidraw(直接驅動)",
"ui.3d_mouse_reading": "讀值",
"ui.3d_mouse_reset_view": "重設檢視",
"ui.3d_mouse_restore": "還原 3D 滑鼠預設值",
"ui.3d_mouse_restore_ask": "要將 3D 滑鼠設定還原為預設值嗎?校準和按鈕對應會保留。",
"ui.3d_mouse_speed": "3D 滑鼠速度",
"ui.3d_mouse_step_lift": "向上提起搖桿帽,保持住,然後鬆開。",
"ui.3d_mouse_step_press": "向下按壓搖桿帽,保持住,然後鬆開。",
"ui.3d_mouse_step_pull": "把搖桿帽拉向自己,保持住,然後鬆開。",
"ui.3d_mouse_step_push": "把搖桿帽推離自己,保持住,然後鬆開。",
"ui.3d_mouse_step_rest": "請把手從搖桿帽上移開,讓它保持靜止。",
"ui.3d_mouse_step_slide_left": "向左推動搖桿帽,保持住,然後鬆開。",
"ui.3d_mouse_step_slide_right": "向右推動搖桿帽,保持住,然後鬆開。",
"ui.3d_mouse_step_tilt_left": "向左傾斜搖桿帽(左緣向下),保持住,然後鬆開。",
"ui.3d_mouse_step_tilt_right": "向右傾斜搖桿帽(右緣向下),保持住,然後鬆開。",
"ui.3d_mouse_step_twist_clockwise": "順時針扭轉搖桿帽,保持住,然後鬆開。",
"ui.3d_mouse_step_twist_counterclockwise": "逆時針扭轉搖桿帽,保持住,然後鬆開。",
"ui.3d_mouse_waiting": "等待移動",
"ui.3d_mouse_wiggle": "如果已插上,請輕輕晃動一下。",
"ui.3d_sketch": "3D 草圖",
"ui.activate": "啟用",
"ui.active_component": "作用中元件",
@@ -1793,34 +1840,6 @@
"ui.smooth_wheel_zoom": "平滑滾輪縮放",
"ui.smooth_wheel_zoom_tip": "關閉後每個滾輪事件立即生效,不做平滑延遲",
"ui.snap": "鎖點",
"ui.space_mouse_calibrate": "校準…",
"ui.space_mouse_calibrate_tip": "按視窗提示移動搖桿帽,SolidCraft 會記住這個 3D 滑鼠每個軸的方向和行程。校準結果按此 3D 滑鼠儲存。",
"ui.space_mouse_calibrate_title": "校準 3D 滑鼠",
"ui.space_mouse_calibrated": "已校準",
"ui.space_mouse_calibration": "3D 滑鼠校準",
"ui.space_mouse_calibration_done": "完成。儲存後,每次連線此 3D 滑鼠都會使用它。",
"ui.space_mouse_calibration_no_response": "有一個軸幾乎沒有移動,因此無法校準。請重新開始,並且每次把搖桿帽移得更遠。",
"ui.space_mouse_dead_zone": "死區",
"ui.space_mouse_dead_zone_tip": "檢視開始移動前搖桿帽需要移動的距離,以其全行程的比例表示。如果搖桿帽靜止時檢視仍在漂移,請調大。",
"ui.space_mouse_forget": "清除校準",
"ui.space_mouse_hint": "同時移動和旋轉檢視;草圖中僅支援平移和縮放。",
"ui.space_mouse_navigate": "使用 SpaceNavigator / SpaceMouse 導覽",
"ui.space_mouse_none": "未找到 3D 滑鼠",
"ui.space_mouse_not_calibrated": "未校準",
"ui.space_mouse_reading": "讀值",
"ui.space_mouse_step_lift": "向上提起搖桿帽,保持住,然後鬆開。",
"ui.space_mouse_step_press": "向下按壓搖桿帽,保持住,然後鬆開。",
"ui.space_mouse_step_pull": "把搖桿帽拉向自己,保持住,然後鬆開。",
"ui.space_mouse_step_push": "把搖桿帽推離自己,保持住,然後鬆開。",
"ui.space_mouse_step_rest": "請把手從搖桿帽上移開,讓它保持靜止。",
"ui.space_mouse_step_slide_left": "向左推動搖桿帽,保持住,然後鬆開。",
"ui.space_mouse_step_slide_right": "向右推動搖桿帽,保持住,然後鬆開。",
"ui.space_mouse_step_tilt_back": "向後傾斜搖桿帽(前緣向上),保持住,然後鬆開。",
"ui.space_mouse_step_tilt_forward": "向前傾斜搖桿帽(前緣向下),保持住,然後鬆開。",
"ui.space_mouse_step_tilt_left": "向左傾斜搖桿帽(左緣向下),保持住,然後鬆開。",
"ui.space_mouse_step_tilt_right": "向右傾斜搖桿帽(右緣向下),保持住,然後鬆開。",
"ui.space_mouse_step_twist_clockwise": "順時針扭轉搖桿帽,保持住,然後鬆開。",
"ui.space_mouse_step_twist_counterclockwise": "逆時針扭轉搖桿帽,保持住,然後鬆開。",
"ui.spacing": "間距",
"ui.spacing_2": "間距 2",
"ui.sphere": "球體",
+158 -54
View File
@@ -5,7 +5,9 @@
"2. Attach your screenshot: copy and paste it, or save and upload the PNG.": "2. 附上截图:复制并粘贴,或保存为 PNG 后上传。",
"2D": "2D",
"3. Click Submit new issue on GitHub to send your report.": "3. 在 GitHub 上点击 Submit new issue 发送报告。",
"A Single hole snaps to the middle of its face and to the centres of its round edges": "单个孔捕捉到其所在面的中心和圆形边的中心",
"A new configuration, a copy of the active one": "新建配置,为当前配置的副本",
"A placed Single hole has a handle to drag it, and picking its face again moves the hole there instead of taking it out": "已放置的单个孔带有可拖动的控点,再次选择该面会将孔移到该处而不是删除它",
"ARRANGE": "排列",
"About SolidCraft": "关于 SolidCraft",
"Acceleration": "加速度",
@@ -25,11 +27,13 @@
"Advanced": "高级",
"Against": "对照",
"Alignment": "对齐",
"All Lines": "所有直线",
"All Sketch Points": "所有草图点",
"All components": "所有零部件",
"All open designs": "所有打开的设计",
"Allowed expressions, separated by semicolons": "允许的表达式,以分号分隔",
"Also deletes": "同时删除",
"Anchor": "基准点",
"Angle 2": "角度 2",
"Animate": "动画",
"App/system information and command settings are included. Review private details before sharing.": "报告包含应用和系统信息以及命令设置。共享前请检查私人信息。",
@@ -47,6 +51,7 @@
"BLEND SURFACE": "混合曲面",
"BOUNDARY SURFACE": "边界曲面",
"BROWSER": "浏览器",
"Bar": "扁钢",
"Bend Edges": "折弯边",
"Bend Line Position": "弯折线位置",
"Bend Position": "折弯位置",
@@ -59,6 +64,9 @@
"Body (last if none)": "实体(未指定时为最后一个)",
"Body to split": "要分割的实体",
"Body, or faces to take out": "实体,或要移除的面",
"Bottom Left": "左下",
"Bottom Middle": "下中",
"Bottom Right": "右下",
"Boundary": "边界",
"Bounding box": "边界框",
"CHECK": "检查",
@@ -78,12 +86,15 @@
"Center Y": "中心 Y",
"Center of mass": "质心",
"Centre to centre": "中心距",
"Centroid": "形心",
"Chamfer Type": "倒角类型",
"Channel": "槽钢",
"Check collisions": "检查碰撞",
"Checked": "已检查",
"Choose Variable radius or Spline in Type.": "请在“类型”中选择 Variable radius 或样条曲线。",
"Choose a new plane. Sketch geometry and dimensions stay unchanged in its two-dimensional coordinates.": "选择一个新平面。草图几何和尺寸在其二维坐标中保持不变。",
"Choose…": "选择…",
"Circle center": "圆心",
"Circular": "圆周",
"Circumference": "周长",
"Close draft": "关闭草稿",
@@ -113,10 +124,12 @@
"Copy screenshot": "复制截图",
"Corner Relief": "拐角释放",
"Corner Relief Shape": "拐角释放形状",
"Corner radius": "圆角半径",
"Counterbore depth": "沉孔深度",
"Counterbore Ø": "柱形沉孔 Ø",
"Countersink angle": "沉头角度",
"Countersink Ø": "锥形沉孔 Ø",
"Create Hole": "创建孔",
"Create Issue — review draft": "创建 Issue——审阅草稿",
"Create Issue…": "创建 Issue…",
"Cross curves": "交叉曲线",
@@ -152,6 +165,7 @@
"Don't ask again": "不再询问",
"Double-click to rename": "双击重命名",
"Double-clicking the middle button in the view: Home (the home view, framing what is shown), Fit (frame what is shown, keeping the orientation) or nothing": "在视图中双击中键:主视图(主视图,框住所显示的内容)、适合窗口(框住所显示的内容,保持方向)或无动作",
"Drag to move the hole; click to remove it": "拖动以移动孔,单击以删除",
"Drive Joint": "驱动接头",
"Duration": "时长",
"Edges": "边",
@@ -185,6 +199,7 @@
"Face": "面",
"Face Appearance": "面外观",
"Face attachment lost": "面附着丢失",
"Face center": "面中心",
"Faces": "面",
"Faces / edges / vertices": "面 / 边 / 顶点",
"Faces to split": "要分割的面",
@@ -200,6 +215,7 @@
"First plane": "第一个平面",
"Fit and G2 corners require Constant radius.": "拟合和 G2 拐角需要 Constant radius。",
"Fixed Face": "固定面",
"Flange thickness": "翼缘厚度",
"Flat Pattern": "展开图",
"Flat size": "平板尺寸",
"Follow camera (Look At sketches)": "跟随相机(注视草图)",
@@ -222,6 +238,7 @@
"Holes (edges on them)": "孔(孔上的边)",
"Home view": "主视图",
"Horiz./Vert.": "水平 / 垂直",
"I-Beam": "工字钢",
"IMAGES": "图像",
"Import…": "导入…",
"In This Design": "在此设计中",
@@ -242,10 +259,12 @@
"Keep of the other surface": "另一曲面保留的部分",
"Key a joint's value at this step": "在此步骤为接头值设置关键帧",
"Keys": "关键帧",
"L-Angle": "角钢",
"LIBRARY": "库",
"LINKS": "链接",
"Later": "稍后",
"Leave it": "保持原样",
"Left Middle": "左中",
"Legacy face attachment. Rebinding to a certified face creates an exact attachment.": "旧版面附着。重新绑定到经验证的面可创建精确附着。",
"Length": "长度",
"Length units": "长度单位",
@@ -255,6 +274,7 @@
"Limits": "限制",
"Line Spacing": "行间距",
"Line Type": "线型",
"Lines": "直线",
"Listing the installed fonts…": "正在列出已安装字体…",
"Load library": "加载库",
"Local library": "本地库",
@@ -288,6 +308,7 @@
"Move Type": "移动类型",
"Move down": "下移",
"Move earlier": "向前移动",
"Move holes by clicking or dragging": "通过单击或拖动移动孔",
"Move later": "向后移动",
"Move up": "上移",
"Name": "名称",
@@ -319,6 +340,7 @@
"Orbit (right drag)": "旋转(右键拖动)",
"Other side": "另一侧",
"Other surface (mutual trim)": "另一曲面(相互修剪)",
"Outer radius": "外圆角半径",
"Outside": "外侧",
"Overall length": "总长",
"Param. Graph": "参数图",
@@ -361,6 +383,7 @@
"Recover": "恢复",
"Recover unsaved design?": "恢复未保存的设计?",
"Rectangular": "矩形",
"Rectangular Tube": "矩形管",
"Reference face": "参考面",
"Remove Tools": "移除工具",
"Remove condition": "删除条件",
@@ -398,11 +421,15 @@
"Rib Offset": "筋板偏移",
"Rib Thickness": "筋板厚度",
"Ribs": "筋板",
"Right Middle": "右中",
"Rim Edge": "轮缘边",
"Ring of tools on the right button": "右键工具环",
"Roll Back Here": "回滚到此处",
"Roll History Marker Here": "将历史标记滚动到此处",
"Root radius": "根部圆角半径",
"Round": "圆角",
"Round Bar": "圆钢",
"Round Tube": "圆管",
"Rule": "规则",
"Rule name": "规则名称",
"Rules run from top to bottom. Matched drives change effective values.": "规则从上到下依次运行。满足条件的驱动规则更改有效值。",
@@ -421,6 +448,7 @@
"Search this library": "搜索此库",
"Second plane": "第二个平面",
"Section": "剖面",
"Section (optional)": "截面(可选)",
"Sections (one sketch each)": "截面(每个一个草图)",
"Select Other": "选择其他",
"Select Other: hold the left button still on the model (or right-click › Select Other…) to list everything under the cursor; click again on the same spot to select the next thing there. Double-click the middle button to go Home (Preferences › Navigation).": "“选择其他”:在模型上按住左键(或右键单击 › 选择其他…)列出光标下的所有对象;在同一位置再次单击可选择该处的下一个对象。双击中键转到主视图(首选项 › 导航)。",
@@ -445,6 +473,7 @@
"Sketch plane has no body-face attachment.": "草图平面没有实体面附着。",
"Sketch points": "草图点",
"Slot width": "槽宽",
"Snap to face and edge centres": "捕捉到面和边的中心",
"SolidCraft closed before these designs were saved. Their last autosave can be opened.": "SolidCraft 在这些设计保存前已关闭。可以打开它们的上次自动保存。",
"Specialise": "专用操作",
"Speed": "速度",
@@ -492,11 +521,15 @@
"To": "终点",
"To Offset": "偏移",
"To edges": "终止边",
"Toe radius": "肢端圆角半径",
"Tolerance": "公差",
"Too close": "过近",
"Tool Bodies": "工具实体",
"Tools": "工具",
"Tools, clockwise from the top": "工具,从顶部顺时针排列",
"Top Left": "左上",
"Top Middle": "上中",
"Top Right": "右上",
"Trimming tool (plane, face or curves)": "修剪工具(平面、面或曲线)",
"Turn off section analysis before exporting the view.": "请关闭截面分析后再导出视图。",
"Type": "类型",
@@ -521,6 +554,7 @@
"Wall": "壁厚",
"Wall Location": "壁位置",
"Wall Thickness": "壁厚度",
"Web thickness": "腹板厚度",
"What did you do just before the problem? A short list is enough": "问题发生前您进行了哪些操作?简要列出即可",
"What did you expect to see?": "您期望看到什么结果?",
"What happened?": "发生了什么?",
@@ -542,6 +576,8 @@
"Z angle": "Z 角度",
"Z distance": "Z 距离",
"Zebra": "斑马纹",
"ai.prefs.allow_control": "允许 AI 代理连接(控制通道 / MCP)",
"ai.prefs.allow_control_note": "仅在本机开放控制通道(127.0.0.1,端口 27878 或下一个空闲端口)。连接的程序还必须出示一个每次启动时新生成、只有你的用户账户能读取的秘密令牌。下次启动 SolidCraft 时生效。关闭:除非用 --control 启动,否则不监听任何端口。",
"ai.prefs.availability": "助手控制",
"ai.prefs.background_commands": "在后台执行代理命令",
"ai.prefs.follow_camera": "将相机转向草图",
@@ -689,6 +725,10 @@
"cmd.file_insert_step": "插入 STEP",
"cmd.file_save_mesh": "另存为网格",
"cmd.file_slicers": "已安装的切片软件",
"cmd.frame_member": "框架构件",
"cmd.frame_profile_insert": "插入型材",
"cmd.frame_profile_list": "型材库",
"cmd.frame_profile_properties": "型材属性",
"cmd.inspect_accessibility": "可达性分析",
"cmd.inspect_center_of_mass": "质心",
"cmd.inspect_clearance": "间隙",
@@ -747,6 +787,7 @@
"cmd.motion_trace_edit": "编辑运动轨迹",
"cmd.motion_trace_keep": "保留运动轨迹",
"cmd.occurrence_copy": "粘贴(实例)",
"cmd.occurrence_drag": "拖动实例",
"cmd.occurrence_ground": "固定",
"cmd.occurrence_move": "移动实例",
"cmd.occurrence_properties": "实例物理属性",
@@ -804,6 +845,7 @@
"cmd.sketch_auto_constrain_from_datum": "基于基准自动约束",
"cmd.sketch_auto_project": "自动投影边到参考",
"cmd.sketch_blend_curve": "混合曲线",
"cmd.sketch_cancel": "取消草图",
"cmd.sketch_chain": "连续链",
"cmd.sketch_chamfer_distance_angle": "距离和角度倒角",
"cmd.sketch_chamfer_equal_distance": "等距倒角",
@@ -1008,6 +1050,7 @@
"file_load.stopping": "正在等待上一次操作停止...",
"file_load.waiting": "正在等待文件操作",
"fits the face, e.g. M8": "适配该面,例如 M8",
"from the profile": "取自型材",
"from the rule": "来自规则",
"help.apache": "Apache 许可证 2.0",
"help.attributions": "署名信息 (ATTRIBUTION.md)",
@@ -1363,6 +1406,7 @@
"search.suggest": "您是否想找 {label}?",
"search.try": "输入命令名称、此设计中的特征或参数。要带值运行命令,请输入其ID和JSON对象:{example}",
"search.valid": "有效",
"section.off_hint": "未选择平面:按“确定”将移除剖面。",
"settings.display_quality_note": "仅影响显示,不影响设计和导出。",
"settings.frame_rate_note": "在视图右下角显示每秒帧数。",
"settings.measure_axis_distances": "显示 X/Y/Z 距离",
@@ -1370,6 +1414,8 @@
"settings.msaa_applies_on_restart": "抗锯齿将在下次启动 SolidCraft 时生效",
"settings.msaa_reset": "{setting}: {requested}× 不受此图形设备支持;已重置为 {reset}× (支持: {supported})。",
"settings.msaa_unsupported": "此图形设备不支持",
"settings.reference_geometry_through_bodies": "在实体后方显示参考几何体",
"settings.reference_geometry_through_bodies_help": "将非活动草图轮廓和基准平面绘制在着色实体上方",
"settings.reset_intro": "这些设置在此计算机上无法正常工作,会导致 SolidCraft 无法启动,因此已更改:",
"settings.reset_title": "设置已更改",
"settings.supersampling_note": "以更高分辨率绘制视图再缩小:在低于 4K 的屏幕上边、线和网格更平滑。会消耗 GPU 时间:1.5× 时约 2.25 倍像素,2× 时 4 倍。",
@@ -1429,7 +1475,106 @@
"trace.stopped_by_contact": "在采样 {sample} 处结束:{a} 会穿过 {b}",
"trace.stopped_by_loop": "在采样 {sample} 处结束:经过 {joint} 的环路无法再闭合",
"ui.1_degree_of_freedom": "1 个自由度",
"ui.3d_mouse_axes_reassigned": "轴已在偏好设置中重新分配,在此次校准之上仍然生效。",
"ui.3d_mouse_button": "按钮 {number}",
"ui.3d_mouse_button_nothing": "无",
"ui.3d_mouse_button_settings": "3D 鼠标设置",
"ui.3d_mouse_buttons": "按钮",
"ui.3d_mouse_buttons_hint": "按下 3D 鼠标上的按钮即可在此找到它,然后选择它的功能。",
"ui.3d_mouse_buttons_no_device": "连接 3D 鼠标后即可设置其按钮功能。",
"ui.3d_mouse_buttons_reset": "恢复默认按钮",
"ui.3d_mouse_calibrate": "校准…",
"ui.3d_mouse_calibrate_tip": "按窗口提示移动摇杆帽,SolidCraft 会记住这个 3D 鼠标每个轴的方向和行程。校准结果按此 3D 鼠标保存。",
"ui.3d_mouse_calibrate_title": "校准 3D 鼠标",
"ui.3d_mouse_calibrate_wait": "请移动一次 3D 鼠标,让 SolidCraft 能够识别它。",
"ui.3d_mouse_calibrated": "已校准",
"ui.3d_mouse_calibration": "3D 鼠标校准",
"ui.3d_mouse_calibration_done": "完成。保存后,每次连接此 3D 鼠标都会使用它。",
"ui.3d_mouse_calibration_no_response": "有一个轴几乎没有移动,因此无法校准。请重新开始,并且每次把摇杆帽移得更远。",
"ui.3d_mouse_circles_help": "圆圈显示设备在校准后发送的内容。测试模型显示视图在反向、速度和轴分配之后如何处理它。",
"ui.3d_mouse_dead_zone": "死区",
"ui.3d_mouse_dead_zone_tip": "视图开始移动前摇杆帽需要移动的距离,以其全行程的比例表示。如果摇杆帽静止时视图仍在漂移,请调大。",
"ui.3d_mouse_denied": "SolidCraft 能看到 3D 鼠标,但没有权限读取。udev 规则请见 3D 鼠标的设置说明。",
"ui.3d_mouse_denied_short": "已找到,但无法读取",
"ui.3d_mouse_driven_by": "由设备的哪个校准动作控制此轴。选择另一个轴已在使用的动作时,两者会互换。",
"ui.3d_mouse_driven_by_label": "控制来源",
"ui.3d_mouse_driver": "3D 鼠标驱动",
"ui.3d_mouse_driver_auto": "自动",
"ui.3d_mouse_driver_direct": "直接 (hidraw)",
"ui.3d_mouse_driver_fallback": "目前改通过 spacenavd 读取:无法打开设备本身。",
"ui.3d_mouse_driver_only_direct": "直接读取设备(spacenavd 未运行)",
"ui.3d_mouse_driver_only_spacenavd": "通过 spacenavd 读取(没有其他方式)",
"ui.3d_mouse_forget": "清除校准",
"ui.3d_mouse_ghost_left_viewport": "视口左侧",
"ui.3d_mouse_ghost_left_window": "窗口左侧",
"ui.3d_mouse_ghost_position": "位置",
"ui.3d_mouse_ghost_right_viewport": "视口右侧",
"ui.3d_mouse_hint": "同时移动和旋转视图;草图中仅支持平移和缩放。",
"ui.3d_mouse_kind_cap": "回中",
"ui.3d_mouse_kind_question": "这是哪种 3D 鼠标?",
"ui.3d_mouse_kind_trackball": "轨迹球",
"ui.3d_mouse_looks_like_cap": "按住时读数保持不变,就像“回中”型设备那样。",
"ui.3d_mouse_looks_like_trackball": "一停下来读数就回落,这是轨迹球的特征。",
"ui.3d_mouse_motion_rotation_x": "旋转 X",
"ui.3d_mouse_motion_rotation_y": "旋转 Y",
"ui.3d_mouse_motion_rotation_z": "旋转 Z",
"ui.3d_mouse_motion_translation_x": "平移 X",
"ui.3d_mouse_motion_translation_y": "平移 Y",
"ui.3d_mouse_motion_translation_z": "平移 Z",
"ui.3d_mouse_navigate": "使用 3D 鼠标导航",
"ui.3d_mouse_none": "未找到 3D 鼠标",
"ui.3d_mouse_not_calibrated": "未校准",
"ui.3d_mouse_offer": "校准 3D 鼠标可以修正互换或反向的轴,并调整它的速度和手感。",
"ui.3d_mouse_offer_never": "不再显示",
"ui.3d_mouse_offer_swap": "切换到 Hidraw(直接驱动)",
"ui.3d_mouse_reading": "读数",
"ui.3d_mouse_reset_axes": "重置轴分配",
"ui.3d_mouse_reset_view": "重置视图",
"ui.3d_mouse_restore": "恢复 3D 鼠标默认设置",
"ui.3d_mouse_restore_ask": "要将 3D 鼠标设置恢复为默认值吗?校准和按钮映射会保留。",
"ui.3d_mouse_section": "3D 鼠标",
"ui.3d_mouse_show_in_view": "在 3D 视图中显示 3D 鼠标",
"ui.3d_mouse_show_in_view_tip": "在左下角显示你的 3D 鼠标图示,随你的操作而动。",
"ui.3d_mouse_skip": "我的设备做不到",
"ui.3d_mouse_skip_tip": "在两个方向上都跳过这个动作,校准时不包含它。",
"ui.3d_mouse_speed": "3D 鼠标速度",
"ui.3d_mouse_step_lift": "向上提起摇杆帽,保持住,然后松开。",
"ui.3d_mouse_step_press": "向下按压摇杆帽,保持住,然后松开。",
"ui.3d_mouse_step_pull": "把摇杆帽拉向自己,保持住,然后松开。",
"ui.3d_mouse_step_push": "把摇杆帽推离自己,保持住,然后松开。",
"ui.3d_mouse_step_rest": "请把手从摇杆帽上移开,让它保持静止。",
"ui.3d_mouse_step_rest_trackball": "请把手从球上移开,让它保持静止。",
"ui.3d_mouse_step_ring_clockwise": "把滚轮环顺时针转几格。",
"ui.3d_mouse_step_ring_counterclockwise": "把滚轮环逆时针转几格。",
"ui.3d_mouse_step_roll_away": "把球向远离你的方向滚动几次,然后让它停下。",
"ui.3d_mouse_step_roll_left": "把球向左滚动几次,然后让它停下。",
"ui.3d_mouse_step_roll_right": "把球向右滚动几次,然后让它停下。",
"ui.3d_mouse_step_roll_toward": "把球朝你滚动几次,然后让它停下。",
"ui.3d_mouse_step_slide_left": "向左推动摇杆帽,保持住,然后松开。",
"ui.3d_mouse_step_slide_right": "向右推动摇杆帽,保持住,然后松开。",
"ui.3d_mouse_step_spin_clockwise": "把球顺时针旋转几次,然后让它停下。",
"ui.3d_mouse_step_spin_counterclockwise": "把球逆时针旋转几次,然后让它停下。",
"ui.3d_mouse_step_tilt_away": "把摇杆帽顶部向远离你的方向倾斜(离你最近的边向上),保持住,然后松开。",
"ui.3d_mouse_step_tilt_left": "向左倾斜摇杆帽(左缘向下),保持住,然后松开。",
"ui.3d_mouse_step_tilt_right": "向右倾斜摇杆帽(右缘向下),保持住,然后松开。",
"ui.3d_mouse_step_tilt_toward": "把摇杆帽顶部朝你倾斜(离你最近的边向下),保持住,然后松开。",
"ui.3d_mouse_step_touch": "把手放在摇杆帽上,不要用力推。",
"ui.3d_mouse_step_twist_clockwise": "顺时针扭转摇杆帽,保持住,然后松开。",
"ui.3d_mouse_step_twist_counterclockwise": "逆时针扭转摇杆帽,保持住,然后松开。",
"ui.3d_mouse_switch_cap": "按回中类型校准",
"ui.3d_mouse_switch_trackball": "按轨迹球校准",
"ui.3d_mouse_view_axis": "视图轴",
"ui.3d_mouse_view_off": "关闭",
"ui.3d_mouse_view_off_tip": "3D 鼠标驱动程序的配置文件关闭了此轴,因此它的动作不会移动视图。在此选择另一个轴的动作会将两者互换,该动作将不再移动视图。",
"ui.3d_mouse_view_orbit_sideways": "左右环绕",
"ui.3d_mouse_view_orbit_up_down": "上下环绕",
"ui.3d_mouse_view_pan_sideways": "左右平移",
"ui.3d_mouse_view_pan_up_down": "上下平移",
"ui.3d_mouse_view_roll": "滚转",
"ui.3d_mouse_view_unmapped": "轴 {n}",
"ui.3d_mouse_view_zoom": "缩放",
"ui.3d_mouse_waiting": "等待移动",
"ui.3d_mouse_wiggle": "如果已插上,请轻轻晃动一下。",
"ui.3d_sketch": "3D 草图",
"ui.activate": "激活",
"ui.active_component": "活动组件",
@@ -1667,6 +1812,7 @@
"ui.blocked": "被遮挡",
"ui.bodies": "实体",
"ui.bodies_all_if_none": "实体(未选择则全部)",
"ui.bottom": "下视",
"ui.box": "长方体",
"ui.break": "打断",
"ui.browser_bodies_one": "{count} 个实体",
@@ -1792,6 +1938,8 @@
"ui.extract_design_changed": "选择文件时设计已更改。请重新开始提取到文件。",
"ui.extract_done": "该组件现在是独立的设计,并已在此处链接。",
"ui.extrude": "拉伸",
"ui.extrude_auto_to_object": "拉伸到所选目标",
"ui.extrude_auto_to_object_tip": "在拉伸中选择轮廓后,选取其平面外的面、顶点或平行平面会将延伸类型切换为“到对象”",
"ui.factor": "系数",
"ui.feature_history": "特征历史",
"ui.feature_options": "特征选项",
@@ -2047,6 +2195,9 @@
"ui.rectangle": "矩形",
"ui.rectangular_pattern": "矩形阵列",
"ui.redo": "重做",
"ui.reference_1": "参考 1",
"ui.reference_2": "参考 2",
"ui.reference_distance": "参考距离",
"ui.relink_design_changed": "选择源文件时装配已更改。请重新开始链接。",
"ui.relink_done": "已为所有实例重新链接源文件。",
"ui.relink_not_linked": "此组件未链接到源设计。",
@@ -2096,6 +2247,12 @@
"ui.sent_to_slicer": "已发送到 {slicer}",
"ui.sheet_gap": "间隙",
"ui.shell": "抽壳",
"ui.shortcut_capture_add_key": "请再按一个普通键。按 Esc 取消。",
"ui.shortcut_capture_hint": "点击快捷键,然后按下修饰键和一个普通键。在一秒内添加修饰键,松开所有键以确认。按 Esc 取消。",
"ui.shortcut_capture_press": "请按修饰键和一个普通键。按 Esc 取消。",
"ui.shortcut_capture_release": "松开所有键以确认。按 Esc 取消。",
"ui.shortcut_capture_settling": "正在确认快捷键… 按 Esc 取消。",
"ui.shortcut_multiple_keys": "请使用修饰键和一个普通键。点击快捷键重试。",
"ui.show": "显示",
"ui.showAll": "显示全部",
"ui.showAllBodies": "显示所有实体",
@@ -2125,59 +2282,6 @@
"ui.smooth_wheel_zoom": "平滑滚轮缩放",
"ui.smooth_wheel_zoom_tip": "关闭后每个滚轮事件立即生效,不做平滑延迟",
"ui.snap": "捕捉",
"ui.space_mouse_axes_reassigned": "轴已在偏好设置中重新分配,在此次校准之上仍然生效。",
"ui.space_mouse_calibrate": "校准…",
"ui.space_mouse_calibrate_tip": "按窗口提示移动摇杆帽,SolidCraft 会记住这个 3D 鼠标每个轴的方向和行程。校准结果按此 3D 鼠标保存。",
"ui.space_mouse_calibrate_title": "校准 3D 鼠标",
"ui.space_mouse_calibrated": "已校准",
"ui.space_mouse_calibration": "3D 鼠标校准",
"ui.space_mouse_calibration_done": "完成。保存后,每次连接此 3D 鼠标都会使用它。",
"ui.space_mouse_calibration_no_response": "有一个轴几乎没有移动,因此无法校准。请重新开始,并且每次把摇杆帽移得更远。",
"ui.space_mouse_dead_zone": "死区",
"ui.space_mouse_dead_zone_tip": "视图开始移动前摇杆帽需要移动的距离,以其全行程的比例表示。如果摇杆帽静止时视图仍在漂移,请调大。",
"ui.space_mouse_driven_by": "由设备的哪个校准动作控制此轴。选择另一个轴已在使用的动作时,两者会互换。",
"ui.space_mouse_driven_by_label": "控制来源",
"ui.space_mouse_driver": "3D 鼠标驱动",
"ui.space_mouse_driver_auto": "自动",
"ui.space_mouse_driver_direct": "直接 (hidraw)",
"ui.space_mouse_driver_only_direct": "直接读取设备(spacenavd 未运行)",
"ui.space_mouse_driver_only_spacenavd": "通过 spacenavd 读取(没有其他方式)",
"ui.space_mouse_forget": "清除校准",
"ui.space_mouse_hint": "同时移动和旋转视图;草图中仅支持平移和缩放。",
"ui.space_mouse_motion_rotation_x": "旋转 X",
"ui.space_mouse_motion_rotation_y": "旋转 Y",
"ui.space_mouse_motion_rotation_z": "旋转 Z",
"ui.space_mouse_motion_translation_x": "平移 X",
"ui.space_mouse_motion_translation_y": "平移 Y",
"ui.space_mouse_motion_translation_z": "平移 Z",
"ui.space_mouse_navigate": "使用 SpaceNavigator / SpaceMouse 导航",
"ui.space_mouse_none": "未找到 3D 鼠标",
"ui.space_mouse_not_calibrated": "未校准",
"ui.space_mouse_reading": "读数",
"ui.space_mouse_reset_axes": "重置轴分配",
"ui.space_mouse_step_lift": "向上提起摇杆帽,保持住,然后松开。",
"ui.space_mouse_step_press": "向下按压摇杆帽,保持住,然后松开。",
"ui.space_mouse_step_pull": "把摇杆帽拉向自己,保持住,然后松开。",
"ui.space_mouse_step_push": "把摇杆帽推离自己,保持住,然后松开。",
"ui.space_mouse_step_rest": "请把手从摇杆帽上移开,让它保持静止。",
"ui.space_mouse_step_slide_left": "向左推动摇杆帽,保持住,然后松开。",
"ui.space_mouse_step_slide_right": "向右推动摇杆帽,保持住,然后松开。",
"ui.space_mouse_step_tilt_back": "向后倾斜摇杆帽(前缘向上),保持住,然后松开。",
"ui.space_mouse_step_tilt_forward": "向前倾斜摇杆帽(前缘向下),保持住,然后松开。",
"ui.space_mouse_step_tilt_left": "向左倾斜摇杆帽(左缘向下),保持住,然后松开。",
"ui.space_mouse_step_tilt_right": "向右倾斜摇杆帽(右缘向下),保持住,然后松开。",
"ui.space_mouse_step_twist_clockwise": "顺时针扭转摇杆帽,保持住,然后松开。",
"ui.space_mouse_step_twist_counterclockwise": "逆时针扭转摇杆帽,保持住,然后松开。",
"ui.space_mouse_view_axis": "视图轴",
"ui.space_mouse_view_off": "关闭",
"ui.space_mouse_view_off_tip": "3D 鼠标驱动程序的配置文件关闭了此轴,因此它的动作不会移动视图。在此选择另一个轴的动作会将两者互换,该动作将不再移动视图。",
"ui.space_mouse_view_orbit_sideways": "左右环绕",
"ui.space_mouse_view_orbit_up_down": "上下环绕",
"ui.space_mouse_view_pan_sideways": "左右平移",
"ui.space_mouse_view_pan_up_down": "上下平移",
"ui.space_mouse_view_roll": "滚转",
"ui.space_mouse_view_unmapped": "轴 {n}",
"ui.space_mouse_view_zoom": "缩放",
"ui.spacing": "间距",
"ui.spacing_2": "间距 2",
"ui.sphere": "球体",
@@ -2219,7 +2323,7 @@
"ui.top": "上视",
"ui.torus": "圆环体",
"ui.total_angle": "总角度",
"ui.trackpad_pan_tip": "触控板手势用于平移(关闭:像滚轮一样缩放);鼠标滚轮缩放、拇指滚轮横向平移、双指捏合始终缩放",
"ui.trackpad_pan_tip": "双指滚动平移;Fusion 预设下,Shift + 双指滚动旋转视图。关闭时滚动缩放。鼠标滚轮和双指捏合缩放,拇指滚轮横向平移。",
"ui.trim": "修剪",
"ui.twist": "扭转",
"ui.two_finger_scroll_pans": "双指滚动平移",
+79
View File
@@ -0,0 +1,79 @@
#!/usr/bin/env python3
"""Packs the boat for the 3D mouse test model in Preferences into assets/models/test_boat.bin, from a
binary STL of the low-poly boat (about 850 triangles). Needs numpy.
python3 assets/models/make_test_boat.py SOURCE.stl assets/models/test_boat.bin
No reduction happens here: the vertices are welded, and each welded vertex is split by the angle
between the faces that meet there (more than 40 degrees apart is a crease), so smooth surfaces share
a vertex normal and edges stay sharp. The model is centred and scaled into a unit box, then
quantised. File layout, little-endian: u32 vertex count, u32 triangle count, f32 centre (x, y, z),
f32 half size of the longest side; then per vertex its position as i16 x 3 (32767 is the half size)
and its normal as i8 x 3 (127 is a unit); then per triangle three u16 vertex indices. The model
sits with z up.
"""
import struct
import sys
import numpy as np
CREASE_DEGREES = 40.0
def main() -> None:
source, target = sys.argv[1], sys.argv[2]
data = open(source, "rb").read()
count = struct.unpack_from("<I", data, 80)[0]
record = np.dtype([("n", "<f4", 3), ("v", "<f4", (3, 3)), ("attr", "<u2")])
tris = np.frombuffer(data, dtype=record, count=count, offset=84)["v"].astype(np.float64)
points, inverse = np.unique(np.round(tris.reshape(-1, 3), 3), axis=0, return_inverse=True)
faces = inverse.reshape(-1, 3)
keep = (faces[:, 0] != faces[:, 1]) & (faces[:, 1] != faces[:, 2]) & (faces[:, 0] != faces[:, 2])
faces = faces[keep]
a, b, c = points[faces[:, 0]], points[faces[:, 1]], points[faces[:, 2]]
cross = np.cross(b - a, c - a)
area = np.linalg.norm(cross, axis=1)
ok = area > 1e-9
faces, cross, area = faces[ok], cross[ok], area[ok]
face_normal = cross / area[:, None]
# Split each welded vertex into one vertex per group of faces that agree (within the crease angle).
cos_limit = np.cos(np.radians(CREASE_DEGREES))
corners = {}
for f, tri in enumerate(faces):
for k in range(3):
corners.setdefault(int(tri[k]), []).append((f, k))
out_points, out_normals, index = [], [], np.zeros(faces.shape, dtype=np.int64)
for v, incident in corners.items():
groups = [] # each: [summed normal, [(face, corner)]]
for f, k in incident:
n = face_normal[f]
for g in groups:
mean = g[0] / np.linalg.norm(g[0])
if mean @ n > cos_limit:
g[0] = g[0] + n * area[f]
g[1].append((f, k))
break
else:
groups.append([n * area[f], [(f, k)]])
for total, members in groups:
length = np.linalg.norm(total)
out_normals.append(total / length if length > 0 else np.array([0.0, 0.0, 1.0]))
out_points.append(points[v])
for f, k in members:
index[f, k] = len(out_points) - 1
out_points, out_normals = np.array(out_points), np.array(out_normals)
low, high = out_points.min(axis=0), out_points.max(axis=0)
centre, half = (low + high) / 2.0, float((high - low).max() / 2.0)
positions = np.clip(np.round((out_points - centre) / half * 32767.0), -32767, 32767).astype("<i2")
normals = np.clip(np.round(out_normals * 127.0), -127, 127).astype("i1")
assert len(out_points) <= 65535
with open(target, "wb") as out:
out.write(struct.pack("<II3ff", len(out_points), len(index), *centre.tolist(), half))
for p, n in zip(positions, normals):
out.write(p.tobytes() + n.tobytes())
out.write(index.astype("<u2").tobytes())
print(f"{len(out_points)} vertices, {len(index)} triangles, centre {centre}, half size {half}")
if __name__ == "__main__":
main()
Binary file not shown.
+2
View File
@@ -8,6 +8,8 @@ const fn icon_primary(rgb: [u8; 3]) -> Color32 {
impl Tokens {
pub const fn light() -> Tokens {
Tokens {
borders: crate::theme::Borders::LEGACY,
icon_palette: None,
file_dim: Color32::from_rgb(58, 70, 86),
file_recovery_well: Color32::from_rgb(247, 226, 184),
file_action_height: 32.0,
+77 -26
View File
@@ -30,7 +30,7 @@
"box_crossing": "#d4902f",
"box_window": "#ffad38",
"chip": "#4a3210",
"construction_geom": "#ad7626",
"construction_geom": "#dd9a2f",
"construction_plane": "#c6872c18",
"continuity": [
"#c5862b",
@@ -54,25 +54,25 @@
"dimension_driven": "#9b6922",
"error": "#fff0ca",
"field": "#100b04",
"form_accent": "#d6922f",
"form_accent": "#ca892b",
"form_dim": "#9b6922",
"form_error": "#fff0ca",
"form_error_fill": "#46300f",
"form_fill": "#7e561c",
"form_fill": "#e19e45",
"form_ink": "#f3ca87",
"form_primary": "#ffad38",
"form_soft": "#291c09",
"form_soft": "#271b09",
"form_success": "#d4902f",
"form_success_fill": "#3b280d",
"form_tab_ink": "#f0a335",
"form_tab_ink": "#cf8d31",
"gizmo": [
"#f3a535",
"#ffad38",
"#9b6922"
],
"glyph_bg": "#201607",
"glyph_edge": "#bd812a",
"glyph_text": "#fff0ca",
"glyph_edge": "#e0d1ac",
"glyph_text": "#e0d1ac",
"grid": "#21170b",
"grid_major": "#362511",
"heading_bg": "#080602",
@@ -129,10 +129,10 @@
"#855a1d"
],
"manipulator": "#ffad38",
"mesh_accent": "#d6922f",
"mesh_fill": "#7e561c",
"mesh_ink": "#f0a335",
"mesh_soft": "#291c09",
"mesh_accent": "#e6be68",
"mesh_fill": "#fed57f",
"mesh_ink": "#ffd680",
"mesh_soft": "#2d2313",
"on_accent": "#170d03",
"origin_plane": "#c6872c20",
"origin_plane_edge": "#c6872c80",
@@ -146,10 +146,10 @@
"preview_new": "#9f6c28",
"preview_sketch": "#d4902f",
"profile_fill": "#be812f20",
"render_accent": "#d6922f",
"render_fill": "#7e561c",
"render_ink": "#f0a335",
"render_soft": "#291c09",
"render_accent": "#bb7a29",
"render_fill": "#d28f42",
"render_ink": "#b97827",
"render_soft": "#241808",
"rubber_band": "#ffad38",
"section_cap": "#ba7e29",
"sel_edge": "#ffbc48",
@@ -160,26 +160,26 @@
"sel_vertex": "#ffbc48",
"selected_bg": "#3c290d",
"selected_ink": "#ffe8b3",
"sheet_fill": "#7e561c",
"sheet_ink": "#f0a335",
"sheet_soft": "#291c09",
"sheet_fill": "#f7c769",
"sheet_ink": "#f3c365",
"sheet_soft": "#2b2110",
"sketch": "#ffbc48",
"sketch_accent": "#d6922f",
"sketch_accent": "#e0b873",
"sketch_centerline": "#ba7e29",
"sketch_construction": "#ad7626",
"sketch_fixed": "#c68b2f",
"sketch_ink": "#f0a335",
"sketch_ink": "#f7ce88",
"sketch_locked": "#d4902f",
"sketch_lost": "#fff0ca",
"sketch_point": "#ffbc48",
"sketch_point_free": "#ffbc48",
"sketch_projected": "#cb8a2d",
"sketch_soft": "#291c09",
"sketch_soft": "#2c2214",
"subheading_bg": "#0c0803",
"surface_accent": "#d6922f",
"surface_fill": "#7e561c",
"surface_ink": "#f0a335",
"surface_soft": "#291c09",
"surface_accent": "#dd9a2f",
"surface_fill": "#f5b04a",
"surface_ink": "#eaa63e",
"surface_soft": "#2a1e0b",
"tab_on_fill_dark": "#170d03",
"text": "#f3ca87",
"text_dim": "#9b6922",
@@ -198,5 +198,56 @@
"warning": "#ffd274"
},
"format": "solidcraft-theme/1",
"name": "Amber Phosphor"
"name": "Amber Phosphor",
"radii": {
"radius_sm": 0,
"radius_md": 0,
"radius_lg": 0,
"radius_xl": 0,
"control_radius": 0,
"sketch_mode_radius": 0
},
"icon_palette": {
"ink": "#090602",
"line": "#f3ca87",
"passive-1": "#d3bda4",
"passive-2": "#a69179",
"passive-3": "#7c6851",
"guide": "#9b6922",
"solid": [
"#fde0b5",
"#fec25f",
"#eba930"
],
"surface": [
"#ffcc88",
"#f5b04a",
"#dd9a2f"
],
"mesh": [
"#feedca",
"#fed57f",
"#e6be68"
],
"form": [
"#f9b55d",
"#e19e45",
"#ca892b"
],
"sketch": [
"#fdeac9",
"#f8cf89",
"#e0b873"
],
"constraint": [
"#fceec8",
"#f7e8c2",
"#e0d1ac"
],
"construction": [
"#ffcc88",
"#f5b04a",
"#dd9a2f"
]
}
}
+100 -26
View File
@@ -30,7 +30,7 @@
"box_crossing": "#6ee0bb",
"box_window": "#66ddff",
"chip": "#1f5278",
"construction_geom": "#78b8dc",
"construction_geom": "#daaf75",
"construction_plane": "#b7dcf01c",
"continuity": [
"#6ee0bb",
@@ -54,25 +54,25 @@
"dimension_driven": "#94b2cb",
"error": "#ff968d",
"field": "#071d35",
"form_accent": "#78c6e8",
"form_accent": "#baade8",
"form_dim": "#94b2cb",
"form_error": "#ff968d",
"form_error_fill": "#422d40",
"form_fill": "#4386ac",
"form_fill": "#d0c5fb",
"form_ink": "#c3e6f6",
"form_primary": "#66ddff",
"form_soft": "#132f4c",
"form_soft": "#203250",
"form_success": "#6ee0bb",
"form_success_fill": "#153e47",
"form_tab_ink": "#c3e6f6",
"form_tab_ink": "#b6a9e4",
"gizmo": [
"#ec9e99",
"#9ddab7",
"#91c8ff"
],
"glyph_bg": "#0a233e",
"glyph_edge": "#e6b3a6",
"glyph_text": "#e6b3a6",
"glyph_edge": "#ff968d",
"glyph_text": "#ff968d",
"grid": "#214975",
"grid_major": "#315d89",
"heading_bg": "#06111e",
@@ -129,10 +129,10 @@
"#4386ac"
],
"manipulator": "#66ddff",
"mesh_accent": "#78c6e8",
"mesh_fill": "#4386ac",
"mesh_ink": "#c3e6f6",
"mesh_soft": "#132f4c",
"mesh_accent": "#c7b96a",
"mesh_fill": "#decf80",
"mesh_ink": "#e7d889",
"mesh_soft": "#263845",
"on_accent": "#07192f",
"origin_plane": "#b7dcf024",
"origin_plane_edge": "#a3cce480",
@@ -146,10 +146,10 @@
"preview_new": "#d2e8f7",
"preview_sketch": "#6ee0bb",
"profile_fill": "#c9eaff12",
"render_accent": "#78c6e8",
"render_fill": "#4386ac",
"render_ink": "#c3e6f6",
"render_soft": "#132f4c",
"render_accent": "#e2a2b9",
"render_fill": "#fab8d0",
"render_ink": "#e6a6bd",
"render_soft": "#26324b",
"rubber_band": "#66ddff",
"section_cap": "#e7b374",
"sel_edge": "#66ddff",
@@ -160,26 +160,26 @@
"sel_vertex": "#66ddff",
"selected_bg": "#153c60",
"selected_ink": "#b6f2ff",
"sheet_fill": "#4386ac",
"sheet_ink": "#c3e6f6",
"sheet_soft": "#132f4c",
"sheet_fill": "#a5d9dc",
"sheet_ink": "#a4d8db",
"sheet_soft": "#1e384f",
"sketch": "#eaf6ff",
"sketch_accent": "#78c6e8",
"sketch_accent": "#8bc7a5",
"sketch_centerline": "#e7b374",
"sketch_construction": "#78b8dc",
"sketch_fixed": "#e3f0fa",
"sketch_ink": "#c3e6f6",
"sketch_ink": "#9ddab7",
"sketch_locked": "#6ee0bb",
"sketch_lost": "#ff968d",
"sketch_point": "#e3f0fa",
"sketch_point_free": "#66ddff",
"sketch_projected": "#9cd6ef",
"sketch_soft": "#132f4c",
"sketch_soft": "#1d384b",
"subheading_bg": "#091a2d",
"surface_accent": "#78c6e8",
"surface_fill": "#4386ac",
"surface_ink": "#c3e6f6",
"surface_soft": "#132f4c",
"surface_accent": "#daaf75",
"surface_fill": "#f1c58a",
"surface_ink": "#f1c58a",
"surface_soft": "#273645",
"tab_on_fill_dark": "#07192f",
"text": "#e3f0fa",
"text_dim": "#94b2cb",
@@ -198,5 +198,79 @@
"warning": "#f0d18c"
},
"format": "solidcraft-theme/1",
"name": "Blueprint"
"name": "Blueprint",
"radii": {
"radius_sm": 4,
"radius_md": 6,
"radius_lg": 8,
"radius_xl": 10,
"control_radius": 6,
"sketch_mode_radius": 7
},
"borders": {
"primary": {
"width": 1,
"color": "#ffffff"
},
"secondary": {
"width": 1,
"color": "#e5efff",
"pattern": "dotted"
},
"tertiary": {
"width": 1,
"color": "#102748"
},
"container": {
"width": 1,
"color": "#a8c8ed"
},
"control": {
"width": 1,
"color": "#a8c8ed"
}
},
"icon_palette": {
"ink": "#07192f",
"line": "#e3f0fa",
"passive-1": "#b8c2cc",
"passive-2": "#8d97a0",
"passive-3": "#646d76",
"guide": "#94b2cb",
"solid": [
"#bceefe",
"#77defd",
"#4fc9ea"
],
"surface": [
"#fde0b9",
"#f1c58a",
"#daaf75"
],
"mesh": [
"#f5e697",
"#decf80",
"#c7b96a"
],
"form": [
"#e6e0fe",
"#d0c5fb",
"#baade8"
],
"sketch": [
"#b8f5d2",
"#a1debb",
"#8bc7a5"
],
"constraint": [
"#ffdbd7",
"#fcbbb5",
"#ff968d"
],
"construction": [
"#fde0b9",
"#f1c58a",
"#daaf75"
]
}
}
+69 -26
View File
@@ -30,7 +30,7 @@
"box_crossing": "#a6e3a1",
"box_window": "#cba6f7",
"chip": "#cba6f7",
"construction_geom": "#f9e2af",
"construction_geom": "#eba57a",
"construction_plane": "#f9e2af22",
"continuity": [
"#a6e3a1",
@@ -54,25 +54,25 @@
"dimension_driven": "#a6adc8",
"error": "#f38ba8",
"field": "#181825",
"form_accent": "#cba6f7",
"form_accent": "#a9b2f2",
"form_dim": "#a6adc8",
"form_error": "#f38ba8",
"form_error_fill": "#493446",
"form_fill": "#477dc8",
"form_fill": "#c1cafe",
"form_ink": "#cdd6f4",
"form_primary": "#cba6f7",
"form_soft": "#302b46",
"form_soft": "#303147",
"form_success": "#a6e3a1",
"form_success_fill": "#353f42",
"form_tab_ink": "#cdd6f4",
"form_tab_ink": "#b4befe",
"gizmo": [
"#f38ba8",
"#a6e3a1",
"#477dc8"
],
"glyph_bg": "#313244",
"glyph_edge": "#f38ba8",
"glyph_text": "#f38ba8",
"glyph_edge": "#fc93b0",
"glyph_text": "#fc93b0",
"grid": "#242531",
"grid_major": "#363846",
"heading_bg": "#0f0f17",
@@ -129,10 +129,10 @@
"#586382"
],
"manipulator": "#cba6f7",
"mesh_accent": "#cba6f7",
"mesh_fill": "#477dc8",
"mesh_ink": "#cdd6f4",
"mesh_soft": "#302b46",
"mesh_accent": "#cbb583",
"mesh_fill": "#e2cb99",
"mesh_ink": "#f9e2af",
"mesh_soft": "#38363d",
"on_accent": "#06121b",
"origin_plane": "#f9e2af28",
"origin_plane_edge": "#f9e2af88",
@@ -146,10 +146,10 @@
"preview_new": "#f9e2af",
"preview_sketch": "#a6e3a1",
"profile_fill": "#477dc822",
"render_accent": "#cba6f7",
"render_fill": "#477dc8",
"render_ink": "#cdd6f4",
"render_soft": "#302b46",
"render_accent": "#fc93b0",
"render_fill": "#feb7c8",
"render_ink": "#f38ba8",
"render_soft": "#382b3d",
"rubber_band": "#cba6f7",
"section_cap": "#f9e2af",
"sel_edge": "#477dc8",
@@ -160,26 +160,26 @@
"sel_vertex": "#477dc8",
"selected_bg": "#365280",
"selected_ink": "#cdd6f4",
"sheet_fill": "#477dc8",
"sheet_ink": "#cdd6f4",
"sheet_soft": "#302b46",
"sheet_fill": "#8addec",
"sheet_ink": "#89dceb",
"sheet_soft": "#2b3545",
"sketch": "#477dc8",
"sketch_accent": "#cba6f7",
"sketch_accent": "#8eca89",
"sketch_centerline": "#f9e2af",
"sketch_construction": "#f9e2af",
"sketch_fixed": "#cdd6f4",
"sketch_ink": "#cdd6f4",
"sketch_ink": "#a6e3a1",
"sketch_locked": "#a6e3a1",
"sketch_lost": "#f38ba8",
"sketch_point": "#cdd6f4",
"sketch_point_free": "#477dc8",
"sketch_projected": "#cba6f7",
"sketch_soft": "#302b46",
"sketch_soft": "#2e363c",
"subheading_bg": "#161622",
"surface_accent": "#cba6f7",
"surface_fill": "#477dc8",
"surface_ink": "#cdd6f4",
"surface_soft": "#302b46",
"surface_accent": "#eba57a",
"surface_fill": "#febe96",
"surface_ink": "#fab387",
"surface_soft": "#383039",
"tab_on_fill_dark": "#181825",
"text": "#cdd6f4",
"text_dim": "#a6adc8",
@@ -198,5 +198,48 @@
"warning": "#f9e2af"
},
"format": "solidcraft-theme/1",
"name": "Catppuccin Mocha"
"name": "Catppuccin Mocha",
"icon_palette": {
"ink": "#181825",
"line": "#cdd6f4",
"passive-1": "#bec0ca",
"passive-2": "#92959e",
"passive-3": "#696b74",
"guide": "#a6adc8",
"solid": [
"#ebdefe",
"#dbc0fc",
"#c9a4f5"
],
"surface": [
"#fdddca",
"#febe96",
"#eba57a"
],
"mesh": [
"#f9e2af",
"#e2cb99",
"#cbb583"
],
"form": [
"#dee3fd",
"#c1cafe",
"#a9b2f2"
],
"sketch": [
"#baf8b5",
"#a4e09f",
"#8eca89"
],
"constraint": [
"#fddae2",
"#feb7c8",
"#fc93b0"
],
"construction": [
"#fdddca",
"#febe96",
"#eba57a"
]
}
}
+77 -26
View File
@@ -30,7 +30,7 @@
"box_crossing": "#39a75b",
"box_window": "#007aff",
"chip": "#007aff",
"construction_geom": "#9a712b",
"construction_geom": "#a06f28",
"construction_plane": "#efd3a146",
"continuity": [
"#009e73",
@@ -54,25 +54,25 @@
"dimension_driven": "#6e6e73",
"error": "#d53137",
"field": "#ffffff",
"form_accent": "#8055be",
"form_accent": "#8b62bf",
"form_dim": "#6e6e73",
"form_error": "#c02b31",
"form_error_fill": "#fcebea",
"form_fill": "#946bc9",
"form_fill": "#c39afc",
"form_ink": "#262628",
"form_primary": "#0071e3",
"form_soft": "#eee8f7",
"form_soft": "#e5e2e9",
"form_success": "#237b38",
"form_success_fill": "#e6f3e8",
"form_tab_ink": "#7445af",
"form_tab_ink": "#75559f",
"gizmo": [
"#ed514b",
"#36ad59",
"#2184e9"
],
"glyph_bg": "#ffffff",
"glyph_edge": "#ce8d85",
"glyph_text": "#c34136",
"glyph_edge": "#d73339",
"glyph_text": "#d73339",
"grid": "#d0d2d6",
"grid_major": "#b5b8be",
"heading_bg": "#e2e2e2",
@@ -129,10 +129,10 @@
"#2b71be"
],
"manipulator": "#007aff",
"mesh_accent": "#927300",
"mesh_fill": "#d0ac35",
"mesh_ink": "#856700",
"mesh_soft": "#fbf5df",
"mesh_accent": "#937717",
"mesh_fill": "#d1ad37",
"mesh_ink": "#79641f",
"mesh_soft": "#eae7dd",
"on_accent": "#ffffff",
"origin_plane": "#f0c58a55",
"origin_plane_edge": "#bf915ac8",
@@ -146,10 +146,10 @@
"preview_new": "#e9d875",
"preview_sketch": "#3ab86b",
"profile_fill": "#f3c88a3d",
"render_accent": "#af4083",
"render_fill": "#bd5b92",
"render_ink": "#9f3676",
"render_soft": "#f6e8f0",
"render_accent": "#b4538a",
"render_fill": "#f18ac2",
"render_ink": "#974975",
"render_soft": "#e8e0e5",
"rubber_band": "#007aff",
"section_cap": "#c79769",
"sel_edge": "#007aff",
@@ -160,26 +160,26 @@
"sel_vertex": "#316cae",
"selected_bg": "#dcecff",
"selected_ink": "#004b9b",
"sheet_fill": "#3884a5",
"sheet_ink": "#226b89",
"sheet_soft": "#e6f1f6",
"sheet_fill": "#71bcdf",
"sheet_ink": "#2d6a84",
"sheet_soft": "#dee4e6",
"sketch": "#1264bf",
"sketch_accent": "#288049",
"sketch_accent": "#388e56",
"sketch_centerline": "#b77c47",
"sketch_construction": "#cb8b37",
"sketch_fixed": "#262628",
"sketch_ink": "#23723f",
"sketch_ink": "#236f40",
"sketch_locked": "#318348",
"sketch_lost": "#c94f68",
"sketch_point": "#262628",
"sketch_point_free": "#1264bf",
"sketch_projected": "#9258b7",
"sketch_soft": "#eaf4ed",
"sketch_soft": "#dce3df",
"subheading_bg": "#e8e8e8",
"surface_accent": "#996a28",
"surface_fill": "#b5833e",
"surface_ink": "#8b5c1d",
"surface_soft": "#f8efdf",
"surface_accent": "#a06f28",
"surface_fill": "#daa662",
"surface_ink": "#825e2d",
"surface_soft": "#e8e4de",
"tab_on_fill_dark": "#242426",
"text": "#262628",
"text_dim": "#6e6e73",
@@ -198,5 +198,56 @@
"warning": "#ad7400"
},
"format": "solidcraft-theme/1",
"name": "Cupertino"
"name": "Cupertino",
"radii": {
"radius_sm": 6,
"radius_md": 8,
"radius_lg": 12,
"radius_xl": 16,
"control_radius": 8,
"sketch_mode_radius": 9
},
"icon_palette": {
"ink": "#262628",
"line": "#505054",
"passive-1": "#dee5ee",
"passive-2": "#aeb5bd",
"passive-3": "#81878f",
"guide": "#6e6e73",
"solid": [
"#dbe9fe",
"#81b3fa",
"#1875eb"
],
"surface": [
"#fde3c4",
"#daa662",
"#a06f28"
],
"mesh": [
"#fee7a2",
"#d1ad37",
"#937717"
],
"form": [
"#ede2ff",
"#c39afc",
"#8b62bf"
],
"sketch": [
"#b1fdc5",
"#72c78b",
"#388e56"
],
"constraint": [
"#fee0dd",
"#f98e87",
"#d73339"
],
"construction": [
"#fde3c4",
"#daa662",
"#a06f28"
]
}
}
+69 -26
View File
@@ -30,7 +30,7 @@
"box_crossing": "#83c69b",
"box_window": "#4aa3d8",
"chip": "#4aa3d8",
"construction_geom": "#dbb879",
"construction_geom": "#c38c59",
"construction_plane": "#dbb87922",
"continuity": [
"#83c69b",
@@ -54,25 +54,25 @@
"dimension_driven": "#a0a6b0",
"error": "#ed7777",
"field": "#1c1e21",
"form_accent": "#4aa3d8",
"form_accent": "#a08fc4",
"form_dim": "#a0a6b0",
"form_error": "#ed7777",
"form_error_fill": "#4d373a",
"form_fill": "#2878a9",
"form_fill": "#b9a7df",
"form_ink": "#e0e2e5",
"form_primary": "#4aa3d8",
"form_soft": "#293c49",
"form_soft": "#34343e",
"form_success": "#83c69b",
"form_success_fill": "#35423e",
"form_tab_ink": "#e0e2e5",
"form_tab_ink": "#a796cb",
"gizmo": [
"#ed7777",
"#83c69b",
"#2878a9"
],
"glyph_bg": "#303338",
"glyph_edge": "#ed7777",
"glyph_text": "#ed7777",
"glyph_edge": "#e57071",
"glyph_text": "#e57071",
"grid": "#292b30",
"grid_major": "#393c42",
"heading_bg": "#121416",
@@ -129,10 +129,10 @@
"#68717d"
],
"manipulator": "#4aa3d8",
"mesh_accent": "#4aa3d8",
"mesh_fill": "#2878a9",
"mesh_ink": "#e0e2e5",
"mesh_soft": "#293c49",
"mesh_accent": "#b19747",
"mesh_fill": "#cab060",
"mesh_ink": "#cab060",
"mesh_soft": "#393731",
"on_accent": "#06121b",
"origin_plane": "#dbb87928",
"origin_plane_edge": "#dbb87988",
@@ -146,10 +146,10 @@
"preview_new": "#dbb879",
"preview_sketch": "#83c69b",
"profile_fill": "#2878a922",
"render_accent": "#4aa3d8",
"render_fill": "#2878a9",
"render_ink": "#e0e2e5",
"render_soft": "#293c49",
"render_accent": "#c0869b",
"render_fill": "#db9eb3",
"render_ink": "#c78fa3",
"render_soft": "#383339",
"rubber_band": "#4aa3d8",
"section_cap": "#dbb879",
"sel_edge": "#2878a9",
@@ -160,26 +160,26 @@
"sel_vertex": "#2878a9",
"selected_bg": "#245674",
"selected_ink": "#e0e2e5",
"sheet_fill": "#2878a9",
"sheet_ink": "#e0e2e5",
"sheet_soft": "#293c49",
"sheet_fill": "#76c1c7",
"sheet_ink": "#6cb7bd",
"sheet_soft": "#2e383d",
"sketch": "#2878a9",
"sketch_accent": "#4aa3d8",
"sketch_accent": "#7ba58b",
"sketch_centerline": "#dbb879",
"sketch_construction": "#dbb879",
"sketch_fixed": "#e0e2e5",
"sketch_ink": "#e0e2e5",
"sketch_ink": "#88b298",
"sketch_locked": "#83c69b",
"sketch_lost": "#ed7777",
"sketch_point": "#e0e2e5",
"sketch_point_free": "#2878a9",
"sketch_projected": "#ad9cce",
"sketch_soft": "#293c49",
"sketch_soft": "#313838",
"subheading_bg": "#1c1d20",
"surface_accent": "#4aa3d8",
"surface_fill": "#2878a9",
"surface_ink": "#e0e2e5",
"surface_soft": "#293c49",
"surface_accent": "#c38c59",
"surface_fill": "#dea572",
"surface_ink": "#d39b68",
"surface_soft": "#3a3532",
"tab_on_fill_dark": "#1c1e21",
"text": "#e0e2e5",
"text_dim": "#a0a6b0",
@@ -198,5 +198,48 @@
"warning": "#dbb879"
},
"format": "solidcraft-theme/1",
"name": "Graphite"
"name": "Graphite",
"icon_palette": {
"ink": "#1c1e21",
"line": "#e0e2e5",
"passive-1": "#bfc1c5",
"passive-2": "#939599",
"passive-3": "#6a6c6f",
"guide": "#a0a6b0",
"solid": [
"#a0d7fb",
"#65bdf3",
"#4aa3d8"
],
"surface": [
"#fcc28e",
"#dea572",
"#c38c59"
],
"mesh": [
"#e8cd7d",
"#cab060",
"#b19747"
],
"form": [
"#d5c4fd",
"#b9a7df",
"#a08fc4"
],
"sketch": [
"#b0dbc0",
"#94bea4",
"#7ba58b"
],
"constraint": [
"#febbb9",
"#fb8e8d",
"#e57071"
],
"construction": [
"#fcc28e",
"#dea572",
"#c38c59"
]
}
}
+77 -26
View File
@@ -30,7 +30,7 @@
"box_crossing": "#39d45c",
"box_window": "#4dff79",
"chip": "#144a20",
"construction_geom": "#2fad4a",
"construction_geom": "#17c053",
"construction_plane": "#72c68b18",
"continuity": [
"#35c555",
@@ -54,25 +54,25 @@
"dimension_driven": "#5b9b6a",
"error": "#d8ffdf",
"field": "#061009",
"form_accent": "#59d67b",
"form_accent": "#1faa4e",
"form_dim": "#5b9b6a",
"form_error": "#d8ffdf",
"form_error_fill": "#21462a",
"form_fill": "#287e43",
"form_fill": "#40c163",
"form_ink": "#9bf0b1",
"form_primary": "#4dff79",
"form_soft": "#0e2918",
"form_soft": "#0c2413",
"form_success": "#39d45c",
"form_success_fill": "#133b20",
"form_tab_ink": "#9bf0b1",
"form_tab_ink": "#36b95c",
"gizmo": [
"#c1f3ba",
"#4dff79",
"#599b70"
],
"glyph_bg": "#09200e",
"glyph_edge": "#33bd51",
"glyph_text": "#d8ffdf",
"glyph_edge": "#afd5b6",
"glyph_text": "#afd5b6",
"grid": "#091b0f",
"grid_major": "#122d1a",
"heading_bg": "#030804",
@@ -129,10 +129,10 @@
"#34854b"
],
"manipulator": "#4dff79",
"mesh_accent": "#59d67b",
"mesh_fill": "#287e43",
"mesh_ink": "#9bf0b1",
"mesh_soft": "#0e2918",
"mesh_accent": "#75d989",
"mesh_fill": "#8cf09f",
"mesh_ink": "#9affad",
"mesh_soft": "#182d1d",
"on_accent": "#031207",
"origin_plane": "#72c68b20",
"origin_plane_edge": "#72c68b80",
@@ -146,10 +146,10 @@
"preview_new": "#319f4b",
"preview_sketch": "#39d45c",
"profile_fill": "#2fbe5320",
"render_accent": "#59d67b",
"render_fill": "#287e43",
"render_ink": "#9bf0b1",
"render_soft": "#0e2918",
"render_accent": "#259548",
"render_fill": "#40ab5c",
"render_ink": "#2e9c4e",
"render_soft": "#0b2111",
"rubber_band": "#4dff79",
"section_cap": "#32ba50",
"sel_edge": "#4dff79",
@@ -160,26 +160,26 @@
"sel_vertex": "#4dff79",
"selected_bg": "#123c20",
"selected_ink": "#b3ffc4",
"sheet_fill": "#287e43",
"sheet_ink": "#9bf0b1",
"sheet_soft": "#0e2918",
"sheet_fill": "#6ee08e",
"sheet_ink": "#74e694",
"sheet_soft": "#132a1a",
"sketch": "#4dff79",
"sketch_accent": "#59d67b",
"sketch_accent": "#94d7a4",
"sketch_centerline": "#32ba50",
"sketch_construction": "#2fad4a",
"sketch_fixed": "#8def9f",
"sketch_ink": "#9bf0b1",
"sketch_ink": "#bbffca",
"sketch_locked": "#39d45c",
"sketch_lost": "#d8ffdf",
"sketch_point": "#8def9f",
"sketch_point_free": "#4dff79",
"sketch_projected": "#37cb57",
"sketch_soft": "#0e2918",
"sketch_soft": "#1c2d20",
"subheading_bg": "#040c07",
"surface_accent": "#59d67b",
"surface_fill": "#287e43",
"surface_ink": "#9bf0b1",
"surface_soft": "#0e2918",
"surface_accent": "#17c053",
"surface_fill": "#3fd86a",
"surface_ink": "#40d86a",
"surface_soft": "#0d2815",
"tab_on_fill_dark": "#031207",
"text": "#8def9f",
"text_dim": "#5b9b6a",
@@ -198,5 +198,56 @@
"warning": "#d1ffad"
},
"format": "solidcraft-theme/1",
"name": "Green Phosphor"
"name": "Green Phosphor",
"radii": {
"radius_sm": 0,
"radius_md": 0,
"radius_lg": 0,
"radius_xl": 0,
"control_radius": 0,
"sketch_mode_radius": 0
},
"icon_palette": {
"ink": "#020904",
"line": "#8def9f",
"passive-1": "#abcab2",
"passive-2": "#809e87",
"passive-3": "#58745e",
"guide": "#5b9b6a",
"solid": [
"#a5fdb1",
"#3df46e",
"#3bd964"
],
"surface": [
"#5cef80",
"#3fd86a",
"#17c053"
],
"mesh": [
"#c5fecd",
"#8cf09f",
"#75d989"
],
"form": [
"#5ad879",
"#40c163",
"#1faa4e"
],
"sketch": [
"#c8ffd3",
"#abeeba",
"#94d7a4"
],
"constraint": [
"#d3fada",
"#c5eccc",
"#afd5b6"
],
"construction": [
"#5cef80",
"#3fd86a",
"#17c053"
]
}
}
+85 -5
View File
@@ -12,7 +12,7 @@
"text_dim": "#a89984",
"accent": "#83a598",
"accent_soft": "#414f4b",
"sketch_accent": "#83a598",
"sketch_accent": "#a1a322",
"error": "#fb4934",
"warning": "#fabd2f",
"icon": "#d5c4a1",
@@ -34,7 +34,7 @@
"axis_y": "#b8bb26",
"axis_z": "#83a598",
"construction_plane": "#fe801940",
"construction_geom": "#fe8019",
"construction_geom": "#e97926",
"body": "#a89984",
"body_edge": "#141617",
"manipulator": "#83a598",
@@ -64,8 +64,8 @@
"section_cap": "#d65d0e",
"profile_fill": "#83a59828",
"glyph_bg": "#2c2c2c",
"glyph_edge": "#d65d0e",
"glyph_text": "#fe8019",
"glyph_edge": "#fe614c",
"glyph_text": "#fe614c",
"overlay": "#1d2021f0",
"rubber_band": "#83a598",
"app_bar_text": "#ebdbb2",
@@ -93,6 +93,86 @@
"#b8bb26",
"#83a598"
],
"icons.agent": "#d3869b"
"icons.agent": "#d3869b",
"surface_fill": "#fe9755",
"surface_soft": "#382c20",
"surface_ink": "#fe8019",
"surface_accent": "#e97926",
"mesh_fill": "#e1ab32",
"mesh_soft": "#383323",
"mesh_ink": "#fabd2f",
"mesh_accent": "#c39429",
"form_fill": "#ea9bb0",
"form_soft": "#332c30",
"form_tab_ink": "#d3869b",
"form_accent": "#cf8297",
"sheet_fill": "#93c681",
"sheet_soft": "#2b332c",
"sheet_ink": "#8ec07c",
"render_fill": "#fc9483",
"render_soft": "#382523",
"render_ink": "#fb5d4a",
"render_accent": "#fe614c",
"sketch_soft": "#303322",
"sketch_ink": "#b8bb26",
"form_ink": "#ebdbb2",
"form_dim": "#bdae93",
"form_primary": "#83a598",
"form_error": "#fb4934",
"form_error_fill": "#63221f",
"form_success": "#b8bb26",
"form_success_fill": "#343a28",
"dialog_body": "#1d2021",
"dialog_footer": "#3c3836",
"dialog_rule": "#504945",
"control_fill": "#141617",
"control_border": "#7c6f64",
"dialog_label": "#ebdbb2",
"selected_ink": "#ebdbb2",
"selected_bg": "#414f4b",
"on_accent": "#1d2021"
},
"icon_palette": {
"ink": "#141617",
"line": "#d5c4a1",
"passive-1": "#c5c0b8",
"passive-2": "#9a948d",
"passive-3": "#706b64",
"guide": "#a89984",
"solid": [
"#b8dbcd",
"#9bbeb1",
"#83a598"
],
"surface": [
"#fcc4a3",
"#fe9755",
"#e97926"
],
"mesh": [
"#fbca67",
"#e1ab32",
"#c39429"
],
"form": [
"#fbbfce",
"#ea9bb0",
"#cf8297"
],
"sketch": [
"#d7db50",
"#babd2a",
"#a1a322"
],
"constraint": [
"#fcc2b7",
"#fc9483",
"#fe614c"
],
"construction": [
"#fcc4a3",
"#fe9755",
"#e97926"
]
}
}
+85 -5
View File
@@ -12,7 +12,7 @@
"text_dim": "#a89984",
"accent": "#83a598",
"accent_soft": "#4e5954",
"sketch_accent": "#83a598",
"sketch_accent": "#a1a322",
"error": "#fb4934",
"warning": "#fabd2f",
"icon": "#d5c4a1",
@@ -34,7 +34,7 @@
"axis_y": "#b8bb26",
"axis_z": "#83a598",
"construction_plane": "#fe801940",
"construction_geom": "#fe8019",
"construction_geom": "#e97926",
"body": "#a89984",
"body_edge": "#1d2021",
"manipulator": "#83a598",
@@ -64,8 +64,8 @@
"section_cap": "#d65d0e",
"profile_fill": "#83a59828",
"glyph_bg": "#373432",
"glyph_edge": "#d65d0e",
"glyph_text": "#fe8019",
"glyph_edge": "#fe614c",
"glyph_text": "#fe614c",
"overlay": "#32302ff0",
"rubber_band": "#83a598",
"app_bar_text": "#ebdbb2",
@@ -93,6 +93,86 @@
"#b8bb26",
"#83a598"
],
"icons.agent": "#d3869b"
"icons.agent": "#d3869b",
"surface_fill": "#fe9755",
"surface_soft": "#4a3a2c",
"surface_ink": "#fe8b2e",
"surface_accent": "#e97926",
"mesh_fill": "#e1ab32",
"mesh_soft": "#4a412f",
"mesh_ink": "#fabd2f",
"mesh_accent": "#c39429",
"form_fill": "#ea9bb0",
"form_soft": "#453a3c",
"form_tab_ink": "#d996a8",
"form_accent": "#cf8297",
"sheet_fill": "#93c681",
"sheet_soft": "#3d4138",
"sheet_ink": "#8ec07c",
"render_fill": "#fc9483",
"render_soft": "#4a3330",
"render_ink": "#fc7e6f",
"render_accent": "#fe614c",
"sketch_soft": "#42412e",
"sketch_ink": "#b8bb26",
"form_ink": "#ebdbb2",
"form_dim": "#bdae93",
"form_primary": "#83a598",
"form_error": "#fb4934",
"form_error_fill": "#702b28",
"form_success": "#b8bb26",
"form_success_fill": "#343a28",
"dialog_body": "#32302f",
"dialog_footer": "#3c3836",
"dialog_rule": "#504945",
"control_fill": "#1d2021",
"control_border": "#7c6f64",
"dialog_label": "#ebdbb2",
"selected_ink": "#ebdbb2",
"selected_bg": "#4e5954",
"on_accent": "#1d2021"
},
"icon_palette": {
"ink": "#1d2021",
"line": "#d5c4a1",
"passive-1": "#c5c0b8",
"passive-2": "#9a948d",
"passive-3": "#706b64",
"guide": "#a89984",
"solid": [
"#b8dbcd",
"#9bbeb1",
"#83a598"
],
"surface": [
"#fcc4a3",
"#fe9755",
"#e97926"
],
"mesh": [
"#fbca67",
"#e1ab32",
"#c39429"
],
"form": [
"#fbbfce",
"#ea9bb0",
"#cf8297"
],
"sketch": [
"#d7db50",
"#babd2a",
"#a1a322"
],
"constraint": [
"#fcc2b7",
"#fc9483",
"#fe614c"
],
"construction": [
"#fcc4a3",
"#fe9755",
"#e97926"
]
}
}
+85 -5
View File
@@ -12,7 +12,7 @@
"text_dim": "#a89984",
"accent": "#83a598",
"accent_soft": "#48544f",
"sketch_accent": "#83a598",
"sketch_accent": "#a1a322",
"error": "#fb4934",
"warning": "#fabd2f",
"icon": "#d5c4a1",
@@ -34,7 +34,7 @@
"axis_y": "#b8bb26",
"axis_z": "#83a598",
"construction_plane": "#fe801940",
"construction_geom": "#fe8019",
"construction_geom": "#e97926",
"body": "#a89984",
"body_edge": "#1d2021",
"manipulator": "#83a598",
@@ -64,8 +64,8 @@
"section_cap": "#d65d0e",
"profile_fill": "#83a59828",
"glyph_bg": "#32302f",
"glyph_edge": "#d65d0e",
"glyph_text": "#fe8019",
"glyph_edge": "#fe614c",
"glyph_text": "#fe614c",
"overlay": "#282828f0",
"rubber_band": "#83a598",
"app_bar_text": "#ebdbb2",
@@ -93,6 +93,86 @@
"#b8bb26",
"#83a598"
],
"icons.agent": "#d3869b"
"icons.agent": "#d3869b",
"surface_fill": "#fe9755",
"surface_soft": "#423326",
"surface_ink": "#fe8019",
"surface_accent": "#e97926",
"mesh_fill": "#e1ab32",
"mesh_soft": "#413a29",
"mesh_ink": "#fabd2f",
"mesh_accent": "#c39429",
"form_fill": "#ea9bb0",
"form_soft": "#3d3336",
"form_tab_ink": "#d58b9f",
"form_accent": "#cf8297",
"sheet_fill": "#93c681",
"sheet_soft": "#343a32",
"sheet_ink": "#8ec07c",
"render_fill": "#fc9483",
"render_soft": "#412c29",
"render_ink": "#fc6d5d",
"render_accent": "#fe614c",
"sketch_soft": "#393a28",
"sketch_ink": "#b8bb26",
"form_ink": "#ebdbb2",
"form_dim": "#bdae93",
"form_primary": "#83a598",
"form_error": "#fb4934",
"form_error_fill": "#6a2624",
"form_success": "#b8bb26",
"form_success_fill": "#343a28",
"dialog_body": "#282828",
"dialog_footer": "#3c3836",
"dialog_rule": "#504945",
"control_fill": "#1d2021",
"control_border": "#7c6f64",
"dialog_label": "#ebdbb2",
"selected_ink": "#ebdbb2",
"selected_bg": "#48544f",
"on_accent": "#1d2021"
},
"icon_palette": {
"ink": "#1d2021",
"line": "#d5c4a1",
"passive-1": "#c5c0b8",
"passive-2": "#9a948d",
"passive-3": "#706b64",
"guide": "#a89984",
"solid": [
"#b8dbcd",
"#9bbeb1",
"#83a598"
],
"surface": [
"#fcc4a3",
"#fe9755",
"#e97926"
],
"mesh": [
"#fbca67",
"#e1ab32",
"#c39429"
],
"form": [
"#fbbfce",
"#ea9bb0",
"#cf8297"
],
"sketch": [
"#d7db50",
"#babd2a",
"#a1a322"
],
"constraint": [
"#fcc2b7",
"#fc9483",
"#fe614c"
],
"construction": [
"#fcc4a3",
"#fe9755",
"#e97926"
]
}
}
@@ -12,7 +12,7 @@
"text_dim": "#7c6f64",
"accent": "#076678",
"accent_soft": "#c9d8c4",
"sketch_accent": "#076678",
"sketch_accent": "#625e15",
"error": "#9d0006",
"warning": "#b57614",
"icon": "#504945",
@@ -34,7 +34,7 @@
"axis_y": "#98971a",
"axis_z": "#458588",
"construction_plane": "#fe801946",
"construction_geom": "#af3a03",
"construction_geom": "#9b3407",
"body": "#bdae93",
"body_edge": "#3c3836",
"manipulator": "#076678",
@@ -64,8 +64,8 @@
"section_cap": "#d65d0e",
"profile_fill": "#fabd2f46",
"glyph_bg": "#fcfaeb",
"glyph_edge": "#af3a03",
"glyph_text": "#af3a03",
"glyph_edge": "#a91714",
"glyph_text": "#a91714",
"overlay": "#f9f5d7eb",
"rubber_band": "#076678",
"app_bar_text": "#fbf1c7",
@@ -93,6 +93,86 @@
"#98971a",
"#458588"
],
"icons.agent": "#8f3f71"
"icons.agent": "#8f3f71",
"surface_fill": "#df663c",
"surface_soft": "#f3e6c6",
"surface_ink": "#af3a03",
"surface_accent": "#9b3407",
"mesh_fill": "#c08024",
"mesh_soft": "#f4ebc7",
"mesh_ink": "#915e10",
"mesh_accent": "#7b5112",
"form_fill": "#c46fa2",
"form_soft": "#f1e6cf",
"form_tab_ink": "#8f3f71",
"form_accent": "#893a6c",
"sheet_fill": "#659f7a",
"sheet_soft": "#eaebcd",
"sheet_ink": "#3d7252",
"render_fill": "#e85a4d",
"render_soft": "#f2e1c6",
"render_ink": "#9d0006",
"render_accent": "#a91714",
"sketch_soft": "#efebc7",
"sketch_ink": "#6e6a0d",
"form_ink": "#3c3836",
"form_dim": "#665c54",
"form_primary": "#076678",
"form_error": "#9d0006",
"form_error_fill": "#f0cbb2",
"form_success": "#427b58",
"form_success_fill": "#dae3b6",
"dialog_body": "#f9f5d7",
"dialog_footer": "#ebdbb2",
"dialog_rule": "#d5c4a1",
"control_fill": "#fcfaeb",
"control_border": "#a89984",
"dialog_label": "#3c3836",
"selected_ink": "#3c3836",
"selected_bg": "#c9d8c4",
"on_accent": "#fbf1c7"
},
"icon_palette": {
"ink": "#3c3836",
"line": "#504945",
"passive-1": "#e9e3df",
"passive-2": "#b8b3af",
"passive-3": "#8a8581",
"guide": "#7c6f64",
"solid": [
"#87d5e9",
"#4e9caf",
"#076678"
],
"surface": [
"#feb299",
"#df663c",
"#9b3407"
],
"mesh": [
"#fcb864",
"#c08024",
"#7b5112"
],
"form": [
"#fbaad9",
"#c46fa2",
"#893a6c"
],
"sketch": [
"#d0cc73",
"#989439",
"#625e15"
],
"constraint": [
"#fab3a8",
"#e85a4d",
"#a91714"
],
"construction": [
"#feb299",
"#df663c",
"#9b3407"
]
}
}
@@ -12,7 +12,7 @@
"text_dim": "#7c6f64",
"accent": "#076678",
"accent_soft": "#c3ccae",
"sketch_accent": "#076678",
"sketch_accent": "#625e15",
"error": "#9d0006",
"warning": "#b57614",
"icon": "#504945",
@@ -34,7 +34,7 @@
"axis_y": "#98971a",
"axis_z": "#458588",
"construction_plane": "#fe801946",
"construction_geom": "#af3a03",
"construction_geom": "#9b3407",
"body": "#bdae93",
"body_edge": "#3c3836",
"manipulator": "#076678",
@@ -64,8 +64,8 @@
"section_cap": "#d65d0e",
"profile_fill": "#fabd2f46",
"glyph_bg": "#f8f2de",
"glyph_edge": "#af3a03",
"glyph_text": "#af3a03",
"glyph_edge": "#a91714",
"glyph_text": "#a91714",
"overlay": "#f2e5bceb",
"rubber_band": "#076678",
"app_bar_text": "#fbf1c7",
@@ -93,6 +93,86 @@
"#98971a",
"#458588"
],
"icons.agent": "#8f3f71"
"icons.agent": "#8f3f71",
"surface_fill": "#df663c",
"surface_soft": "#edd7ad",
"surface_ink": "#a83803",
"surface_accent": "#9b3407",
"mesh_fill": "#c08024",
"mesh_soft": "#eddcaf",
"mesh_ink": "#84560f",
"mesh_accent": "#7b5112",
"form_fill": "#c46fa2",
"form_soft": "#ead8b6",
"form_tab_ink": "#8f3f71",
"form_accent": "#893a6c",
"sheet_fill": "#659f7a",
"sheet_soft": "#e4ddb4",
"sheet_ink": "#38694b",
"render_fill": "#e85a4d",
"render_soft": "#ebd3ad",
"render_ink": "#9d0006",
"render_accent": "#a91714",
"sketch_soft": "#e8dcae",
"sketch_ink": "#66610c",
"form_ink": "#3c3836",
"form_dim": "#665c54",
"form_primary": "#076678",
"form_error": "#9d0006",
"form_error_fill": "#eabe9c",
"form_success": "#427b58",
"form_success_fill": "#dae3b6",
"dialog_body": "#f2e5bc",
"dialog_footer": "#ebdbb2",
"dialog_rule": "#d5c4a1",
"control_fill": "#f8f2de",
"control_border": "#a89984",
"dialog_label": "#3c3836",
"selected_ink": "#3c3836",
"selected_bg": "#c3ccae",
"on_accent": "#fbf1c7"
},
"icon_palette": {
"ink": "#3c3836",
"line": "#504945",
"passive-1": "#e9e3df",
"passive-2": "#b8b3af",
"passive-3": "#8a8581",
"guide": "#7c6f64",
"solid": [
"#87d5e9",
"#4e9caf",
"#076678"
],
"surface": [
"#feb299",
"#df663c",
"#9b3407"
],
"mesh": [
"#fcb864",
"#c08024",
"#7b5112"
],
"form": [
"#fbaad9",
"#c46fa2",
"#893a6c"
],
"sketch": [
"#d0cc73",
"#989439",
"#625e15"
],
"constraint": [
"#fab3a8",
"#e85a4d",
"#a91714"
],
"construction": [
"#feb299",
"#df663c",
"#9b3407"
]
}
}
+85 -5
View File
@@ -12,7 +12,7 @@
"text_dim": "#7c6f64",
"accent": "#076678",
"accent_soft": "#cad5b7",
"sketch_accent": "#076678",
"sketch_accent": "#625e15",
"error": "#9d0006",
"warning": "#b57614",
"icon": "#504945",
@@ -34,7 +34,7 @@
"axis_y": "#98971a",
"axis_z": "#458588",
"construction_plane": "#fe801946",
"construction_geom": "#af3a03",
"construction_geom": "#9b3407",
"body": "#bdae93",
"body_edge": "#3c3836",
"manipulator": "#076678",
@@ -64,8 +64,8 @@
"section_cap": "#d65d0e",
"profile_fill": "#fabd2f46",
"glyph_bg": "#fdf8e3",
"glyph_edge": "#af3a03",
"glyph_text": "#af3a03",
"glyph_edge": "#a91714",
"glyph_text": "#a91714",
"overlay": "#fbf1c7eb",
"rubber_band": "#076678",
"app_bar_text": "#fbf1c7",
@@ -93,6 +93,86 @@
"#98971a",
"#458588"
],
"icons.agent": "#8f3f71"
"icons.agent": "#8f3f71",
"surface_fill": "#df663c",
"surface_soft": "#f5e2b7",
"surface_ink": "#af3a03",
"surface_accent": "#9b3407",
"mesh_fill": "#c08024",
"mesh_soft": "#f5e7b9",
"mesh_ink": "#8d5c10",
"mesh_accent": "#7b5112",
"form_fill": "#c46fa2",
"form_soft": "#f2e3c0",
"form_tab_ink": "#8f3f71",
"form_accent": "#893a6c",
"sheet_fill": "#659f7a",
"sheet_soft": "#ece8be",
"sheet_ink": "#3c7050",
"render_fill": "#e85a4d",
"render_soft": "#f3deb8",
"render_ink": "#9d0006",
"render_accent": "#a91714",
"sketch_soft": "#f1e7b8",
"sketch_ink": "#6d680d",
"form_ink": "#3c3836",
"form_dim": "#665c54",
"form_primary": "#076678",
"form_error": "#9d0006",
"form_error_fill": "#f2c8a5",
"form_success": "#427b58",
"form_success_fill": "#dae3b6",
"dialog_body": "#fbf1c7",
"dialog_footer": "#ebdbb2",
"dialog_rule": "#d5c4a1",
"control_fill": "#fdf8e3",
"control_border": "#a89984",
"dialog_label": "#3c3836",
"selected_ink": "#3c3836",
"selected_bg": "#cad5b7",
"on_accent": "#fbf1c7"
},
"icon_palette": {
"ink": "#3c3836",
"line": "#504945",
"passive-1": "#e9e3df",
"passive-2": "#b8b3af",
"passive-3": "#8a8581",
"guide": "#7c6f64",
"solid": [
"#87d5e9",
"#4e9caf",
"#076678"
],
"surface": [
"#feb299",
"#df663c",
"#9b3407"
],
"mesh": [
"#fcb864",
"#c08024",
"#7b5112"
],
"form": [
"#fbaad9",
"#c46fa2",
"#893a6c"
],
"sketch": [
"#d0cc73",
"#989439",
"#625e15"
],
"constraint": [
"#fab3a8",
"#e85a4d",
"#a91714"
],
"construction": [
"#feb299",
"#df663c",
"#9b3407"
]
}
}
+69 -26
View File
@@ -30,7 +30,7 @@
"box_crossing": "#40e080",
"box_window": "#00bfff",
"chip": "#00bfff",
"construction_geom": "#ffcc00",
"construction_geom": "#e6a019",
"construction_plane": "#ffcc0022",
"continuity": [
"#40e080",
@@ -54,25 +54,25 @@
"dimension_driven": "#cccccc",
"error": "#ff6666",
"field": "#000000",
"form_accent": "#00bfff",
"form_accent": "#d98af9",
"form_dim": "#cccccc",
"form_error": "#ff6666",
"form_error_fill": "#331414",
"form_fill": "#0070d0",
"form_fill": "#e6b2fc",
"form_ink": "#ffffff",
"form_primary": "#00bfff",
"form_soft": "#002c45",
"form_soft": "#1b111f",
"form_success": "#40e080",
"form_success_fill": "#0b2616",
"form_tab_ink": "#ffffff",
"form_tab_ink": "#df8fff",
"gizmo": [
"#ff6666",
"#40e080",
"#0070d0"
],
"glyph_bg": "#151515",
"glyph_edge": "#ff6666",
"glyph_text": "#ff6666",
"glyph_edge": "#fa8a86",
"glyph_text": "#fa8a86",
"grid": "#10202b",
"grid_major": "#234054",
"heading_bg": "#000000",
@@ -129,10 +129,10 @@
"#555555"
],
"manipulator": "#00bfff",
"mesh_accent": "#00bfff",
"mesh_fill": "#0070d0",
"mesh_ink": "#ffffff",
"mesh_soft": "#002c45",
"mesh_accent": "#b7b728",
"mesh_fill": "#d1d12d",
"mesh_ink": "#ffff00",
"mesh_soft": "#1f1f00",
"on_accent": "#06121b",
"origin_plane": "#ffcc0028",
"origin_plane_edge": "#ffcc0088",
@@ -146,10 +146,10 @@
"preview_new": "#ffcc00",
"preview_sketch": "#40e080",
"profile_fill": "#0070d022",
"render_accent": "#00bfff",
"render_fill": "#0070d0",
"render_ink": "#ffffff",
"render_soft": "#002c45",
"render_accent": "#fd7ebe",
"render_fill": "#fbaed2",
"render_ink": "#ff80c0",
"render_soft": "#1f0f17",
"rubber_band": "#00bfff",
"section_cap": "#ffcc00",
"sel_edge": "#00bfff",
@@ -160,26 +160,26 @@
"sel_vertex": "#0070d0",
"selected_bg": "#004c80",
"selected_ink": "#ffffff",
"sheet_fill": "#0070d0",
"sheet_ink": "#ffffff",
"sheet_soft": "#002c45",
"sheet_fill": "#1fe5e5",
"sheet_ink": "#00ffff",
"sheet_soft": "#001f1f",
"sketch": "#0070d0",
"sketch_accent": "#00bfff",
"sketch_accent": "#2cd06d",
"sketch_centerline": "#ffcc00",
"sketch_construction": "#ffcc00",
"sketch_fixed": "#ffffff",
"sketch_ink": "#ffffff",
"sketch_ink": "#00ff80",
"sketch_locked": "#40e080",
"sketch_lost": "#ff6666",
"sketch_point": "#ffffff",
"sketch_point_free": "#0070d0",
"sketch_projected": "#c080ff",
"sketch_soft": "#002c45",
"sketch_soft": "#001f0f",
"subheading_bg": "#060606",
"surface_accent": "#00bfff",
"surface_fill": "#0070d0",
"surface_ink": "#ffffff",
"surface_soft": "#002c45",
"surface_accent": "#e6a019",
"surface_fill": "#fcbc56",
"surface_ink": "#ffb000",
"surface_soft": "#1f1500",
"tab_on_fill_dark": "#000000",
"text": "#ffffff",
"text_dim": "#cccccc",
@@ -198,5 +198,48 @@
"warning": "#ffcc00"
},
"format": "solidcraft-theme/1",
"name": "High Contrast"
"name": "High Contrast",
"icon_palette": {
"ink": "#000000",
"line": "#ffffff",
"passive-1": "#ffffff",
"passive-2": "#c0c0c0",
"passive-3": "#808080",
"guide": "#cccccc",
"solid": [
"#c9eafd",
"#8ad4fa",
"#00bfff"
],
"surface": [
"#fedfb4",
"#fcbc56",
"#e6a019"
],
"mesh": [
"#eeee31",
"#d1d12d",
"#b7b728"
],
"form": [
"#f3dafe",
"#e6b2fc",
"#d98af9"
],
"sketch": [
"#a4fdba",
"#32ee7e",
"#2cd06d"
],
"constraint": [
"#fedbd9",
"#feb2ae",
"#fa8a86"
],
"construction": [
"#fedfb4",
"#fcbc56",
"#e6a019"
]
}
}
+69 -26
View File
@@ -30,7 +30,7 @@
"box_crossing": "#a3be8c",
"box_window": "#88c0d0",
"chip": "#88c0d0",
"construction_geom": "#ebcb8b",
"construction_geom": "#eca089",
"construction_plane": "#ebcb8b22",
"continuity": [
"#a3be8c",
@@ -54,25 +54,25 @@
"dimension_driven": "#a4b0c2",
"error": "#bf616a",
"field": "#242933",
"form_accent": "#88c0d0",
"form_accent": "#cfa7c7",
"form_dim": "#a4b0c2",
"form_error": "#bf616a",
"form_error_fill": "#4b3d48",
"form_fill": "#5e81ac",
"form_fill": "#e7bfe0",
"form_ink": "#eceff4",
"form_primary": "#88c0d0",
"form_soft": "#35495b",
"form_soft": "#3e3f4d",
"form_success": "#a3be8c",
"form_success_fill": "#424b4d",
"form_tab_ink": "#eceff4",
"form_tab_ink": "#c3a5bd",
"gizmo": [
"#bf616a",
"#a3be8c",
"#5e81ac"
],
"glyph_bg": "#3b4252",
"glyph_edge": "#bf616a",
"glyph_text": "#bf616a",
"glyph_edge": "#f9959c",
"glyph_text": "#f9959c",
"grid": "#354051",
"grid_major": "#444f60",
"heading_bg": "#171a20",
@@ -129,10 +129,10 @@
"#657991"
],
"manipulator": "#88c0d0",
"mesh_accent": "#88c0d0",
"mesh_fill": "#5e81ac",
"mesh_ink": "#eceff4",
"mesh_soft": "#35495b",
"mesh_accent": "#d1b172",
"mesh_fill": "#e9c989",
"mesh_ink": "#ebcb8b",
"mesh_soft": "#454649",
"on_accent": "#06121b",
"origin_plane": "#ebcb8b28",
"origin_plane_edge": "#ebcb8b88",
@@ -146,10 +146,10 @@
"preview_new": "#ebcb8b",
"preview_sketch": "#a3be8c",
"profile_fill": "#5e81ac22",
"render_accent": "#88c0d0",
"render_fill": "#5e81ac",
"render_ink": "#eceff4",
"render_soft": "#35495b",
"render_accent": "#f9959c",
"render_fill": "#fdb9bd",
"render_ink": "#d5979d",
"render_soft": "#3f3945",
"rubber_band": "#88c0d0",
"section_cap": "#ebcb8b",
"sel_edge": "#5e81ac",
@@ -160,26 +160,26 @@
"sel_vertex": "#5e81ac",
"selected_bg": "#34607a",
"selected_ink": "#eceff4",
"sheet_fill": "#5e81ac",
"sheet_ink": "#eceff4",
"sheet_soft": "#35495b",
"sheet_fill": "#aad8d7",
"sheet_ink": "#8fbcbb",
"sheet_soft": "#3a444f",
"sketch": "#5e81ac",
"sketch_accent": "#88c0d0",
"sketch_accent": "#a5c08e",
"sketch_centerline": "#ebcb8b",
"sketch_construction": "#ebcb8b",
"sketch_fixed": "#eceff4",
"sketch_ink": "#eceff4",
"sketch_ink": "#a3be8c",
"sketch_locked": "#a3be8c",
"sketch_lost": "#bf616a",
"sketch_point": "#eceff4",
"sketch_point_free": "#5e81ac",
"sketch_projected": "#b48ead",
"sketch_soft": "#35495b",
"sketch_soft": "#3c4549",
"subheading_bg": "#222730",
"surface_accent": "#88c0d0",
"surface_fill": "#5e81ac",
"surface_ink": "#eceff4",
"surface_soft": "#35495b",
"surface_accent": "#eca089",
"surface_fill": "#fcbda9",
"surface_ink": "#d99e8b",
"surface_soft": "#413e46",
"tab_on_fill_dark": "#242933",
"text": "#eceff4",
"text_dim": "#a4b0c2",
@@ -198,5 +198,48 @@
"warning": "#ebcb8b"
},
"format": "solidcraft-theme/1",
"name": "Nord"
"name": "Nord",
"icon_palette": {
"ink": "#242933",
"line": "#eceff4",
"passive-1": "#bdc1c8",
"passive-2": "#91959c",
"passive-3": "#686c72",
"guide": "#a4b0c2",
"solid": [
"#bbeefd",
"#a0d8e9",
"#88c0d0"
],
"surface": [
"#fedcd1",
"#fcbda9",
"#eca089"
],
"mesh": [
"#fee1a7",
"#e9c989",
"#d1b172"
],
"form": [
"#ffd6f7",
"#e7bfe0",
"#cfa7c7"
],
"sketch": [
"#d3f0bc",
"#bdd8a5",
"#a5c08e"
],
"constraint": [
"#fddbdc",
"#fdb9bd",
"#f9959c"
],
"construction": [
"#fedcd1",
"#fcbda9",
"#eca089"
]
}
}
+69 -26
View File
@@ -30,7 +30,7 @@
"box_crossing": "#50fa7b",
"box_window": "#bd93f9",
"chip": "#bd93f9",
"construction_geom": "#f1fa8c",
"construction_geom": "#e09b4e",
"construction_plane": "#f1fa8c22",
"continuity": [
"#50fa7b",
@@ -54,25 +54,25 @@
"dimension_driven": "#a1a4c4",
"error": "#ff5555",
"field": "#21222c",
"form_accent": "#bd93f9",
"form_accent": "#c096e8",
"form_dim": "#a1a4c4",
"form_error": "#ff5555",
"form_error_fill": "#53333c",
"form_fill": "#8456b8",
"form_fill": "#d7b2fd",
"form_ink": "#f8f8f2",
"form_primary": "#bd93f9",
"form_soft": "#393149",
"form_soft": "#3d3a4e",
"form_success": "#50fa7b",
"form_success_fill": "#2f4d42",
"form_tab_ink": "#f8f8f2",
"form_tab_ink": "#d6acff",
"gizmo": [
"#ff5555",
"#50fa7b",
"#8456b8"
],
"glyph_bg": "#343746",
"glyph_edge": "#ff5555",
"glyph_text": "#ff5555",
"glyph_edge": "#fc827b",
"glyph_text": "#fc827b",
"grid": "#2e2f3d",
"grid_major": "#3e4050",
"heading_bg": "#14151b",
@@ -129,10 +129,10 @@
"#656581"
],
"manipulator": "#bd93f9",
"mesh_accent": "#bd93f9",
"mesh_fill": "#8456b8",
"mesh_ink": "#f8f8f2",
"mesh_soft": "#393149",
"mesh_accent": "#adb445",
"mesh_fill": "#c6ce60",
"mesh_ink": "#f1fa8c",
"mesh_soft": "#404340",
"on_accent": "#06121b",
"origin_plane": "#f1fa8c28",
"origin_plane_edge": "#f1fa8c88",
@@ -146,10 +146,10 @@
"preview_new": "#f1fa8c",
"preview_sketch": "#50fa7b",
"profile_fill": "#8456b822",
"render_accent": "#bd93f9",
"render_fill": "#8456b8",
"render_ink": "#f8f8f2",
"render_soft": "#393149",
"render_accent": "#fb75c2",
"render_fill": "#fea4d4",
"render_ink": "#ff79c6",
"render_soft": "#423347",
"rubber_band": "#bd93f9",
"section_cap": "#f1fa8c",
"sel_edge": "#8456b8",
@@ -160,26 +160,26 @@
"sel_vertex": "#8456b8",
"selected_bg": "#563c79",
"selected_ink": "#f8f8f2",
"sheet_fill": "#8456b8",
"sheet_ink": "#f8f8f2",
"sheet_soft": "#393149",
"sheet_fill": "#77d5e9",
"sheet_ink": "#8be9fd",
"sheet_soft": "#34414e",
"sketch": "#8456b8",
"sketch_accent": "#bd93f9",
"sketch_accent": "#31cc5d",
"sketch_centerline": "#f1fa8c",
"sketch_construction": "#f1fa8c",
"sketch_fixed": "#f8f8f2",
"sketch_ink": "#f8f8f2",
"sketch_ink": "#50fa7b",
"sketch_locked": "#50fa7b",
"sketch_lost": "#ff5555",
"sketch_point": "#f8f8f2",
"sketch_point_free": "#8456b8",
"sketch_projected": "#bd93f9",
"sketch_soft": "#393149",
"sketch_soft": "#2d433e",
"subheading_bg": "#1e2028",
"surface_accent": "#bd93f9",
"surface_fill": "#8456b8",
"surface_ink": "#f8f8f2",
"surface_soft": "#393149",
"surface_accent": "#e09b4e",
"surface_fill": "#fbb468",
"surface_ink": "#ffb86c",
"surface_soft": "#423b3c",
"tab_on_fill_dark": "#21222c",
"text": "#f8f8f2",
"text_dim": "#a1a4c4",
@@ -198,5 +198,48 @@
"warning": "#f1fa8c"
},
"format": "solidcraft-theme/1",
"name": "Nosferatu"
"name": "Nosferatu",
"icon_palette": {
"ink": "#21222c",
"line": "#f8f8f2",
"passive-1": "#bfc0cb",
"passive-2": "#93949f",
"passive-3": "#6a6b75",
"guide": "#a1a4c4",
"solid": [
"#e7dbfd",
"#d0b6fa",
"#bd93f9"
],
"surface": [
"#fedbb9",
"#fbb468",
"#e09b4e"
],
"mesh": [
"#e3eb7e",
"#c6ce60",
"#adb445"
],
"form": [
"#ebd9fe",
"#d7b2fd",
"#c096e8"
],
"sketch": [
"#92ffa4",
"#38e96b",
"#31cc5d"
],
"constraint": [
"#fdd8d4",
"#ffaca5",
"#fc827b"
],
"construction": [
"#fedbb9",
"#fbb468",
"#e09b4e"
]
}
}
+69 -26
View File
@@ -30,7 +30,7 @@
"box_crossing": "#98c379",
"box_window": "#61afef",
"chip": "#344b65",
"construction_geom": "#d19a66",
"construction_geom": "#d29b67",
"construction_plane": "#d0996646",
"continuity": [
"#98c379",
@@ -54,25 +54,25 @@
"dimension_driven": "#7f848e",
"error": "#e06c75",
"field": "#1e2227",
"form_accent": "#7b63a6",
"form_accent": "#d283e9",
"form_dim": "#949ba8",
"form_error": "#f06460",
"form_error_fill": "#6e3236",
"form_fill": "#8a6fcc",
"form_fill": "#e9a1fe",
"form_ink": "#dee2e8",
"form_primary": "#3a88ee",
"form_soft": "#372f4f",
"form_soft": "#352f40",
"form_success": "#8fdb9a",
"form_success_fill": "#2c4a33",
"form_tab_ink": "#b39bee",
"form_tab_ink": "#c97fdf",
"gizmo": [
"#e06c75",
"#98c379",
"#61afef"
],
"glyph_bg": "#282c34",
"glyph_edge": "#e06c75",
"glyph_text": "#e06c75",
"glyph_edge": "#f57f87",
"glyph_text": "#f57f87",
"grid": "#323842",
"grid_major": "#3e4451",
"heading_bg": "#14161a",
@@ -129,10 +129,10 @@
"#c678dd"
],
"manipulator": "#61afef",
"mesh_accent": "#857100",
"mesh_fill": "#c6a800",
"mesh_ink": "#d4b726",
"mesh_soft": "#41391a",
"mesh_accent": "#c6a25e",
"mesh_fill": "#e0bb76",
"mesh_ink": "#e5c07b",
"mesh_soft": "#393835",
"on_accent": "#ffffff",
"origin_plane": "#d19b675e",
"origin_plane_edge": "#d19a66c8",
@@ -146,10 +146,10 @@
"preview_new": "#e5c07b",
"preview_sketch": "#98c379",
"profile_fill": "#60acec28",
"render_accent": "#e074ae",
"render_fill": "#c8588f",
"render_ink": "#e074ae",
"render_soft": "#402336",
"render_accent": "#f57f87",
"render_fill": "#fea5a9",
"render_ink": "#e37b83",
"render_soft": "#382e34",
"rubber_band": "#61afef",
"section_cap": "#d19a66",
"sel_edge": "#61afef",
@@ -160,26 +160,26 @@
"sel_vertex": "#61afef",
"selected_bg": "#2a466e",
"selected_ink": "#9cc7f5",
"sheet_fill": "#2a7fa8",
"sheet_ink": "#4fb3d9",
"sheet_soft": "#1f3a47",
"sheet_fill": "#73d2de",
"sheet_ink": "#56b6c2",
"sheet_soft": "#27363d",
"sketch": "#61afef",
"sketch_accent": "#56b6c2",
"sketch_accent": "#8cb76d",
"sketch_centerline": "#d19a66",
"sketch_construction": "#d19a66",
"sketch_fixed": "#abb2bf",
"sketch_ink": "#46be78",
"sketch_ink": "#98c379",
"sketch_locked": "#98c379",
"sketch_lost": "#e06c75",
"sketch_point": "#abb2bf",
"sketch_point_free": "#61afef",
"sketch_projected": "#c678dd",
"sketch_soft": "#1f3b2b",
"sketch_soft": "#2f3834",
"subheading_bg": "#1e2127",
"surface_accent": "#95682d",
"surface_fill": "#b26a14",
"surface_ink": "#e0914a",
"surface_soft": "#45331e",
"surface_accent": "#d29b67",
"surface_fill": "#edb47f",
"surface_ink": "#d19a66",
"surface_soft": "#363332",
"tab_on_fill_dark": "#000000",
"text": "#abb2bf",
"text_dim": "#7f848e",
@@ -198,5 +198,48 @@
"warning": "#e5c07b"
},
"format": "solidcraft-theme/1",
"name": "One Dark"
"name": "One Dark",
"icon_palette": {
"ink": "#21252b",
"line": "#abb2bf",
"passive-1": "#bec1c6",
"passive-2": "#93959a",
"passive-3": "#696c70",
"guide": "#7f848e",
"solid": [
"#c5e2fc",
"#8ac8fd",
"#61afef"
],
"surface": [
"#fcd6b4",
"#edb47f",
"#d29b67"
],
"mesh": [
"#fed993",
"#e0bb76",
"#c6a25e"
],
"form": [
"#f2d0fd",
"#e9a1fe",
"#d283e9"
],
"sketch": [
"#c2eea2",
"#a5d186",
"#8cb76d"
],
"constraint": [
"#fed1d2",
"#fea5a9",
"#f57f87"
],
"construction": [
"#fcd6b4",
"#edb47f",
"#d29b67"
]
}
}
+77 -26
View File
@@ -30,7 +30,7 @@
"box_crossing": "#28a050",
"box_window": "#555599",
"chip": "#555599",
"construction_geom": "#9c5600",
"construction_geom": "#785735",
"construction_plane": "#ccccdd33",
"continuity": [
"#009e73",
@@ -54,25 +54,25 @@
"dimension_driven": "#666666",
"error": "#bb3333",
"field": "#ffffff",
"form_accent": "#666699",
"form_accent": "#704e81",
"form_dim": "#666666",
"form_error": "#aa2222",
"form_error_fill": "#f2dddd",
"form_fill": "#8888bb",
"form_fill": "#a783b9",
"form_ink": "#444477",
"form_primary": "#555599",
"form_soft": "#e6e6f2",
"form_soft": "#d5d2d6",
"form_success": "#336633",
"form_success_fill": "#e2ecdf",
"form_tab_ink": "#555599",
"form_tab_ink": "#6d4e7d",
"gizmo": [
"#e1463c",
"#50be50",
"#4682f0"
],
"glyph_bg": "#ffffff",
"glyph_edge": "#be6e64",
"glyph_text": "#ca473d",
"glyph_edge": "#ab2125",
"glyph_text": "#ab2125",
"grid": "#e2e2e2",
"grid_major": "#c8c8c8",
"heading_bg": "#cccccc",
@@ -129,10 +129,10 @@
"#666699"
],
"manipulator": "#555599",
"mesh_accent": "#666699",
"mesh_fill": "#8888bb",
"mesh_ink": "#444477",
"mesh_soft": "#e6e6f2",
"mesh_accent": "#6d5d2a",
"mesh_fill": "#a3925e",
"mesh_ink": "#675a34",
"mesh_soft": "#d6d5d1",
"on_accent": "#ffffff",
"origin_plane": "#ccccdd44",
"origin_plane_edge": "#888899aa",
@@ -146,10 +146,10 @@
"preview_new": "#f0e169",
"preview_sketch": "#20be60",
"profile_fill": "#ccccff33",
"render_accent": "#666699",
"render_fill": "#8888bb",
"render_ink": "#444477",
"render_soft": "#e6e6f2",
"render_accent": "#913d5f",
"render_fill": "#cc7294",
"render_ink": "#8e3f5f",
"render_soft": "#d8d1d3",
"rubber_band": "#555599",
"section_cap": "#d68048",
"sel_edge": "#555599",
@@ -160,26 +160,26 @@
"sel_vertex": "#555599",
"selected_bg": "#ccccff",
"selected_ink": "#333366",
"sheet_fill": "#8888bb",
"sheet_ink": "#444477",
"sheet_soft": "#e6e6f2",
"sheet_fill": "#6a9e9e",
"sheet_ink": "#376060",
"sheet_soft": "#d1d5d5",
"sketch": "#444488",
"sketch_accent": "#666699",
"sketch_accent": "#476847",
"sketch_centerline": "#c86e3c",
"sketch_construction": "#e68228",
"sketch_fixed": "#222222",
"sketch_ink": "#444477",
"sketch_ink": "#456045",
"sketch_locked": "#447744",
"sketch_lost": "#c83c5a",
"sketch_point": "#222222",
"sketch_point_free": "#444488",
"sketch_projected": "#963cbe",
"sketch_soft": "#e6e6f2",
"sketch_soft": "#d2d5d2",
"subheading_bg": "#d7d7d7",
"surface_accent": "#666699",
"surface_fill": "#8888bb",
"surface_ink": "#444477",
"surface_soft": "#e6e6f2",
"surface_accent": "#785735",
"surface_fill": "#af8b68",
"surface_ink": "#715538",
"surface_soft": "#d6d3d1",
"tab_on_fill_dark": "#222222",
"text": "#222222",
"text_dim": "#666666",
@@ -198,5 +198,56 @@
"warning": "#997722"
},
"format": "solidcraft-theme/1",
"name": "Platinum 9"
"name": "Platinum 9",
"radii": {
"radius_sm": 0,
"radius_md": 0,
"radius_lg": 0,
"radius_xl": 0,
"control_radius": 0,
"sketch_mode_radius": 0
},
"icon_palette": {
"ink": "#222222",
"line": "#222222",
"passive-1": "#e2e3f7",
"passive-2": "#b1b2c6",
"passive-3": "#838497",
"guide": "#666666",
"solid": [
"#bfc3fb",
"#888ad3",
"#555599"
],
"surface": [
"#e6c09c",
"#af8b68",
"#785735"
],
"mesh": [
"#d9c792",
"#a3925e",
"#6d5d2a"
],
"form": [
"#ddb7f1",
"#a783b9",
"#704e81"
],
"sketch": [
"#afd4ae",
"#7a9e7a",
"#476847"
],
"constraint": [
"#ffb1aa",
"#ea5f5a",
"#ab2125"
],
"construction": [
"#e6c09c",
"#af8b68",
"#785735"
]
}
}
+69 -26
View File
@@ -30,7 +30,7 @@
"box_crossing": "#859900",
"box_window": "#268bd2",
"chip": "#268bd2",
"construction_geom": "#b58900",
"construction_geom": "#cb4b16",
"construction_plane": "#b5890022",
"continuity": [
"#859900",
@@ -54,25 +54,25 @@
"dimension_driven": "#657b83",
"error": "#dc322f",
"field": "#fdf6e3",
"form_accent": "#268bd2",
"form_accent": "#6b70c3",
"form_dim": "#657b83",
"form_error": "#dc322f",
"form_error_fill": "#eac4b4",
"form_fill": "#346e88",
"form_fill": "#a2a9f8",
"form_ink": "#586e75",
"form_primary": "#268bd2",
"form_soft": "#e1e8d9",
"form_soft": "#e4ded4",
"form_success": "#859900",
"form_success_fill": "#dcdbb1",
"form_tab_ink": "#346e88",
"form_tab_ink": "#565a9d",
"gizmo": [
"#dc322f",
"#859900",
"#346e88"
],
"glyph_bg": "#e3ddc9",
"glyph_edge": "#dc322f",
"glyph_text": "#dc322f",
"glyph_edge": "#da2f2d",
"glyph_text": "#da2f2d",
"grid": "#dfddd0",
"grid_major": "#c8cbc1",
"heading_bg": "#e3ddc9",
@@ -129,10 +129,10 @@
"#b5b6a0"
],
"manipulator": "#268bd2",
"mesh_accent": "#268bd2",
"mesh_fill": "#346e88",
"mesh_ink": "#586e75",
"mesh_soft": "#e1e8d9",
"mesh_accent": "#97751d",
"mesh_fill": "#d7aa3c",
"mesh_ink": "#7b5d00",
"mesh_soft": "#e9e0c4",
"on_accent": "#ffffff",
"origin_plane": "#b5890028",
"origin_plane_edge": "#b5890088",
@@ -146,10 +146,10 @@
"preview_new": "#b58900",
"preview_sketch": "#859900",
"profile_fill": "#346e8822",
"render_accent": "#268bd2",
"render_fill": "#346e88",
"render_ink": "#586e75",
"render_soft": "#e1e8d9",
"render_accent": "#cf317e",
"render_fill": "#f986b4",
"render_ink": "#ad2c6b",
"render_soft": "#ecdace",
"rubber_band": "#268bd2",
"section_cap": "#b58900",
"sel_edge": "#346e88",
@@ -160,26 +160,26 @@
"sel_vertex": "#346e88",
"selected_bg": "#bdd9da",
"selected_ink": "#234a55",
"sheet_fill": "#346e88",
"sheet_ink": "#586e75",
"sheet_soft": "#e1e8d9",
"sheet_fill": "#58c6bc",
"sheet_ink": "#1d6d67",
"sheet_soft": "#dee2d0",
"sketch": "#346e88",
"sketch_accent": "#268bd2",
"sketch_accent": "#738400",
"sketch_centerline": "#b58900",
"sketch_construction": "#b58900",
"sketch_fixed": "#586e75",
"sketch_ink": "#586e75",
"sketch_ink": "#5a6800",
"sketch_locked": "#859900",
"sketch_lost": "#dc322f",
"sketch_point": "#586e75",
"sketch_point_free": "#346e88",
"sketch_projected": "#6c71c4",
"sketch_soft": "#e1e8d9",
"sketch_soft": "#e6e2c4",
"subheading_bg": "#eae4d1",
"surface_accent": "#268bd2",
"surface_fill": "#346e88",
"surface_ink": "#586e75",
"surface_soft": "#e1e8d9",
"surface_accent": "#cb4b16",
"surface_fill": "#fb906b",
"surface_ink": "#a83e12",
"surface_soft": "#ebdbc6",
"tab_on_fill_dark": "#fdf6e3",
"text": "#586e75",
"text_dim": "#657b83",
@@ -198,5 +198,48 @@
"warning": "#b58900"
},
"format": "solidcraft-theme/1",
"name": "Solarized Light"
"name": "Solarized Light",
"icon_palette": {
"ink": "#151515",
"line": "#586e75",
"passive-1": "#dee6e9",
"passive-2": "#aeb6b9",
"passive-3": "#80888a",
"guide": "#657b83",
"solid": [
"#d5ebff",
"#67b9fb",
"#1480c6"
],
"surface": [
"#fee1d7",
"#fb906b",
"#cb4b16"
],
"mesh": [
"#fde5b2",
"#d7aa3c",
"#97751d"
],
"form": [
"#e3e6fe",
"#a2a9f8",
"#6b70c3"
],
"sketch": [
"#def67b",
"#a8be40",
"#738400"
],
"constraint": [
"#fee0dc",
"#fb8d81",
"#da2f2d"
],
"construction": [
"#fee1d7",
"#fb906b",
"#cb4b16"
]
}
}
+102 -22
View File
@@ -55,16 +55,16 @@
"error": "#ff0000",
"field": "#ffffff",
"form_accent": "#800080",
"form_dim": "#808080",
"form_dim": "#404040",
"form_error": "#800000",
"form_error_fill": "#ffffc0",
"form_fill": "#800080",
"form_ink": "#000000",
"form_primary": "#000080",
"form_soft": "#c0c0c0",
"form_soft": "#bbb1bb",
"form_success": "#008000",
"form_success_fill": "#c0dcc0",
"form_tab_ink": "#800080",
"form_tab_ink": "#7d007d",
"gizmo": [
"#ff0000",
"#00ff00",
@@ -75,8 +75,8 @@
"glyph_text": "#800000",
"grid": "#40a0a0",
"grid_major": "#808080",
"heading_bg": "#a0a0a0",
"hover": "#c0c0c0",
"heading_bg": "#c0c0c0",
"hover": "#dfdfdf",
"hover_edge": "#000000",
"hover_edge_halo": "#ffffff",
"hover_profile": "#00008030",
@@ -129,10 +129,10 @@
"#808080"
],
"manipulator": "#000080",
"mesh_accent": "#000080",
"mesh_accent": "#808000",
"mesh_fill": "#808000",
"mesh_ink": "#808000",
"mesh_soft": "#ffffc0",
"mesh_ink": "#4c4c00",
"mesh_soft": "#bbbbb1",
"on_accent": "#ffffff",
"origin_plane": "#ffff005e",
"origin_plane_edge": "#808000c8",
@@ -146,10 +146,10 @@
"preview_new": "#ffff00",
"preview_sketch": "#008000",
"profile_fill": "#ffff0033",
"render_accent": "#000080",
"render_fill": "#800080",
"render_ink": "#800080",
"render_soft": "#c0c0c0",
"render_accent": "#590905",
"render_fill": "#800000",
"render_ink": "#800000",
"render_soft": "#bbb1b1",
"rubber_band": "#000080",
"section_cap": "#808000",
"sel_edge": "#0000ff",
@@ -161,25 +161,25 @@
"selected_bg": "#000080",
"selected_ink": "#ffffff",
"sheet_fill": "#008080",
"sheet_ink": "#000080",
"sheet_soft": "#c0c0c0",
"sheet_ink": "#005151",
"sheet_soft": "#b1bbbb",
"sketch": "#000080",
"sketch_accent": "#008000",
"sketch_centerline": "#808000",
"sketch_construction": "#808000",
"sketch_fixed": "#000000",
"sketch_ink": "#008000",
"sketch_ink": "#005400",
"sketch_locked": "#008000",
"sketch_lost": "#800080",
"sketch_point": "#000000",
"sketch_point_free": "#000080",
"sketch_projected": "#800080",
"sketch_soft": "#c0dcc0",
"subheading_bg": "#b0b0b0",
"surface_accent": "#000080",
"surface_fill": "#808000",
"surface_ink": "#808000",
"surface_soft": "#ffffc0",
"sketch_soft": "#b1bbb1",
"subheading_bg": "#c0c0c0",
"surface_accent": "#804000",
"surface_fill": "#804000",
"surface_ink": "#713800",
"surface_soft": "#bbb6b1",
"tab_on_fill_dark": "#000000",
"text": "#000000",
"text_dim": "#808080",
@@ -198,5 +198,85 @@
"warning": "#ffff00"
},
"format": "solidcraft-theme/1",
"name": "SolidCraft 95"
"name": "SolidCraft 95",
"radii": {
"radius_sm": 3,
"radius_md": 3,
"radius_lg": 4,
"radius_xl": 4,
"control_radius": 3,
"sketch_mode_radius": 3
},
"icon_palette": {
"ink": "#000000",
"line": "#000000",
"passive-1": "#ffffff",
"passive-2": "#c0c0c0",
"passive-3": "#808080",
"guide": "#696969",
"solid": [
"#c0c0ff",
"#0000ff",
"#000080"
],
"surface": [
"#e0c0a0",
"#b07040",
"#804000"
],
"mesh": [
"#ffffc0",
"#c0c000",
"#808000"
],
"form": [
"#ffc0ff",
"#c000c0",
"#800080"
],
"sketch": [
"#c0ffc0",
"#00c000",
"#008000"
],
"constraint": [
"#ffc0c0",
"#ff0000",
"#800000"
],
"construction": [
"#ffffc0",
"#c0c000",
"#808000"
]
},
"borders": {
"primary": {
"width": 1,
"color": "#404040"
},
"secondary": {
"width": 1,
"color": "#808080"
},
"tertiary": {
"width": 1,
"color": "#a0a0a0"
},
"container": {
"width": 1,
"color": "#808080"
},
"control": {
"width": 1,
"color": "#808080"
},
"bevel": {
"width": 0.5,
"highlight": "#ffffff",
"light": "#dfdfdf",
"shadow": "#808080",
"dark_shadow": "#000000"
}
}
}
+69 -26
View File
@@ -30,7 +30,7 @@
"box_crossing": "#9ece6a",
"box_window": "#7aa2f7",
"chip": "#7aa2f7",
"construction_geom": "#e0af68",
"construction_geom": "#e7894e",
"construction_plane": "#e0af6822",
"continuity": [
"#9ece6a",
@@ -54,25 +54,25 @@
"dimension_driven": "#9aa5ce",
"error": "#f7768e",
"field": "#16161e",
"form_accent": "#7aa2f7",
"form_accent": "#b190ec",
"form_dim": "#9aa5ce",
"form_error": "#f7768e",
"form_error_fill": "#462d3b",
"form_fill": "#4775ce",
"form_fill": "#c7aefa",
"form_ink": "#c0caf5",
"form_primary": "#7aa2f7",
"form_soft": "#253452",
"form_soft": "#2d2a3f",
"form_success": "#9ece6a",
"form_success_fill": "#303932",
"form_tab_ink": "#c0caf5",
"form_tab_ink": "#bb9af7",
"gizmo": [
"#f7768e",
"#9ece6a",
"#4775ce"
],
"glyph_bg": "#24283b",
"glyph_edge": "#f7768e",
"glyph_text": "#f7768e",
"glyph_edge": "#f6758d",
"glyph_text": "#f6758d",
"grid": "#262938",
"grid_major": "#363a4d",
"heading_bg": "#0d0e13",
@@ -129,10 +129,10 @@
"#4f6089"
],
"manipulator": "#7aa2f7",
"mesh_accent": "#7aa2f7",
"mesh_fill": "#4775ce",
"mesh_ink": "#c0caf5",
"mesh_soft": "#253452",
"mesh_accent": "#cb9b54",
"mesh_fill": "#e5b46d",
"mesh_ink": "#e0af68",
"mesh_soft": "#322d2e",
"on_accent": "#06121b",
"origin_plane": "#e0af6828",
"origin_plane_edge": "#e0af6888",
@@ -146,10 +146,10 @@
"preview_new": "#e0af68",
"preview_sketch": "#9ece6a",
"profile_fill": "#4775ce22",
"render_accent": "#7aa2f7",
"render_fill": "#4775ce",
"render_ink": "#c0caf5",
"render_soft": "#253452",
"render_accent": "#f6758d",
"render_fill": "#fe9dac",
"render_ink": "#f7768e",
"render_soft": "#352632",
"rubber_band": "#7aa2f7",
"section_cap": "#e0af68",
"sel_edge": "#4775ce",
@@ -160,26 +160,26 @@
"sel_vertex": "#4775ce",
"selected_bg": "#304e7e",
"selected_ink": "#c0caf5",
"sheet_fill": "#4775ce",
"sheet_ink": "#c0caf5",
"sheet_soft": "#253452",
"sheet_fill": "#76c8f8",
"sheet_ink": "#7dcfff",
"sheet_soft": "#263140",
"sketch": "#4775ce",
"sketch_accent": "#7aa2f7",
"sketch_accent": "#87b552",
"sketch_centerline": "#e0af68",
"sketch_construction": "#e0af68",
"sketch_fixed": "#c0caf5",
"sketch_ink": "#c0caf5",
"sketch_ink": "#9ece6a",
"sketch_locked": "#9ece6a",
"sketch_lost": "#f7768e",
"sketch_point": "#c0caf5",
"sketch_point_free": "#4775ce",
"sketch_projected": "#bb9af7",
"sketch_soft": "#253452",
"sketch_soft": "#2a302e",
"subheading_bg": "#14141c",
"surface_accent": "#7aa2f7",
"surface_fill": "#4775ce",
"surface_ink": "#c0caf5",
"surface_soft": "#253452",
"surface_accent": "#e7894e",
"surface_fill": "#fda572",
"surface_ink": "#ff9e64",
"surface_soft": "#352b2d",
"tab_on_fill_dark": "#16161e",
"text": "#c0caf5",
"text_dim": "#9aa5ce",
@@ -198,5 +198,48 @@
"warning": "#e0af68"
},
"format": "solidcraft-theme/1",
"name": "Tokyo Night"
"name": "Tokyo Night",
"icon_palette": {
"ink": "#16161e",
"line": "#c0caf5",
"passive-1": "#bcc0cf",
"passive-2": "#9195a3",
"passive-3": "#676b79",
"guide": "#9aa5ce",
"solid": [
"#cadbfd",
"#9ebdfc",
"#7aa2f7"
],
"surface": [
"#fcd0b8",
"#fda572",
"#e7894e"
],
"mesh": [
"#fcd39b",
"#e5b46d",
"#cb9b54"
],
"form": [
"#e0d3fc",
"#c7aefa",
"#b190ec"
],
"sketch": [
"#bced88",
"#9fcf6b",
"#87b552"
],
"constraint": [
"#fdccd2",
"#fe9dac",
"#f6758d"
],
"construction": [
"#fcd0b8",
"#fda572",
"#e7894e"
]
}
}
+37 -29
View File
@@ -77,13 +77,7 @@ pub fn clone_expression(source: &str, parameters: &BTreeMap<String, String>) ->
result
}
fn remap_geo(
g: &mut crate::construct::GeoRef,
ids: &BTreeMap<u64, u64>,
names: &BTreeMap<String, String>,
bodies: &BTreeMap<String, String>,
depth: usize,
) -> crate::Result<()> {
fn remap_geo(g: &mut crate::construct::GeoRef, ids: &BTreeMap<u64, u64>, bodies: &BTreeMap<String, String>, depth: usize) -> crate::Result<()> {
use crate::construct::GeoRef;
if depth > 64 {
return Err(crate::DocError::Invalid("clone plane reference depth exceeded".into()));
@@ -100,28 +94,18 @@ fn remap_geo(
*n = remap_topology(n, ids, bodies);
}
}
GeoRef::ConstructPoint { name } | GeoRef::Axis { name } => mapped_name(name, names),
GeoRef::Plane { plane } => remap_plane(plane, ids, names, bodies, depth + 1)?,
GeoRef::Plane { plane } => remap_plane(plane, ids, bodies, depth + 1)?,
_ => {}
}
Ok(())
}
fn remap_plane(
p: &mut PlaneRef,
ids: &BTreeMap<u64, u64>,
names: &BTreeMap<String, String>,
bodies: &BTreeMap<String, String>,
depth: usize,
) -> crate::Result<()> {
fn remap_plane(p: &mut PlaneRef, ids: &BTreeMap<u64, u64>, bodies: &BTreeMap<String, String>, depth: usize) -> crate::Result<()> {
if depth > 64 {
return Err(crate::DocError::Invalid("clone plane reference depth exceeded".into()));
}
match p {
PlaneRef::Offset { base, .. } | PlaneRef::AtAngle { base, .. } | PlaneRef::Flipped { base, .. } => {
remap_plane(base, ids, names, bodies, depth + 1)?
}
PlaneRef::Construction { name } => mapped_name(&mut name.0, names),
PlaneRef::Offset { base, .. } | PlaneRef::AtAngle { base, .. } | PlaneRef::Flipped { base, .. } => remap_plane(base, ids, bodies, depth + 1)?,
PlaneRef::Face { name, anchor, .. } => {
if let Some(name) = name {
*name = remap_topology(name, ids, bodies);
@@ -132,14 +116,14 @@ fn remap_plane(
}
_ => {
for r in p.refs_mut() {
remap_geo(r, ids, names, bodies, depth + 1)?;
remap_geo(r, ids, bodies, depth + 1)?;
}
}
}
Ok(())
}
fn remap_link(
pub(crate) fn remap_link(
source: &mut solidcraft_sketch::LinkSource,
ids: &BTreeMap<u64, u64>,
names: &BTreeMap<String, String>,
@@ -214,6 +198,8 @@ impl crate::Feature {
}
_ => {}
}
// Feature names are remapped once here; the geometry pass below handles only
// sketch ids and topology, so a copy whose new name is also an old key is not remapped twice.
self.kind.remap_refs(ids, names);
for n in &mut self.body_names {
mapped_name(n, bodies);
@@ -236,7 +222,7 @@ impl crate::Feature {
self.kind.remap_bodies(bodies);
match &mut self.kind {
K::Sketch { plane, sketch } => {
remap_plane(plane, ids, names, bodies, 0)?;
remap_plane(plane, ids, bodies, 0)?;
for c in &mut sketch.constraints {
if let Some(n) = &mut c.param {
mapped_name(n, parameters);
@@ -256,18 +242,18 @@ impl crate::Feature {
| K::Split { plane, .. }
| K::SplitFace { plane, .. }
| K::Mirror { plane, .. }
| K::SurfaceTrim { plane, .. } => remap_plane(plane, ids, names, bodies, 0)?,
K::Draft { neutral, .. } => remap_plane(neutral, ids, names, bodies, 0)?,
K::ReplaceFace { target, .. } => remap_plane(target, ids, names, bodies, 0)?,
K::SurfaceExtend { up_to: Some(crate::ExtendTo::Plane(plane)), .. } => remap_plane(plane, ids, names, bodies, 0)?,
| K::SurfaceTrim { plane, .. } => remap_plane(plane, ids, bodies, 0)?,
K::Draft { neutral, .. } => remap_plane(neutral, ids, bodies, 0)?,
K::ReplaceFace { target, .. } => remap_plane(target, ids, bodies, 0)?,
K::SurfaceExtend { up_to: Some(crate::ExtendTo::Plane(plane)), .. } => remap_plane(plane, ids, bodies, 0)?,
K::ConstructionAxis { def } => {
for r in def.refs_mut() {
remap_geo(r, ids, names, bodies, 0)?;
remap_geo(r, ids, bodies, 0)?;
}
}
K::ConstructionPoint { def } => {
for r in def.refs_mut() {
remap_geo(r, ids, names, bodies, 0)?;
remap_geo(r, ids, bodies, 0)?;
}
}
_ => {}
@@ -324,6 +310,28 @@ fn checked_link(source: &solidcraft_sketch::LinkSource, depth: usize) -> crate::
#[cfg(test)]
mod clone_tests {
use super::*;
#[test]
fn construction_feature_names_are_remapped_only_once_when_copied() {
use serde_json::json;
let names = BTreeMap::from([("Old".into(), "New".into()), ("New".into(), "Wrong".into())]);
let origin = json!({"type": "plane", "plane": {"type": "construction", "name": "Old"}});
for kind in [
json!({"type": "construction_axis", "def": {"type": "two_points", "a": {"type": "construct_point", "name": "Old"}, "b": {"type": "point", "p": [1, 2, 3]}}}),
json!({"type": "construction_point", "def": {"type": "edge_and_plane", "edge": {"type": "axis", "name": "Old"}, "plane": origin}}),
json!({"type": "construction_plane", "plane": {"type": "perpendicular", "plane": origin, "line": {"type": "axis", "name": "Old"}}}),
] {
let mut value = kind;
value["id"] = json!(1);
value["name"] = json!("Copy");
let mut feature: crate::Feature = serde_json::from_value(value).unwrap();
let before = serde_json::to_string(&feature).unwrap();
feature.remap_clone(&BTreeMap::new(), &names, &BTreeMap::new(), &BTreeMap::new()).unwrap();
assert_eq!(serde_json::to_string(&feature).unwrap(), before.replace("\"Old\"", "\"New\""));
}
}
#[test]
fn imported_names_and_topology_tokens_have_separate_identity() {
let ids = BTreeMap::from([(1, 2), (10, 20)]);
+92
View File
@@ -0,0 +1,92 @@
//! Removing a component tree: its components, the features made in them, their placements, and
//! every assembly record that refers to them.
use std::collections::BTreeSet;
use crate::{DocError, Document, FeatureKind, Result};
/// What [`Document::remove_component_tree`] removed.
#[derive(Clone, Debug, Default, PartialEq, Eq)]
pub struct RemovedTree {
/// The removed components: the root and everything inside it.
pub components: Vec<u64>,
/// The features that were inside them, in timeline order.
pub features: Vec<u64>,
/// Every deleted feature: `features`, then features elsewhere built on their sketches.
pub deleted: Vec<u64>,
/// The removed occurrences: placements of the components and placements inside them.
pub occurrences: Vec<u64>,
/// The removed joints: those with either side on a removed occurrence.
pub joints: Vec<u64>,
}
impl Document {
/// Did feature `f` make the component tree it sits at the top of: an inserted file
/// (`Feature::inserted`) or a linked design's bodies? Deleting it then removes that tree.
pub fn feature_owns_component(&self, f: &crate::Feature) -> bool {
f.component != 0
&& matches!(f.kind, FeatureKind::Import { .. } | FeatureKind::MeshImport { .. })
&& (f.inserted || self.links.get(&f.component).is_some_and(|link| link.feature == f.id))
}
/// Remove component `root` with every component inside it, the features made in them, their
/// occurrences, the joints, motion links, joint origins, contact sets, motion keys and
/// exploded moves that refer to those occurrences, the bodies' component assignments, and the
/// components' standard-part, link, appearance and configuration records.
///
/// Refused (nothing changes) for the design itself, an unknown component, or a tree that
/// supplies a body transfer recorded outside it.
pub fn remove_component_tree(&mut self, root: u64) -> Result<RemovedTree> {
if root == 0 {
return Err(DocError::Invalid("the design itself can't be deleted".into()));
}
if !self.components.iter().any(|c| c.id == root) {
return Err(DocError::Unknown(format!("component {root}")));
}
let components: Vec<u64> = self.components.iter().filter(|c| self.component_within(c.id, root)).map(|c| c.id).collect();
let inside: BTreeSet<u64> = components.iter().copied().collect();
if self.features.iter().any(|feature| {
!inside.contains(&feature.component)
&& matches!(&feature.kind, FeatureKind::BodyTransfer { from, to, .. } if inside.contains(from) || inside.contains(to))
}) {
return Err(DocError::Invalid(
"component supplies a recorded body transfer outside this subtree; remove that transfer history before deleting its source".into(),
));
}
let features: Vec<u64> = self.features.iter().filter(|f| inside.contains(&f.component)).map(|f| f.id).collect();
let deleted = if features.is_empty() { Vec::new() } else { self.delete_features(&features)? };
let occurrences: BTreeSet<u64> =
self.occurrences.iter().filter(|o| inside.contains(&o.component) || inside.contains(&o.parent)).map(|o| o.id).collect();
let joints: BTreeSet<u64> = self
.assembly
.joints
.iter()
.filter(|j| occurrences.contains(&j.a.occurrence) || occurrences.contains(&j.b.occurrence))
.map(|j| j.id)
.collect();
let assembly = &mut self.assembly;
assembly.joints.retain(|j| !joints.contains(&j.id));
assembly.links.retain(|l| !joints.contains(&l.a) && !joints.contains(&l.b));
assembly.origins.retain(|o| !occurrences.contains(&o.origin.occurrence));
for set in &mut assembly.contact_sets {
set.occurrences.retain(|o| !occurrences.contains(o));
}
for study in &mut assembly.studies {
study.keys.retain(|k| !joints.contains(&k.joint));
}
for view in &mut assembly.exploded {
view.moves.retain(|(o, _)| !occurrences.contains(o));
}
self.occurrences.retain(|o| !occurrences.contains(&o.id));
let bodies: BTreeSet<String> = self.body_components.iter().filter(|(_, c)| inside.contains(*c)).map(|(name, _)| name.clone()).collect();
self.body_components.retain(|_, c| !inside.contains(c));
self.body_offsets.retain(|name, _| !bodies.contains(name));
self.components.retain(|c| !inside.contains(&c.id));
self.parts.retain(|c, _| !inside.contains(c));
self.links.retain(|c, _| !inside.contains(c));
self.remove_configuration_components(&components);
Ok(RemovedTree { components, features, deleted, occurrences: occurrences.into_iter().collect(), joints: joints.into_iter().collect() })
}
}
+2 -2
View File
@@ -48,9 +48,9 @@ pub enum GeoRef {
/// World X, Y or Z axis.
World { axis: String },
/// A construction axis feature, by name.
Axis { name: String },
Axis { name: crate::FeatureName },
/// A construction point feature, by name.
ConstructPoint { name: String },
ConstructPoint { name: crate::FeatureName },
/// A sketch point (by sketch feature id and point id).
SketchPoint { sketch: u64, point: String },
/// A sketch curve (by sketch feature id and curve id).
+96 -10
View File
@@ -724,6 +724,11 @@ pub enum FeatureKind {
/// To Object: drill down to the face (or point) here instead of `depth`.
#[serde(default, skip_serializing_if = "Option::is_none")]
to: Option<FacePick>,
/// Up to two straight edges of the face (#37): the hole's centre sits at each one's
/// distance from its edge, measured in the face's plane, and follows the edges when the
/// part changes. `position` keeps where it was placed.
#[serde(default, skip_serializing_if = "Vec::is_empty")]
references: Vec<HoleReference>,
},
/// A thread on a cylindrical face. Cosmetic by default (no geometry change; drawn and
/// exported as an annotation); `modeled` cuts the real helical ISO profile into the face.
@@ -898,6 +903,34 @@ pub enum FeatureKind {
#[serde(default, skip_serializing_if = "Vec::is_empty")]
targets: Vec<BodyName>,
},
/// Structural members (#4003): one body per straight line of a frame sketch (2D sketch lines
/// and 3D sketch lines), its cross-section the profile, square to the line from end to end.
FrameMember {
path_sketch: SketchId,
/// The lines, by curve id; none: every straight line drawn in the sketch (not
/// construction, not projected or otherwise linked, not of no length).
#[serde(default, skip_serializing_if = "Vec::is_empty")]
lines: Vec<String>,
profile: crate::frame::MemberProfile,
/// The profile point that sits on the line.
#[serde(default, skip_serializing_if = "crate::frame::Anchor::is_origin")]
anchor: crate::frame::Anchor,
/// How far the profile turns about the line (see `frame::member_axes`).
#[serde(default, skip_serializing_if = "Option::is_none")]
#[walk(angle = "Rotation")]
angle: Option<Expr>,
/// The profile mirrored across its y axis (before it turns).
#[serde(default, skip_serializing_if = "std::ops::Not::not")]
mirror: bool,
/// What members without a name of their own are named after (`Rail`, `Rail (2)`...); none:
/// the profile's description (`Rect Tube 40x40x3`) or the profile sketch's name.
#[serde(default, skip_serializing_if = "Option::is_none")]
body_name: Option<String>,
/// Each member's body name, by its line's id, so a member keeps its name when other lines
/// come and go (`frame::member_names`).
#[serde(default, skip_serializing_if = "std::collections::BTreeMap::is_empty")]
names: std::collections::BTreeMap<String, String>,
},
/// Raise or sink profiles on a planar face, or wrap them on a selected cylindrical wall.
Emboss {
sketch: SketchId,
@@ -1991,6 +2024,15 @@ pub enum HoleKind {
},
}
/// A Single hole's reference edge (#37): a point on a straight edge of the hole's face, and the
/// distance of the hole's centre from that edge's line, in the face's plane.
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, solidcraft_derive::Walk)]
pub struct HoleReference {
pub edge: Position,
#[walk(length = "Reference distance")]
pub distance: Expr,
}
/// Pattern layouts.
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, solidcraft_derive::Walk)]
#[serde(tag = "type", rename_all = "snake_case")]
@@ -2176,6 +2218,7 @@ impl FeatureKind {
FeatureKind::SurfaceOffset { .. } => "OffsetSurfaceFeature",
FeatureKind::BoundingSolid { .. } => "BoundingSolidFeature",
FeatureKind::Pipe { .. } => "PipeFeature",
FeatureKind::FrameMember { .. } => "FrameMemberFeature",
FeatureKind::Emboss { .. } => "EmbossFeature",
FeatureKind::Boss { .. } => "BossFeature",
FeatureKind::Lip { groove: false, .. } => "LipFeature",
@@ -2256,6 +2299,7 @@ impl FeatureKind {
FeatureKind::SurfaceOffset { .. } => "OffsetSurface",
FeatureKind::BoundingSolid { .. } => "BoundingSolid",
FeatureKind::Pipe { .. } => "Pipe",
FeatureKind::FrameMember { .. } => "Member",
FeatureKind::Emboss { .. } => "Emboss",
FeatureKind::Boss { .. } => "Boss",
FeatureKind::Lip { groove: false, .. } => "Lip",
@@ -2345,6 +2389,12 @@ pub struct Feature {
/// mean that numbering.
#[serde(default, skip_serializing_if = "std::ops::Not::not")]
pub kernel_piece_order: bool,
/// Made by inserting a file (STEP, IGES or a mesh file) into the design: the feature built
/// the component tree its component is the top of, and deleting it removes that tree
/// ([`Document::remove_component_tree`]). Not set on other imported bodies, such as the
/// independent base of a copied component.
#[serde(default, skip_serializing_if = "std::ops::Not::not")]
pub inserted: bool,
#[serde(flatten)]
pub kind: FeatureKind,
}
@@ -2353,7 +2403,7 @@ fn inside_str() -> String {
"inside".into()
}
fn all_profiles() -> ProfileSel {
pub(crate) fn all_profiles() -> ProfileSel {
ProfileSel::All
}
@@ -2982,7 +3032,16 @@ impl Document {
}
};
self.components.push(Component { id, name, parent, ..Default::default() });
self.add_occurrence(id, parent, crate::IDENTITY)?;
let occurrence = self.add_occurrence(id, parent, crate::IDENTITY)?;
// The design's first part is grounded, so joints and drags have something fixed to work
// from (#2804); later parts and copies start free. Only creation decides this: opening a
// design never grounds anything.
if parent == 0
&& !self.occurrences.iter().any(|o| o.parent == 0 && o.id != occurrence)
&& let Some(o) = self.occurrences.iter_mut().find(|o| o.id == occurrence)
{
o.grounded = true;
}
Ok(id)
}
@@ -3100,6 +3159,7 @@ impl Document {
participants: Vec::new(),
shell_piece_order: false,
kernel_piece_order: false,
inserted: false,
kind,
};
self.place_feature(f);
@@ -3193,11 +3253,39 @@ impl Document {
self.name_feature_inputs(id);
}
/// Delete a feature (and, for a sketch, the features that use it).
/// Delete a feature (and, for a sketch, the features that use it). The feature of an inserted
/// file or a linked design takes the component tree it made with it: everything in that tree
/// and every assembly record that refers to it ([`Document::remove_component_tree`]). Other
/// imported bodies (a copied component's independent base) go alone.
pub fn delete_feature(&mut self, id: u64) -> Result<Vec<u64>> {
let idx = self.feature_index(id).ok_or_else(|| DocError::Unknown(format!("feature {id}")))?;
let mut gone = vec![id];
gone.extend(self.features.iter().filter(|f| f.kind.input_sketches().contains(&id)).map(|f| f.id));
let owned = self.feature(id).filter(|f| self.feature_owns_component(f)).map(|f| f.component);
match owned {
Some(root) => Ok(self.remove_component_tree(root)?.deleted),
None => self.delete_features(&[id]),
}
}
/// Delete features `ids` and the features whose sketches they are. Returns every deleted id,
/// `ids` first.
pub(crate) fn delete_features(&mut self, ids: &[u64]) -> Result<Vec<u64>> {
let mut gone: Vec<u64> = Vec::with_capacity(ids.len());
for id in ids {
if self.feature_index(*id).is_none() {
return Err(DocError::Unknown(format!("feature {id}")));
}
if !gone.contains(id) {
gone.push(*id);
}
}
let dependants: Vec<u64> = self
.features
.iter()
.filter(|f| !gone.contains(&f.id) && f.kind.input_sketches().iter().any(|sketch| gone.contains(sketch)))
.map(|f| f.id)
.collect();
gone.extend(dependants);
// How many of them come before the rollback marker: it keeps its place among the rest.
let before_marker = self.marker.map(|m| self.features.iter().take(m).filter(|f| gone.contains(&f.id)).count());
let gone_params: Vec<String> = self.features.iter().filter(|f| gone.contains(&f.id)).flat_map(|f| f.param_names.clone()).collect();
self.configs
.rules
@@ -3229,10 +3317,8 @@ impl Document {
r.cells.retain(|_| k.next().copied().unwrap_or(true));
}
}
if let Some(m) = self.marker
&& m > idx
{
self.marker = Some(m.saturating_sub(gone.len()).max(idx));
if let (Some(m), Some(n)) = (self.marker, before_marker) {
self.marker = Some(m.saturating_sub(n));
}
// Drop model parameters nobody references any more.
self.prune_model_params();
+162 -13
View File
@@ -716,9 +716,11 @@ pub struct ModelState {
/// Shared between states: a feature that does not change a sketch keeps it as it was.
pub sketches: Vec<Arc<SolvedSketch>>,
pub body_counter: usize,
/// Body names the design used and must not use again (a name a `body.rename` freed, #4957).
/// The counter starts over at every evaluation, so without these a design that is evaluated
/// again after a rename hands the freed name to the next body.
/// Body names the design used and must not use again (a name a `body.rename` freed, #4957),
/// and the names stored on the suppressed features so far, so a body made while a feature is
/// suppressed keeps its name once it is back (#4302). The counter starts over at every
/// evaluation, so without these a design that is evaluated again hands such a name to the next
/// body.
pub reserved_body_names: std::collections::BTreeSet<String>,
/// Sheet metal bodies (by body name) and their flat patterns.
pub sheets: Vec<crate::sheet::SheetBody>,
@@ -1476,6 +1478,7 @@ fn placement_digest(doc: &Document, f: &Feature, st: Option<&ModelState>) -> u64
FeatureKind::Sweep { path_sketch, .. }
| FeatureKind::SurfaceSweep { path_sketch, .. }
| FeatureKind::Pipe { path_sketch, .. }
| FeatureKind::FrameMember { path_sketch, .. }
| FeatureKind::Pattern { pattern: crate::PatternKind::Path { path_sketch, .. }, .. } => Some(*path_sketch),
_ => None,
};
@@ -1487,7 +1490,9 @@ fn placement_digest(doc: &Document, f: &Feature, st: Option<&ModelState>) -> u64
| FeatureKind::SurfaceLoft { rails, .. } => rails,
_ => &[],
};
if path.as_ref().is_some_and(wired) || rails.iter().any(|r| wired(&r.sketch)) {
// Members map their frame sketch into their own component's frame, 2D lines included.
let member = matches!(f.kind, FeatureKind::FrameMember { .. });
if path.as_ref().is_some_and(|p| member || wired(p)) || rails.iter().any(|r| wired(&r.sketch)) {
if let Some(path) = path {
reads.sketch(doc, path.0);
}
@@ -1775,6 +1780,8 @@ impl Model {
let mut prev_fp = 0u64;
// The names the design must not use again travel with the state (#4957).
let mut state = std::sync::Arc::new(ModelState { reserved_body_names: doc.reserved_body_names.clone(), ..(*self.empty).clone() });
// Those and the names stored on the suppressed features so far (#4302).
let mut reserved = doc.reserved_body_names.clone();
let mut out: Vec<FeatureResult> = Vec::with_capacity(doc.features.len());
let mut reuse = !self.no_cache;
let mut recomputed = 0;
@@ -1801,6 +1808,9 @@ impl Model {
// A state the saved model did not keep is evaluated again from the one before it; the
// results after it that the model did keep still stand (#3220).
let unkept = reuse && self.results.get(i).filter(current).is_some_and(|old| old.unkept);
if f.suppressed && !rolled_back {
reserved.extend(f.body_names.iter().map(|n| n.trim()).filter(|n| !n.is_empty()).map(str::to_string));
}
if reuse
&& !unkept
&& let Some(old) = self.results.get(i).filter(current)
@@ -1828,6 +1838,11 @@ impl Model {
});
continue;
}
// Taken from the design each time: a state taken from an earlier evaluation may have
// been made before a rename freed a name or a feature was suppressed.
if state.reserved_body_names != reserved {
Arc::make_mut(&mut state).reserved_body_names.clone_from(&reserved);
}
// The same feature on the same inputs: its earlier result.
let key = cache_key(f, fp, fingerprint(0, f, &vals, false, &self.step_digests) ^ placement_digest(doc, f, Some(&state)), ctx, &state);
let kept = self.kept.0.as_ref().filter(|_| !self.no_cache);
@@ -1871,9 +1886,8 @@ impl Model {
recomputed += 1;
let t0 = now();
let mut next = (*state).clone();
// The names the design must not use again travel with the state (#4957): a state
// taken from an earlier evaluation may have been made before a rename freed one.
next.reserved_body_names = doc.reserved_body_names.clone();
// The names the design must not use again travel with the state (#4957, #4302).
next.reserved_body_names.clone_from(&reserved);
for b in &mut next.bodies {
b.made = crate::lineage::Made::Before;
}
@@ -1951,6 +1965,7 @@ impl Model {
append_warning(&mut warning, note);
}
track_altered_sheets(&state, &mut next, f, &mut warning);
note_join_apart(&state, &next, f, &mut warning);
} else {
boolean_diagnostics = Default::default();
}
@@ -2023,23 +2038,36 @@ impl Model {
/// Follow a rename of body `old` to `new` without evaluating anything (#3044): `doc` is the
/// design after the rename, which changed nothing but names, so every result keeps its
/// geometry and meshes and only the body's name (and the names worked out from it) changes.
/// Later features that change the body (a pattern, a chamfer, a join) keep their results
/// too (#2467): a feature's geometry doesn't depend on its bodies' names.
/// False, leaving the model as it was, when the rename can't be followed that way and the
/// design must be evaluated: the model isn't the design's, the body is changed by a later
/// feature, or is sheet metal, threaded, or named in a later feature's face references.
/// design must be evaluated: the model isn't the design's, a body of that name comes and goes
/// or isn't the same body throughout, a later body's name is worked out from it (`X (2)`), a
/// message quotes it, or it is sheet metal, threaded, or named in a later feature's face
/// references.
pub fn rename_body(&mut self, doc: &Document, old: &str, new: &str) -> bool {
if self.results.len() != doc.features.len() || self.results.iter().zip(&doc.features).any(|(r, f)| r.id != f.id || r.stale) {
return false;
}
let Some(at) = self.results.iter().position(|r| r.state.body(old).is_some()) else { return false };
let Some(made) = self.results.get(at).and_then(|r| r.state.body(old)).map(|b| Arc::as_ptr(&b.mesh)) else { return false };
// Untouched from the feature that made it to the end, and nothing else holds its name.
let untouched = self.results.iter().skip(at).all(|r| r.state.body(old).is_some_and(|b| Arc::as_ptr(&b.mesh) == made));
let Some(feature) = self.results.get(at).and_then(|r| r.state.body(old)).map(|b| b.feature) else { return false };
// One body from the feature that made it until it is gone (joined into another), and no
// other body's name comes from its name.
let held: Vec<bool> = self.results.iter().skip(at).map(|r| r.state.body(old).is_some()).collect();
let one_run = held.iter().skip_while(|h| **h).all(|h| !*h);
let derived = format!("{old} (");
let same_body = self
.results
.iter()
.skip(at)
.all(|r| r.state.bodies.iter().all(|b| if b.name == old { b.feature == feature } else { !b.name.starts_with(&derived) }));
let quoted = self.results.iter().skip(at).any(|r| [&r.error, &r.warning].into_iter().flatten().any(|m| m.contains(old)));
let named_elsewhere = self
.results
.iter()
.any(|r| r.state.body(new).is_some() || r.state.sheets.iter().any(|x| x.body == old) || r.state.threads.iter().any(|t| t.body == old));
let faces_named = doc.features.iter().skip(at + 1).any(|f| f.face_names.iter().any(|n| n.contains(old)));
if !untouched || named_elsewhere || faces_named {
if !one_run || !same_body || quoted || named_elsewhere || faces_named {
return false;
}
// States shared between results stay shared.
@@ -2316,6 +2344,59 @@ fn track_altered_sheets(before: &ModelState, after: &mut ModelState, f: &Feature
}
}
/// A Join whose material meets none of its targets still joins it, to the first target as a
/// separate piece (see `apply_traced`): a valid body in several pieces, but rarely what was meant
/// when Join was left on by mistake. Says so when a feature's Join leaves the bodies it changed
/// in more pieces than they had (#4434). Combine joins the bodies it is given, apart or not.
fn note_join_apart(before: &ModelState, after: &ModelState, f: &Feature, warning: &mut Option<String>) {
let operation = match &f.kind {
FeatureKind::Extrude { operation, .. }
| FeatureKind::Revolve { operation, .. }
| FeatureKind::Box { operation, .. }
| FeatureKind::Cylinder { operation, .. }
| FeatureKind::Sphere { operation, .. }
| FeatureKind::Torus { operation, .. }
| FeatureKind::Loft { operation, .. }
| FeatureKind::Sweep { operation, .. }
| FeatureKind::Pipe { operation, .. }
| FeatureKind::Coil { operation, .. }
| FeatureKind::BoundaryFill { operation, .. }
| FeatureKind::Thicken { operation, .. }
| FeatureKind::SurfaceNetwork { operation, .. } => *operation,
_ => return,
};
if operation != Operation::Join {
return;
}
let pieces = |b: &Body| b.lumps().map_or(1, |l| l.len());
// Pieces of the bodies the join changed or absorbed before it, and of those it kept after.
let (mut had, mut have) = (0usize, 0usize);
let mut grown: Vec<(&str, usize)> = Vec::new();
for was in &before.bodies {
match after.body(&was.name) {
Some(now) if now.body.same_shape(&was.body) => {}
Some(now) => {
let (old, new) = (pieces(&was.body), pieces(&now.body));
had += old;
have += new;
if new > old {
grown.push((now.name.as_str(), new));
}
}
None => had += pieces(&was.body),
}
}
if have <= had {
return;
}
for (name, n) in grown {
append_warning(
warning,
format!("the joined piece doesn't touch `{name}`, so `{name}` is now in {n} separate pieces (New Body makes it a body of its own)"),
);
}
}
/// Add tool bodies to the model according to the operation.
fn sheet_boolean_unchanged(body: &Body, tools: &[Body], op: Operation) -> Result<()> {
if sheet_boolean_changes(body, tools, op)? {
@@ -3570,6 +3651,7 @@ fn hole_spots(vals: &BTreeMap<String, Value>, st: &ModelState, f: &Feature) -> R
_ => {
let dir = direction.normalized().ok_or_else(|| DocError::Invalid("hole direction".into()))?;
let at = hole_on_surface(st, single_hole_position(vals, st, position, at, points)?, dir, &[]);
let at = with_references(vals, st, f, at, dir)?;
let dir = hole_dir_into_face(st, at, dir);
return Ok((vec![hole_on_surface(st, at, dir, &[])], dir));
}
@@ -3617,6 +3699,7 @@ fn hole_spots_raw(vals: &BTreeMap<String, Value>, st: &ModelState, f: &Feature)
_ => {
let dir = direction.normalized().ok_or_else(|| DocError::Invalid("hole direction".into()))?;
let p = single_hole_position(vals, st, position, at, points)?;
let p = if hole_references(f).is_empty() { p } else { with_references(vals, st, f, hole_on_surface(st, p, dir, &[]), dir)? };
Ok((vec![p], hole_dir_into_face(st, hole_on_surface(st, p, dir, &[]), dir)))
}
}
@@ -3638,6 +3721,35 @@ fn single_hole_position(
Ok(ss.plane.to_world(p.pos))
}
/// A hole's reference edges (#37); none for any other feature.
fn hole_references(f: &Feature) -> &[crate::HoleReference] {
match &f.kind {
FeatureKind::Hole { references, .. } => references,
_ => &[],
}
}
/// Where a Single hole with reference edges (#37) is drilled: at its distances from the edges'
/// lines, in the plane of the face at `at` (on the surface), the edges found by their names, else
/// their points. A hole without reference edges stays at `at`.
fn with_references(vals: &BTreeMap<String, Value>, st: &ModelState, f: &Feature, at: Vec3, dir: Vec3) -> Result<Vec3> {
let references = hole_references(f);
if references.is_empty() {
return Ok(at);
}
let mut distances = Vec::with_capacity(references.len());
for r in references {
distances.push(Document::eval_in(vals, &r.distance, Kind::Length)?);
}
let edges: Vec<(Vec3, Option<&str>)> = references.iter().enumerate().map(|(i, r)| (r.edge.0, f.edge_names.get(i).map(String::as_str))).collect();
let frame = crate::hole_reference::reference_frame(st, at, dir, &edges, false)?;
let centre = frame.place(at, &distances)?;
if !crate::hole_reference::on_reference_face(st, &frame, centre) {
return Err(DocError::Invalid("the reference distances put the hole's centre off its face".into()));
}
Ok(centre)
}
/// Where a hole placed by position is drilled: its `at` expressions evaluated, so it follows the
/// parameters (#1678), else the point it was given.
fn hole_position(vals: &BTreeMap<String, Value>, position: &crate::FacePick, at: &Option<crate::PointExpr>) -> Result<Vec3> {
@@ -5389,6 +5501,23 @@ fn path_at(segs: &[kernel::PathSeg], d: f64) -> (Vec3, Vec3) {
(Vec3::ZERO, Vec3::X)
}
/// Whether a copy has no material to cut in any of its eligible targets.
fn copy_misses(st: &ModelState, f: &Feature, targets: &[String], tools: &[Traced]) -> bool {
let targets = if targets.is_empty() { &f.participants } else { targets };
let all = targets.len() == 1 && targets.first().is_some_and(|t| t == "*");
st.bodies
.iter()
.filter(|b| all || if targets.is_empty() { b.component == f.component || b.feature == f.id } else { targets.contains(&b.name) })
.all(|b| {
tools.iter().all(|t| {
// A diagnostic must neither reject an otherwise valid cut nor add its own
// retries to the feature's report. An inconclusive probe is not a miss.
let (intersection, _) = kernel::capture_boolean_diagnostics(|| kernel::boolean(&b.body, &t.body, BoolOp::Intersect));
matches!(intersection, Ok(None))
})
})
}
/// Apply transformed copies of the tools of `features` (patterns, mirrors).
fn replay(
doc: &Document,
@@ -5412,6 +5541,7 @@ fn replay(
format!("{list} suppressed and not copied")
});
}
let (mut missed, mut total) = (0usize, 0usize);
for name in features.iter().filter(|n| !suppressed.contains(n)) {
// A sketch and its extrude often share a name; the feature that makes geometry wins.
let src = doc
@@ -5459,6 +5589,7 @@ fn replay(
let present: Vec<String> = targets.iter().filter(|t| st.bodies.iter().any(|b| &b.name == *t)).cloned().collect();
let targets = if present.is_empty() { targets } else { present };
let mut copies = Vec::new();
let mut instances = Vec::with_capacity(mats.len());
if let FeatureKind::Hole { diameter, depth, hole, to, .. } = &src.kind {
// A hole is drilled again at each copy of its spot (found on the surface there), so
// a blind hole's depth counts from the face at the copy, not from the bottom of the
@@ -5466,6 +5597,7 @@ fn replay(
let (spots, dir) = hole_spots_raw(vals, st, src)?;
for (k, m) in mats.iter().enumerate() {
let d = crate::apply_vector(m, dir).normalized().ok_or_else(|| DocError::Invalid("hole direction".into()))?;
let start = copies.len();
for p in &spots {
let at = hole_on_surface(st, crate::apply_point(m, *p), d, hole_scope(src));
let to = to.map(|t| crate::apply_point(m, t.0));
@@ -5477,6 +5609,7 @@ fn replay(
.map(|t| Traced { lineage: t.lineage.map(|l| l.copied(src.id, k + 1)), body: t.body }),
);
}
instances.push(start..copies.len());
}
} else if let FeatureKind::Rib { .. } = &src.kind {
// A rib is built again at each copy of its sketch, against the bodies there (#4593):
@@ -5492,9 +5625,19 @@ fn replay(
// Each copy's faces are named as the source feature's, with the instance.
let tools = feature_tools_with_constructor(doc, vals, src, st, &mut None)?;
for (k, m) in mats.iter().enumerate() {
let start = copies.len();
for t in &tools {
copies.push(t.copied(kernel::transform_matrix(&t.body, *m)?, src.id, k + 1));
}
instances.push(start..copies.len());
}
}
if op == Operation::Cut {
for instance in instances {
if let Some(tools) = copies.get(instance) {
total += 1;
missed += usize::from(copy_misses(st, f, &targets, tools));
}
}
}
// New bodies from a pattern join their source when they touch it (as one feature would).
@@ -5507,6 +5650,9 @@ fn replay(
apply_traced(st, &named, copies, op, &targets)?;
}
}
if missed > 0 {
append_warning(warning, format!("{missed} of {total} cut copies remove no material"));
}
Ok(())
}
@@ -5515,6 +5661,8 @@ mod model_cache;
#[path = "eval_more.rs"]
mod more;
pub use model_cache::SavedModel;
#[path = "eval_frame.rs"]
pub(crate) mod frame_member;
#[path = "eval_surface.rs"]
mod surface;
@@ -6583,6 +6731,7 @@ fn eval_feature(doc: &Document, vals: &BTreeMap<String, Value>, f: &Feature, st:
}
Ok(())
}
FeatureKind::FrameMember { .. } => frame_member::evaluate(doc, vals, f, st),
FeatureKind::BoundingSolid { bodies, margin } => {
let m = val(vals, margin, Kind::Length)?;
let mut bb = solidcraft_geom::Aabb3::EMPTY;
+98 -1
View File
@@ -45,7 +45,9 @@ fn joint_face_measurements_are_shared_across_motion_samples_and_snap_kinds() {
use crate::joints::{Joint, JointKind, JointOrigin, Snap, XRef};
let mut doc = Document::new("joint face work");
let part = doc.add_component(Some("Crank"), 0).unwrap();
let occurrence = doc.occurrences.iter().find(|o| o.component == part).unwrap().id;
let occurrence = doc.occurrences.iter_mut().find(|o| o.component == part).unwrap();
occurrence.grounded = false;
let occurrence = occurrence.id;
let id = doc
.add_feature(
FeatureKind::Cylinder {
@@ -257,3 +259,98 @@ fn an_imported_file_is_fingerprinted_by_its_text() {
assert_eq!(model.last_recomputed, 1);
assert_eq!(model.state().bodies.len(), 3);
}
/// A 10 mm square plate per hole along X, 4 mm thick, in component `comp`, with `holes` square
/// holes cut through it by boxes drawn in component `tools` (the plate's own, usually). The
/// plate's body name.
fn plate_with_holes(doc: &mut Document, comp: u64, tools: u64, holes: usize) -> String {
let length = format!("{}", 10 * holes.max(1));
let kind = FeatureKind::Box {
corner: point_expr(Vec3::ZERO),
length: length.into(),
width: "10".into(),
height: "4".into(),
operation: Operation::NewBody,
};
let plate = doc.add_feature(kind, None).unwrap();
doc.feature_mut(plate).unwrap().component = comp;
let mut model = Model::new();
model.evaluate(doc);
let body = model.state().bodies.iter().find(|b| b.feature == plate).unwrap().name.clone();
for k in 0..holes {
let corner = point_expr(Vec3::new(10.0 * k as f64 + 4.0, 4.0, -1.0));
let kind = FeatureKind::Box { corner, length: "2".into(), width: "2".into(), height: "6".into(), operation: Operation::Cut };
let id = doc.add_feature(kind, None).unwrap();
let f = doc.feature_mut(id).unwrap();
f.component = tools;
f.participants = vec![body.clone()];
}
body
}
fn place(doc: &mut Document, comp: u64, m: Mat) {
doc.occurrences.iter_mut().find(|o| o.component == comp).unwrap().transform = m;
}
fn volume(model: &Model, body: &str) -> f64 {
kernel::measure(&model.state().body(body).unwrap().body).unwrap().volume
}
#[test]
fn turning_a_joint_between_parts_cuts_no_hole_again() {
let mut doc = Document::new("two parts");
let base = doc.add_component(Some("Base"), 0).unwrap();
let arm = doc.add_component(Some("Arm"), 0).unwrap();
let base_plate = plate_with_holes(&mut doc, base, base, 3);
let arm_plate = plate_with_holes(&mut doc, arm, arm, 3);
place(&mut doc, arm, rigid(Vec3::new(0.0, 0.0, 10.0), Vec3::ZERO, Vec3::Z, 0.0));
let mut model = Model::new();
model.evaluate(&doc);
assert!(model.results.iter().all(|r| r.error.is_none()), "{:?}", model.results.iter().find(|r| r.error.is_some()));
assert!((volume(&model, &base_plate) - (1200.0 - 3.0 * 16.0)).abs() < 1e-6);
// Turning the arm (as a revolute joint does) moves it and nothing else: each part's holes
// stay cut in its own frame, so no hole is cut again.
for step in 1..=3 {
place(&mut doc, arm, rigid(Vec3::new(0.0, 0.0, 10.0), Vec3::ZERO, Vec3::Z, 0.3 * f64::from(step)));
model.evaluate(&doc);
assert_eq!(model.last_recomputed, 0, "step {step}");
assert!((volume(&model, &arm_plate) - (1200.0 - 3.0 * 16.0)).abs() < 1e-6);
}
// Moving both parts together changes nothing between them either.
for comp in [base, arm] {
place(&mut doc, comp, rigid(Vec3::new(5.0, 0.0, 0.0), Vec3::ZERO, Vec3::Z, 0.0));
}
model.evaluate(&doc);
assert_eq!(model.last_recomputed, 0);
}
#[test]
fn a_tool_cutting_another_part_cuts_again_when_that_part_moves() {
let mut doc = Document::new("cross part");
let tools = doc.add_component(Some("Tools"), 0).unwrap();
let plate = doc.add_component(Some("Plate"), 0).unwrap();
let other = doc.add_component(Some("Other"), 0).unwrap();
// The other part first, so the cut across parts is the last feature: it alone is evaluated
// again when it changes.
plate_with_holes(&mut doc, other, other, 1);
let body = plate_with_holes(&mut doc, plate, tools, 1);
let mut model = Model::new();
model.evaluate(&doc);
assert!(model.results.iter().all(|r| r.error.is_none()), "{:?}", model.results.iter().find(|r| r.error.is_some()));
assert!((volume(&model, &body) - (400.0 - 16.0)).abs() < 1e-6);
// An unrelated part moving: the cut keeps its result.
place(&mut doc, other, rigid(Vec3::new(0.0, 40.0, 0.0), Vec3::ZERO, Vec3::Z, 0.0));
model.evaluate(&doc);
assert_eq!(model.last_recomputed, 0);
// The plate moving away from the tool by 5 mm: the hole is cut again where the tool now meets
// it, half of it on the plate.
place(&mut doc, plate, rigid(Vec3::new(5.0, 0.0, 0.0), Vec3::ZERO, Vec3::Z, 0.0));
model.evaluate(&doc);
assert_eq!(model.last_recomputed, 1);
assert!((volume(&model, &body) - (400.0 - 8.0)).abs() < 1e-6, "{}", volume(&model, &body));
// The tool's part following it: the hole is where it was at first, the first result again.
place(&mut doc, tools, rigid(Vec3::new(5.0, 0.0, 0.0), Vec3::ZERO, Vec3::Z, 0.0));
model.evaluate(&doc);
assert_eq!(model.last_recomputed, 0);
assert!((volume(&model, &body) - (400.0 - 16.0)).abs() < 1e-6, "{}", volume(&model, &body));
}
+243
View File
@@ -0,0 +1,243 @@
//! Frame members (#4003): one body per straight line of a frame sketch, its cross-section a
//! profile laid square to the line (`frame::member_axes`) and run from one end to the other.
use std::borrow::Cow;
use std::collections::{BTreeMap, HashSet};
use solidcraft_geom::{Aabb2, Plane, Region2, Ring, Vec2, Vec3};
use solidcraft_kernel as kernel;
use solidcraft_sketch::CurveKind;
use super::{ModelBody, ModelState, SolvedSketch, new_name, path_in_frame, select_profiles, sketch_in_feature_frame, val};
use crate::expr::{Kind, Value};
use crate::frame::{self, MAX_MEMBERS, MemberProfile};
use crate::{DocError, Document, Feature, FeatureKind, ProfileSel, Result};
/// Most profiles a profile sketch may have for its material to be worked out.
const MAX_PROFILE_PIECES: usize = 256;
/// Shortest member (mm).
const MIN_LENGTH: f64 = 1e-6;
/// How far (mm) a 3D sketch curve may stray from the line between its ends and still be a line.
const STRAIGHT_TOL: f64 = 1e-3;
/// Evaluate a `FrameMember` feature: one new body per line, each named
/// ([`member_names`], or by position for a copy whose `body_names` were set).
pub(super) fn evaluate(doc: &Document, vals: &BTreeMap<String, Value>, f: &Feature, st: &mut ModelState) -> Result<()> {
let FeatureKind::FrameMember { path_sketch, lines, profile, anchor, angle, mirror, body_name, names } = &f.kind else {
return Err(DocError::Invalid("not a frame member feature".into()));
};
let ps = st.sketch(path_sketch.0).ok_or_else(|| DocError::Unknown(format!("sketch {path_sketch} (it must come earlier in the timeline)")))?;
// The frame sketch in this feature's component frame: its plane, and its 3D lines.
let mapped =
if ps.sketch.wires.is_empty() { Cow::Owned(sketch_in_feature_frame(doc, ps, f.component)?) } else { path_in_frame(doc, ps, f.component)? };
let segments = member_lines(mapped.as_ref(), lines)?;
let (mut regions, description) = profile_regions(vals, st, profile)?;
if *mirror {
regions = regions.iter().map(frame::mirrored).collect();
}
let at = frame::anchor_point(&regions, *anchor);
let turn = match angle {
Some(e) => val(vals, e, Kind::Angle)?,
None => 0.0,
};
let mut made = Vec::with_capacity(segments.len());
for (id, a, b) in &segments {
let (x, y) = frame::member_axes(*b - *a, turn).ok_or_else(|| DocError::Invalid(format!("line `{id}` has no length")))?;
let plane = Plane::new(*a - x * at.x - y * at.y, x, y).ok_or_else(|| DocError::Invalid(format!("line `{id}`: no plane square to it")))?;
let mut bodies = kernel::extrude(&plane, &regions, 0.0, a.dist(*b))?;
let body = match (bodies.pop(), bodies.is_empty()) {
(Some(body), true) => body,
_ => return Err(DocError::Invalid(format!("the member on line `{id}` is not one solid"))),
};
made.push(crate::lineage::numbered_tool(body));
}
if !f.body_names.is_empty() {
// A copy (pasted, or in a copied component) names its members by position, as any
// feature's bodies.
for (k, t) in made.into_iter().enumerate() {
let name = new_name(st, f, k);
st.bodies.push(ModelBody::traced_new(name, t, f.id));
}
return Ok(());
}
let base = body_name.as_deref().map(str::trim).filter(|n| !n.is_empty()).map_or(description, str::to_string);
let ids: Vec<String> = segments.into_iter().map(|(id, _, _)| id).collect();
for (name, t) in member_names(st, &ids, names, &base).into_iter().zip(made) {
st.bodies.push(ModelBody::traced_new(name, t, f.id));
}
Ok(())
}
/// The body name of the member on each of `lines`: its own name from `pinned` (by line id) when no
/// other body has it, else the first free one of `base`, `base (2)`, `base (3)`… that no line has
/// pinned. A member therefore keeps its name when other lines are added, deleted or reordered.
pub fn member_names(st: &ModelState, lines: &[String], pinned: &BTreeMap<String, String>, base: &str) -> Vec<String> {
let reserved: HashSet<&str> = pinned.values().map(String::as_str).collect();
let mut used: HashSet<String> = HashSet::new();
let mut out: Vec<Option<String>> = lines
.iter()
.map(|line| {
let n = pinned.get(line).map(|n| n.trim()).filter(|n| !n.is_empty() && st.body(n).is_none())?;
used.insert(n.to_string()).then(|| n.to_string())
})
.collect();
let base = if base.trim().is_empty() { "Member" } else { base.trim() };
// Each candidate is refused at most once per body, used or reserved name: past that many,
// a free one has been found for every member.
let limit = st.bodies.len() + reserved.len() + lines.len() + 2;
let mut next = 1usize;
for slot in out.iter_mut().filter(|n| n.is_none()) {
while next <= limit {
let candidate = if next == 1 { base.to_string() } else { format!("{base} ({next})") };
next += 1;
if st.body(&candidate).is_none() && !used.contains(&candidate) && !reserved.contains(candidate.as_str()) {
used.insert(candidate.clone());
*slot = Some(candidate);
break;
}
}
}
out.into_iter().map(|n| n.unwrap_or_else(|| base.to_string())).collect()
}
/// The ids of a `FrameMember` feature's lines in `st`, in the order its members are made.
pub fn member_line_ids(st: &ModelState, kind: &FeatureKind) -> Result<Vec<String>> {
let FeatureKind::FrameMember { path_sketch, lines, .. } = kind else {
return Err(DocError::Invalid("not a frame member feature".into()));
};
let ps = st.sketch(path_sketch.0).ok_or_else(|| DocError::Unknown(format!("sketch {path_sketch}")))?;
Ok(member_lines(ps, lines)?.into_iter().map(|(id, _, _)| id).collect())
}
/// The member lines of the frame sketch, each as (curve id, start, end) in its frame: the lines
/// asked for, or every straight line drawn in it (not construction, not projected or otherwise
/// linked, and with a length).
fn member_lines(ss: &SolvedSketch, ids: &[String]) -> Result<Vec<(String, Vec3, Vec3)>> {
let sk = &ss.sketch;
let mut out = Vec::new();
if ids.is_empty() {
for (ci, c) in sk.curves.iter().enumerate() {
if !c.construction
&& !c.centerline
&& c.link.is_none()
&& matches!(c.kind, CurveKind::Line { .. })
&& let Some((a, b)) = planar_line(ss, ci)
&& a.dist(b) > MIN_LENGTH
{
out.push((c.id.clone(), a, b));
}
}
for w in sk.wires.iter().filter(|w| w.link.is_none()) {
if let Some((a, b)) = straight(&w.pts)
&& a.dist(b) > MIN_LENGTH
{
out.push((w.id.clone(), a, b));
}
}
if out.is_empty() {
return Err(DocError::Invalid(format!("{} has no lines for members", ss.name)));
}
if out.len() > MAX_MEMBERS {
return Err(DocError::Invalid(format!("at most {MAX_MEMBERS} members in one feature (pick the lines)")));
}
return Ok(out);
}
if ids.len() > MAX_MEMBERS {
return Err(DocError::Invalid(format!("at most {MAX_MEMBERS} members in one feature")));
}
let mut seen = HashSet::new();
for id in ids {
if !seen.insert(id.as_str()) {
return Err(DocError::Invalid(format!("line `{id}` is listed twice")));
}
let line = if let Some(wi) = sk.wire_index(id) {
sk.wires.get(wi).and_then(|w| straight(&w.pts))
} else {
let ci = sk.curve_index(id).ok_or_else(|| DocError::Unknown(format!("line `{id}` in {}", ss.name)))?;
planar_line(ss, ci)
};
let (a, b) = line.ok_or_else(|| DocError::Invalid(format!("`{id}` is not a straight line (members run along lines)")))?;
if !(a.dist(b) > MIN_LENGTH) {
return Err(DocError::Invalid(format!("line `{id}` has no length")));
}
out.push((id.clone(), a, b));
}
Ok(out)
}
/// A sketch line's ends in the sketch's frame.
fn planar_line(ss: &SolvedSketch, ci: usize) -> Option<(Vec3, Vec3)> {
let CurveKind::Line { a, b } = ss.sketch.curves.get(ci)?.kind else { return None };
let (pa, pb) = (ss.sketch.points.get(a)?.pos, ss.sketch.points.get(b)?.pos);
Some((ss.plane.to_world(pa), ss.plane.to_world(pb)))
}
/// The ends of a 3D polyline that runs straight from its first point to its last: every point
/// within [`STRAIGHT_TOL`] of the line between them, none behind the start, past the end or back
/// from a point before it.
fn straight(pts: &[Vec3]) -> Option<(Vec3, Vec3)> {
let (a, b) = (*pts.first()?, *pts.last()?);
let (len, d) = (a.dist(b), (b - a).normalized()?);
let mut reached = 0.0_f64;
for p in pts {
let q = *p - a;
let t = q.dot(d);
if (q - d * t).len() > STRAIGHT_TOL || t < reached - STRAIGHT_TOL || t > len + STRAIGHT_TOL {
return None;
}
reached = reached.max(t);
}
Some((a, b))
}
/// The regions of a member's profile, in the profile's own coordinates: one piece of material,
/// holes and all; and what its members are named after when they have no name of their own.
fn profile_regions(vals: &BTreeMap<String, Value>, st: &ModelState, profile: &MemberProfile) -> Result<(Vec<Region2>, String)> {
let (regions, description) = match profile {
MemberProfile::Library { profile } => {
let p = profile.resolve(|name, e| val(vals, e, Kind::Length).map_err(|err| DocError::Invalid(format!("profile `{name}`: {err}"))))?;
(vec![p.region()?], p.description())
}
MemberProfile::Sketch { sketch, profiles } => {
let ss = st.sketch(sketch.0).ok_or_else(|| DocError::Unknown(format!("sketch {sketch} (it must come earlier in the timeline)")))?;
let picked = match profiles {
ProfileSel::All => material(ss)?,
sel => select_profiles(ss, sel)?,
};
(solidcraft_sketch::merge_regions(&picked), ss.name.clone())
}
};
match regions.len() {
1 => Ok((regions, description)),
0 => Err(DocError::Invalid("the member profile has no area".into())),
n => Err(DocError::Invalid(format!("the member profile is {n} separate pieces (pick one with `profiles`)"))),
}
}
/// The material of a profile sketch: of what was drawn (as `solid.extrude` takes all profiles:
/// projected reference geometry only when the drawn curves make no profile, letters without
/// their counters filled in), each profile inside an even number of other profiles' outlines,
/// so nested loops alternate between material and hole.
fn material(ss: &SolvedSketch) -> Result<Vec<Region2>> {
let drawn = solidcraft_sketch::find_drawn_profiles(&ss.sketch);
let ps = solidcraft_sketch::without_text_counters(&ss.sketch, if drawn.is_empty() { ss.profiles.clone() } else { drawn });
if ps.is_empty() {
return Err(DocError::Invalid(format!("{} has no closed profiles", ss.name)));
}
if ps.len() > MAX_PROFILE_PIECES {
return Err(DocError::Invalid(format!("{} has more than {MAX_PROFILE_PIECES} profiles (pick the member's with `profiles`)", ss.name)));
}
// Outer polylines and their boxes, once.
let polys: Vec<Ring<Vec2>> = ps.iter().map(|p| p.region.outer.polyline(1e-3)).collect();
let boxes: Vec<Aabb2> = polys.iter().map(|poly| poly.bounds()).collect();
Ok(ps
.iter()
.enumerate()
.filter(|(i, p)| {
let at = p.region.interior_point();
let depth = polys.iter().zip(&boxes).enumerate().filter(|(j, (poly, bb))| j != i && bb.contains(at) && poly.contains(at)).count();
depth % 2 == 0
})
.map(|(_, p)| p.region.clone())
.collect())
}
+26
View File
@@ -69,3 +69,29 @@ impl FeatureKind {
});
}
}
impl crate::Document {
/// Rename feature `old` to `new` where the design names it outside the features' own
/// references (`remap_refs`): sketch projections of a construction plane and the canvases
/// placed on it (#4353). (The features are the rename command's to change.)
pub fn rename_feature_keys(&mut self, old: &str, new: &str) {
let names = BTreeMap::from([(old.to_string(), new.to_string())]);
let (ids, bodies) = (BTreeMap::new(), BTreeMap::new());
for f in &mut self.features {
if let FeatureKind::Sketch { sketch, .. } = &mut f.kind {
for link in &mut sketch.links {
crate::clipboard::remap_link(&mut link.source, &ids, &names, &bodies, 0);
}
}
}
for c in &mut self.canvases {
c.plane.walk_refs_mut(&mut |r| {
if let Ref::Feature(name) = r
&& name.as_ref() == old
{
*name = FeatureName(new.to_string());
}
});
}
}
}
+79
View File
@@ -177,6 +177,85 @@ fn references_match_the_golden_record() {
check_golden("golden_refs.txt", GOLDEN_REFS, &ref_record());
}
#[test]
fn construction_names_follow_renames_in_every_definition() {
use crate::walk::{Ref, Walk};
use serde_json::json;
let axis = json!({"type": "axis", "name": "Old"});
let point = json!({"type": "construct_point", "name": "Old"});
let plane = json!({"type": "plane", "plane": {"type": "construction", "name": "Old"}});
let definitions = [
json!({"type": "construction_axis", "def": {"type": "through_face", "face": axis}}),
json!({"type": "construction_axis", "def": {"type": "normal_to_face", "face": plane, "point": point}}),
json!({"type": "construction_axis", "def": {"type": "two_planes", "a": plane, "b": plane}}),
json!({"type": "construction_axis", "def": {"type": "two_points", "a": point, "b": point}}),
json!({"type": "construction_axis", "def": {"type": "edge", "edge": axis}}),
json!({"type": "construction_point", "def": {"type": "at", "point": point}}),
json!({"type": "construction_point", "def": {"type": "two_edges", "a": axis, "b": axis}}),
json!({"type": "construction_point", "def": {"type": "three_planes", "a": plane, "b": plane, "c": plane}}),
json!({"type": "construction_point", "def": {"type": "center", "of": axis}}),
json!({"type": "construction_point", "def": {"type": "edge_and_plane", "edge": axis, "plane": plane}}),
json!({"type": "construction_point", "def": {"type": "along_path", "path": axis, "t": "0.5"}}),
];
let planes = [
json!({"type": "midplane", "a": plane, "b": plane}),
json!({"type": "two_edges", "a": axis, "b": axis}),
json!({"type": "three_points", "a": point, "b": point, "c": point}),
json!({"type": "tangent", "face": plane, "at": [0, 0, 0]}),
json!({"type": "along_path", "path": axis, "t": "0.5"}),
json!({"type": "perpendicular", "plane": plane, "line": axis}),
];
let wrapped = planes.into_iter().map(|plane| {
json!({"type": "construction_plane", "plane": {"type": "flipped", "base": {
"type": "offset", "distance": "10", "base": {"type": "at_angle", "angle": "20 deg",
"axis_origin": [0, 0, 0], "axis_dir": [1, 0, 0], "base": plane}}}})
});
let names = BTreeMap::from([("Old".into(), "New".into()), ("New".into(), "Wrong".into())]);
for definition in definitions.into_iter().chain(wrapped) {
let mut kind: FeatureKind = serde_json::from_value(definition.clone()).unwrap();
let expected_count = definition.to_string().matches("\"Old\"").count();
let mut seen = Vec::new();
kind.walk_refs(&mut |r| {
if let Ref::Feature(name) = r {
seen.push(name.to_string());
}
});
assert_eq!(seen, vec!["Old"; expected_count], "{definition}");
kind.remap_refs(&BTreeMap::new(), &names);
let expected: serde_json::Value = serde_json::from_str(&definition.to_string().replace("\"Old\"", "\"New\"")).unwrap();
assert_eq!(serde_json::to_value(kind).unwrap(), serde_json::to_value(serde_json::from_value::<FeatureKind>(expected).unwrap()).unwrap());
}
}
#[test]
fn construction_reference_walk_keeps_its_depth_limit_across_geometry() {
use crate::construct::GeoRef;
use crate::walk::{Ref, Walk};
let mut plane = crate::PlaneRef::Construction { name: "TooDeep".into() };
for _ in 0..80 {
plane = crate::PlaneRef::Perpendicular { plane: Box::new(GeoRef::Plane { plane }), line: Box::new(GeoRef::Axis { name: "Side".into() }) };
}
let mut seen = Vec::new();
plane.walk_refs(&mut |r| {
if let Ref::Feature(name) = r {
seen.push(name.to_string());
}
});
assert!(!seen.is_empty() && seen.len() < 64);
assert!(seen.iter().all(|name| name == "Side"));
let mut changed = 0;
plane.walk_refs_mut(&mut |r| {
if let Ref::Feature(name) = r {
assert_eq!(name.as_ref(), "Side");
*name = "Renamed".into();
changed += 1;
}
});
assert_eq!(changed, seen.len());
}
#[test]
fn inputs_and_expressions_match_the_golden_record() {
check_golden("golden_exprs.txt", GOLDEN_EXPRS, &record());
@@ -72,6 +72,11 @@ pub(super) fn fixtures() -> Vec<(&'static str, Value)> {
("hole_drilled", hole(json!({"type": "drilled", "tip_angle": "hole.tip_angle"}))),
("hole_counterbore", hole(json!({"type": "counterbore", "cb_diameter": "hole.cb_diameter", "cb_depth": "hole.cb_depth"}))),
("hole_countersink", hole(json!({"type": "countersink", "cs_diameter": "hole.cs_diameter", "cs_angle": "hole.cs_angle"}))),
("hole_references", {
let mut h = hole(json!({"type": "simple"}));
h["references"] = json!([{"edge": o, "distance": "hole.reference1"}, {"edge": o, "distance": "hole.reference2"}]);
h
}),
("thread", json!({"type": "thread", "face": o, "length": "thread.length"})),
("loft", json!({"type": "loft", "sections": []})),
("sweep", json!({"type": "sweep", "sketch": 1, "profiles": {"type": "all"}, "path_sketch": 2, "path": ["l1"]})),
@@ -103,6 +108,16 @@ pub(super) fn fixtures() -> Vec<(&'static str, Value)> {
("delete_face", json!({"type": "delete_face", "faces": [o]})),
("bounding_solid", json!({"type": "bounding_solid", "bodies": ["B"], "margin": "bounding.margin"})),
("pipe", json!({"type": "pipe", "path_sketch": 1, "path": ["l1"], "diameter": "pipe.diameter", "wall": "pipe.wall"})),
(
"frame_member",
json!({"type": "frame_member", "path_sketch": 1, "lines": ["l1"],
"profile": {"source": "library", "profile": {"kind": "rect_tube", "width": 40, "height": 40, "wall": 3}}, "angle": "frame_member.angle"}),
),
(
"frame_member_sketch",
json!({"type": "frame_member", "path_sketch": 1, "profile": {"source": "sketch", "sketch": 2, "profiles": {"type": "all"}},
"anchor": "bottom_left", "mirror": true}),
),
("emboss", json!({"type": "emboss", "sketch": 1, "profiles": {"type": "all"}, "depth": "emboss.depth"})),
("rib", json!({"type": "rib", "sketch": 1, "curves": ["l1"], "thickness": "rib.thickness", "depth": "rib.depth"})),
("replace_face", json!({"type": "replace_face", "faces": [o], "target": plane("replace_face")})),
@@ -262,6 +277,9 @@ pub(super) fn with_points(name: &str, mut v: Value) -> Value {
"surface_revolve" => json!({"axis": line}),
"hole_simple" => json!({"points": null, "to": p(4.0)}),
"hole_drilled" | "hole_counterbore" | "hole_countersink" => json!({"to": p(4.0)}),
"hole_references" => {
json!({"references": [{"edge": p(11.0), "distance": "hole.reference1"}, {"edge": p(12.0), "distance": "hole.reference2"}]})
}
"emboss" => json!({"face": {"body": "B", "at": p(5.0)}}),
"sheet_convert" => json!({"bends": [p(6.0)]}),
"sheet_fold" => json!({"fixed": p(7.0)}),
@@ -130,6 +130,13 @@ hole_countersink
Countersink diameter = hole.cs_diameter (Length)
Countersink angle = hole.cs_angle (Angle)
expressions: hole.diameter, hole.depth, hole.cs_diameter, hole.cs_angle
hole_references
inputs:
Diameter = hole.diameter (Length)
Depth = hole.depth (Length)
Reference distance = hole.reference1 (Length)
Reference distance = hole.reference2 (Length)
expressions: hole.diameter, hole.depth, hole.reference1, hole.reference2
thread
inputs:
Length = thread.length (Length)
@@ -212,6 +219,14 @@ pipe
Diameter = pipe.diameter (Length)
Wall = pipe.wall (Length)
expressions: pipe.diameter, pipe.wall
frame_member
inputs:
Height = 40 (Length)
Wall = 3 (Length)
Width = 40 (Length)
Rotation = frame_member.angle (Angle)
expressions: 40, 3, 40, frame_member.angle
frame_member_sketch
emboss
inputs:
Depth = emboss.depth (Length)
@@ -56,6 +56,9 @@ hole_counterbore
hole_countersink
moves: direction[0], direction[2], position[0], position[1], position[2], to[0], to[1], to[2]
face points: [4, 4.5, 4.25]
hole_references
moves: direction[0], direction[2], position[0], position[1], position[2], references[0].edge[0], references[0].edge[1], references[0].edge[2], references[1].edge[0], references[1].edge[1], references[1].edge[2]
face points: [0, 0, 0]
thread
moves: face[0], face[1], face[2]
face points: [0, 0, 0]
@@ -97,6 +100,9 @@ delete_face
face points: [0, 0, 0]
bounding_solid
pipe
frame_member
frame_member_sketch
profiles: 2 all
emboss
face points: [5, 5.5, 5.25]
profiles: 1 all
@@ -58,6 +58,7 @@ hole_counterbore
hole_countersink
sketches: [3]
remap_refs: points.sketch
hole_references
thread
loft
sketches: [4, 5, 6]
@@ -86,7 +87,9 @@ split_line
remap_refs: plane.base.base.name, sketch
remap_bodies: body
construction_axis
remap_refs: def.a.plane.base.base.name, def.b.plane.base.base.name
construction_point_planes
remap_refs: def.a.plane.base.base.name, def.b.plane.base.base.name, def.c.plane.base.base.name
construction_point_along
split_face
sketches: [6]
@@ -104,6 +107,12 @@ pipe
sketches: [1]
remap_refs: path_sketch
remap_bodies: targets[0]
frame_member
sketches: [1]
remap_refs: path_sketch
frame_member_sketch
sketches: [1, 2]
remap_refs: path_sketch, profile.sketch
emboss
sketches: [1]
remap_refs: sketch
@@ -0,0 +1,7 @@
//! A design can hold frame members (#4003): a `frame_member` feature with its frame sketch
//! (`path_sketch`), the `lines` it runs along (none: every straight line drawn in it), its
//! `profile` (a built-in profile by `source: library`, its dimensions saved as expressions, or a
//! profile sketch by `source: sketch`), the profile's `anchor`, `angle` and `mirror`, and its
//! members' names: `body_name` and `names` (each member's body name by its line's id). Older
//! designs need no transformation: they have no such feature. The last release refuses a design
//! saved with this (the newer format number).
@@ -0,0 +1,6 @@
//! A Single hole can be placed by distances from up to two straight edges of its face
//! (`references`: each `{"edge": [x, y, z], "distance": "…"}`, the edges' persistent names in the
//! feature's `edge_names`, #37): it is drilled where those distances hold, measured in the face's
//! plane, and follows the edges when the part changes. Older designs need no transformation: a
//! hole without `references` stays at its position, as before; 0.21.x asks for an update instead
//! of drilling a referenced hole where it was first placed.
@@ -0,0 +1,52 @@
//! The feature of a file inserted into a design (STEP, IGES or a mesh file) is marked `inserted`:
//! it made the component tree at whose top it sits, and deleting it removes that tree with it.
//! Older designs are rewritten as they open: an import or mesh import inside a component is
//! marked, except the independent base of a copied component, which goes alone as before. The
//! last release refuses a design saved with this (the newer format number).
use serde_json::Value;
pub fn step(v: &mut Value) -> crate::Result<()> {
let Some(Value::Array(features)) = v.get_mut("features") else {
return Ok(());
};
for feature in features {
let Some(object) = feature.as_object_mut() else { continue };
let in_component = object.get("component").and_then(Value::as_u64).is_some_and(|c| c != 0);
let inserted = match object.get("type").and_then(Value::as_str) {
Some("mesh_import") => true,
// A copied component's independent base: a body re-exported on its own, no file tree.
Some("import") => {
let base = object.get("file").and_then(Value::as_str).is_some_and(|f| f.ends_with(" independent base"))
&& object.get("components").and_then(Value::as_array).is_none_or(Vec::is_empty);
!base
}
_ => false,
};
if in_component && inserted {
object.insert("inserted".into(), Value::Bool(true));
}
}
Ok(())
}
#[cfg(test)]
mod tests {
use serde_json::json;
#[test]
fn older_inserted_files_are_marked_but_copied_bases_are_not() {
let mut v = json!({"features": [
{"type": "import", "file": "parts.step", "component": 2},
{"type": "mesh_import", "file": "bracket.stl", "component": 5},
{"type": "import", "file": "Block independent base", "component": 7},
{"type": "import", "file": "opened.step"},
{"type": "extrude", "component": 2}
]});
super::step(&mut v).unwrap();
let marked: Vec<bool> = v["features"].as_array().unwrap().iter().map(|f| f["inserted"] == json!(true)).collect();
assert_eq!(marked, [true, true, false, false, false]);
let mut empty = json!({"name": "Untitled"});
super::step(&mut empty).unwrap();
assert_eq!(empty, json!({"name": "Untitled"}));
}
}
+760
View File
@@ -0,0 +1,760 @@
//! Frames: the profile library structural members are made of (#4003).
//!
//! A profile is a closed cross-section, an outline and its holes, built in code from a few
//! dimensions ([`Profile`]). Every built-in profile is SolidCraft's own parametric definition:
//! no vendor's or standard's size table is shipped. A dimension left out takes a default worked
//! out from the others, so `{"kind": "rect_tube", "width": 40, "height": 40, "wall": 3}` is a
//! complete profile. Any other section (a vendor's extrusion, say) comes from a sketch.
//!
//! Features and commands hold a profile as a [`ProfileSpec`]: each dimension an expression over
//! the design's parameters, worked out into a [`Profile`] when the feature is evaluated.
//!
//! Coordinates are millimetres in the profile's own plane, x across and y up, with the centre
//! of the profile's bounding box at the origin. The outline runs counter-clockwise and holes
//! clockwise, as [`Region2`] expects.
use std::collections::BTreeMap;
use serde::{Deserialize, Serialize};
use solidcraft_geom::{Loop2, Region2, Seg2, Vec2, Vec3};
use crate::expr::Kind;
use crate::{DocError, Expr, Result};
#[cfg(test)]
#[path = "frame_tests.rs"]
mod tests;
/// Most members one frame member feature makes.
pub const MAX_MEMBERS: usize = 1000;
/// The largest profile dimension (mm).
pub const MAX_PROFILE_SIZE: f64 = 10_000.0;
/// The smallest profile dimension (mm): walls and sides thinner than this are refused, and so
/// are radii smaller than this but not 0.
pub const MIN_PROFILE_DIMENSION: f64 = 0.01;
/// How far from vertical (radians) a member's line may lean and still count as vertical for its
/// orientation ([`member_axes`]).
pub const VERTICAL_TOLERANCE: f64 = 1e-6;
/// A built-in profile and its dimensions (mm). `Option` dimensions take a default worked out from
/// the profile's size ([`Profile::filled`] says which).
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
#[serde(tag = "kind", rename_all = "snake_case", deny_unknown_fields)]
pub enum Profile {
/// A solid rectangle (flat bar, square bar), its corners optionally rounded.
Bar {
width: f64,
height: f64,
#[serde(default, skip_serializing_if = "Option::is_none")]
corner_radius: Option<f64>,
},
/// A solid circle.
RoundBar { diameter: f64 },
/// A rectangular or square hollow section. The outer corner radius defaults to twice the
/// wall; the inner radius is the outer one less the wall.
RectTube {
width: f64,
height: f64,
wall: f64,
#[serde(default, skip_serializing_if = "Option::is_none")]
outer_radius: Option<f64>,
},
/// A round hollow section (pipe or tube).
RoundTube { diameter: f64, wall: f64 },
/// An L angle: one leg `width` along x, the other `height` along y, both `thickness` thick,
/// the heel at the bottom left. The root radius defaults to the thickness, the toe radius to
/// half of it, both made smaller where the legs leave less room.
Angle {
width: f64,
height: f64,
thickness: f64,
#[serde(default, skip_serializing_if = "Option::is_none")]
root_radius: Option<f64>,
#[serde(default, skip_serializing_if = "Option::is_none")]
toe_radius: Option<f64>,
},
/// A channel with parallel flanges, open towards +x: the web `web` thick along the left side,
/// flanges `width` long and `flange` thick. The root radius defaults to the web thickness (less
/// where the flanges or the web leave less room), the toe radius to none.
Channel {
height: f64,
width: f64,
web: f64,
flange: f64,
#[serde(default, skip_serializing_if = "Option::is_none")]
root_radius: Option<f64>,
#[serde(default, skip_serializing_if = "Option::is_none")]
toe_radius: Option<f64>,
},
/// An I or H beam with parallel flanges. The root radius defaults to the web thickness (less
/// where the flanges or the web leave less room).
IBeam {
height: f64,
width: f64,
web: f64,
flange: f64,
#[serde(default, skip_serializing_if = "Option::is_none")]
root_radius: Option<f64>,
},
}
/// One built-in profile kind, for listing.
#[derive(Clone, Debug, Serialize)]
pub struct ProfileKind {
pub kind: &'static str,
pub label: &'static str,
/// The dimensions it needs.
pub required: &'static [&'static str],
/// The dimensions that default when left out.
pub optional: &'static [&'static str],
/// A complete example, as JSON.
pub example: Profile,
}
/// Every built-in profile kind.
pub fn profile_kinds() -> Vec<ProfileKind> {
vec![
ProfileKind {
kind: "bar",
label: "Bar",
required: &["width", "height"],
optional: &["corner_radius"],
example: Profile::Bar { width: 40.0, height: 10.0, corner_radius: None },
},
ProfileKind { kind: "round_bar", label: "Round Bar", required: &["diameter"], optional: &[], example: Profile::RoundBar { diameter: 20.0 } },
ProfileKind {
kind: "rect_tube",
label: "Rectangular Tube",
required: &["width", "height", "wall"],
optional: &["outer_radius"],
example: Profile::RectTube { width: 40.0, height: 40.0, wall: 3.0, outer_radius: None },
},
ProfileKind {
kind: "round_tube",
label: "Round Tube",
required: &["diameter", "wall"],
optional: &[],
example: Profile::RoundTube { diameter: 42.4, wall: 3.2 },
},
ProfileKind {
kind: "angle",
label: "L-Angle",
required: &["width", "height", "thickness"],
optional: &["root_radius", "toe_radius"],
example: Profile::Angle { width: 50.0, height: 50.0, thickness: 5.0, root_radius: None, toe_radius: None },
},
ProfileKind {
kind: "channel",
label: "Channel",
required: &["height", "width", "web", "flange"],
optional: &["root_radius", "toe_radius"],
example: Profile::Channel { height: 100.0, width: 50.0, web: 6.0, flange: 8.0, root_radius: None, toe_radius: None },
},
ProfileKind {
kind: "i_beam",
label: "I-Beam",
required: &["height", "width", "web", "flange"],
optional: &["root_radius"],
example: Profile::IBeam { height: 100.0, width: 50.0, web: 4.5, flange: 7.0, root_radius: None },
},
]
}
/// The label of a profile dimension, as the feature's inputs show it.
pub fn dimension_label(name: &str) -> &'static str {
match name {
"width" => "Width",
"height" => "Height",
"wall" => "Wall",
"diameter" => "Diameter",
"thickness" => "Thickness",
"web" => "Web thickness",
"flange" => "Flange thickness",
"corner_radius" => "Corner radius",
"outer_radius" => "Outer radius",
"root_radius" => "Root radius",
"toe_radius" => "Toe radius",
_ => "Dimension",
}
}
/// A built-in profile as a feature saves it and a command takes it: its kind and each dimension
/// as an expression over the design's parameters (`"tube_wall"`, `"2 in"`, a number). Saved as
/// one JSON object, `{"kind": "rect_tube", "width": "40", ...}`; numbers read as their text. A
/// length without a unit is millimetres here: commands give bare numbers the design's unit first.
#[derive(Clone, Debug, PartialEq)]
pub struct ProfileSpec {
pub kind: String,
pub dims: BTreeMap<String, Expr>,
}
impl ProfileSpec {
/// The profile, each dimension worked out by `eval` (given the dimension's name and its
/// expression, returning millimetres).
pub fn resolve(&self, mut eval: impl FnMut(&str, &Expr) -> Result<f64>) -> Result<Profile> {
let mut o = serde_json::Map::new();
o.insert("kind".into(), serde_json::Value::String(self.kind.clone()));
for (name, e) in &self.dims {
let v = eval(name, e)?;
let n = serde_json::Number::from_f64(v).ok_or_else(|| invalid(format!("profile `{name}` is not a finite length")))?;
o.insert(name.clone(), serde_json::Value::Number(n));
}
serde_json::from_value(serde_json::Value::Object(o)).map_err(|e| invalid(format!("profile: {e}")))
}
}
impl Serialize for ProfileSpec {
fn serialize<S: serde::Serializer>(&self, s: S) -> std::result::Result<S::Ok, S::Error> {
use serde::ser::SerializeMap;
let mut m = s.serialize_map(Some(self.dims.len() + 1))?;
m.serialize_entry("kind", &self.kind)?;
for (k, v) in &self.dims {
m.serialize_entry(k, v)?;
}
m.end()
}
}
impl<'de> Deserialize<'de> for ProfileSpec {
fn deserialize<D: serde::Deserializer<'de>>(d: D) -> std::result::Result<Self, D::Error> {
use serde::de::Error;
let mut m = BTreeMap::<String, serde_json::Value>::deserialize(d)?;
let kind = match m.remove("kind") {
Some(serde_json::Value::String(k)) => k,
_ => return Err(D::Error::custom("a profile needs `kind` (bar, round_bar, rect_tube, round_tube, angle, channel or i_beam)")),
};
let kinds = profile_kinds();
let info = kinds.iter().find(|k| k.kind == kind).ok_or_else(|| {
D::Error::custom(format!("unknown profile kind `{kind}` (bar, round_bar, rect_tube, round_tube, angle, channel or i_beam)"))
})?;
let mut dims = BTreeMap::new();
for (name, v) in m {
if !info.required.contains(&name.as_str()) && !info.optional.contains(&name.as_str()) {
return Err(D::Error::custom(format!("a {kind} profile has no dimension `{name}`")));
}
let text = match v {
serde_json::Value::Number(n) => n.to_string(),
serde_json::Value::String(t) if !t.trim().is_empty() && t.len() <= 4096 => t,
_ => return Err(D::Error::custom(format!("profile `{name}` must be a number or an expression"))),
};
dims.insert(name, Expr::new(text));
}
if let Some(missing) = info.required.iter().find(|r| !dims.contains_key(**r)) {
return Err(D::Error::custom(format!("a {kind} profile needs `{missing}`")));
}
Ok(ProfileSpec { kind, dims })
}
}
impl crate::walk::Walk for ProfileSpec {
fn walk_exprs<'a>(&'a self, f: &mut dyn FnMut(crate::walk::ExprItem<'a>)) {
for (name, e) in &self.dims {
f((dimension_label(name), e, Kind::Length, crate::walk::ExprRole::Input));
}
}
fn walk_exprs_mut<'a>(&'a mut self, f: &mut dyn FnMut(crate::walk::ExprItemMut<'a>)) {
for (name, e) in self.dims.iter_mut() {
f((dimension_label(name), e, Kind::Length, crate::walk::ExprRole::Input));
}
}
}
pub use crate::eval::frame_member::{member_line_ids, member_names};
/// Where a frame member's cross-section comes from.
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, solidcraft_derive::Walk)]
#[serde(tag = "source", rename_all = "snake_case")]
pub enum MemberProfile {
/// A built-in profile, from its dimensions.
Library { profile: ProfileSpec },
/// The profiles of a sketch, in the sketch's own x and y, its origin the profile's origin.
/// Every profile (the default) means the material as nested loops alternate: an outline is
/// material, a loop inside it a hole, a loop inside that material again, so a tube drawn as
/// two circles is its wall.
Sketch {
sketch: crate::SketchId,
#[serde(default = "crate::document::all_profiles")]
#[walk(profiles_of = sketch)]
profiles: crate::ProfileSel,
},
}
impl Anchor {
pub fn is_origin(&self) -> bool {
*self == Anchor::Origin
}
}
/// The point of a profile that sits on a member's line (or on `at` when a profile is inserted):
/// the profile's own origin (a built-in profile's bounding-box centre, a sketch profile's sketch
/// origin), its centroid, or a corner or edge middle of its bounding box.
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "snake_case")]
pub enum Anchor {
#[default]
Origin,
Center,
Centroid,
TopLeft,
Top,
TopRight,
Left,
Right,
BottomLeft,
Bottom,
BottomRight,
}
/// A profile's section properties (mm², mm, mm⁴). Second moments are about axes through the
/// centroid, parallel to the profile's x and y.
#[derive(Clone, Copy, Debug, PartialEq, Serialize)]
pub struct Section {
pub area: f64,
pub centroid: [f64; 2],
/// ∫ y² dA about the centroid: bending about the x axis.
pub ixx: f64,
/// ∫ x² dA about the centroid: bending about the y axis.
pub iyy: f64,
pub ixy: f64,
/// The bounding box's size.
pub width: f64,
pub height: f64,
}
fn invalid(msg: impl Into<String>) -> DocError {
DocError::Invalid(msg.into())
}
/// `v` as a dimension: finite, at least [`MIN_PROFILE_DIMENSION`] and at most
/// [`MAX_PROFILE_SIZE`].
fn dim(name: &str, v: f64) -> Result<f64> {
if v.is_finite() && (MIN_PROFILE_DIMENSION..=MAX_PROFILE_SIZE).contains(&v) {
Ok(v)
} else {
Err(invalid(format!("profile `{name}` must be between {MIN_PROFILE_DIMENSION} and {MAX_PROFILE_SIZE} mm (got {v})")))
}
}
/// `v` as a radius: 0 (a sharp corner), or from [`MIN_PROFILE_DIMENSION`] up to
/// [`MAX_PROFILE_SIZE`].
fn radius(name: &str, v: f64) -> Result<f64> {
if v == 0.0 || (v.is_finite() && (MIN_PROFILE_DIMENSION..=MAX_PROFILE_SIZE).contains(&v)) {
Ok(v)
} else {
Err(invalid(format!("profile `{name}` must be 0 or between {MIN_PROFILE_DIMENSION} and {MAX_PROFILE_SIZE} mm (got {v})")))
}
}
/// `a` less than `b`.
fn less(a_name: &str, a: f64, b_name: &str, b: f64) -> Result<()> {
if a < b { Ok(()) } else { Err(invalid(format!("profile `{a_name}` ({a}) must be less than {b_name} ({b})"))) }
}
/// `a` less than half of `b`.
fn less_half(a_name: &str, a: f64, b_name: &str, b: f64) -> Result<()> {
if 2.0 * a < b { Ok(()) } else { Err(invalid(format!("profile `{a_name}` ({a}) must be less than half {b_name} ({})", b / 2.0))) }
}
/// Radius `r` at most `room` (with a little slack for rounding).
fn at_most(what: &str, r: f64, room: f64, why: &str) -> Result<()> {
if r <= room + 1e-9 * (1.0 + room.abs()) {
Ok(())
} else {
Err(invalid(format!("profile {what} ({r}) must be at most {} mm: {why}", room.max(0.0))))
}
}
/// A number for a name: up to four decimals, without trailing zeros.
fn short(x: f64) -> String {
let t = format!("{x:.4}");
let t = if t.contains('.') { t.trim_end_matches('0').trim_end_matches('.') } else { &t };
if t == "-0" { "0".into() } else { t.to_string() }
}
impl Profile {
/// The kind's id (`rect_tube`, `angle`…).
pub fn kind(&self) -> &'static str {
match self {
Profile::Bar { .. } => "bar",
Profile::RoundBar { .. } => "round_bar",
Profile::RectTube { .. } => "rect_tube",
Profile::RoundTube { .. } => "round_tube",
Profile::Angle { .. } => "angle",
Profile::Channel { .. } => "channel",
Profile::IBeam { .. } => "i_beam",
}
}
/// A short description from the kind and its main sizes, such as `Rect Tube 40x40x3`: what a
/// member body is named after.
pub fn description(&self) -> String {
let d = |v: &[f64]| v.iter().map(|x| short(*x)).collect::<Vec<_>>().join("x");
match *self {
Profile::Bar { width, height, .. } => format!("Bar {}", d(&[width, height])),
Profile::RoundBar { diameter } => format!("Round Bar {}", short(diameter)),
Profile::RectTube { width, height, wall, .. } => format!("Rect Tube {}", d(&[width, height, wall])),
Profile::RoundTube { diameter, wall } => format!("Round Tube {}", d(&[diameter, wall])),
Profile::Angle { width, height, thickness, .. } => format!("Angle {}", d(&[width, height, thickness])),
Profile::Channel { height, width, web, .. } => format!("Channel {}", d(&[height, width, web])),
Profile::IBeam { height, width, web, .. } => format!("I-Beam {}", d(&[height, width, web])),
}
}
/// The profile with every defaulted dimension written out. A default radius is made smaller
/// where the profile leaves less room for it than its usual size (a short leg, a narrow
/// flange), so leaving radii out never makes a profile that does not fit.
pub fn filled(&self) -> Profile {
let room = |x: f64| if x.is_finite() { x.max(0.0) } else { 0.0 };
match *self {
Profile::Bar { width, height, corner_radius } => Profile::Bar { width, height, corner_radius: Some(corner_radius.unwrap_or(0.0)) },
Profile::RectTube { width, height, wall, outer_radius } => {
let r = outer_radius.unwrap_or_else(|| (2.0 * wall).min(width.min(height) / 2.0));
Profile::RectTube { width, height, wall, outer_radius: Some(r) }
}
Profile::Angle { width, height, thickness: t, root_radius, toe_radius } => {
// Root and toe share the inside length of the shorter leg.
let leg = room(width.min(height) - t);
let (r1, r2) = match (root_radius, toe_radius) {
(Some(r1), Some(r2)) => (r1, r2),
(Some(r1), None) => (r1, (t / 2.0).min(room(leg - r1))),
(None, Some(r2)) => (t.min(room(leg - r2)), r2),
(None, None) => {
let k = if 1.5 * t > leg { leg / (1.5 * t) } else { 1.0 };
(t * k, t / 2.0 * k)
}
};
Profile::Angle { width, height, thickness: t, root_radius: Some(r1), toe_radius: Some(r2) }
}
Profile::Channel { height, width, web, flange, root_radius, toe_radius } => {
let r2 = toe_radius.unwrap_or(0.0);
// The root shares a flange's inside length with the toe, and the web's inside
// height with the other root.
let r1 = root_radius.unwrap_or_else(|| web.min(room(width - web - r2)).min(room(height - 2.0 * flange) / 2.0));
Profile::Channel { height, width, web, flange, root_radius: Some(r1), toe_radius: Some(r2) }
}
Profile::IBeam { height, width, web, flange, root_radius } => {
let r = root_radius.unwrap_or_else(|| web.min(room(width - web) / 2.0).min(room(height - 2.0 * flange) / 2.0));
Profile::IBeam { height, width, web, flange, root_radius: Some(r) }
}
Profile::RoundBar { .. } | Profile::RoundTube { .. } => self.clone(),
}
}
/// The bounding box's width and height (mm), before validation.
pub fn size(&self) -> (f64, f64) {
match *self {
Profile::Bar { width, height, .. }
| Profile::RectTube { width, height, .. }
| Profile::Angle { width, height, .. }
| Profile::Channel { width, height, .. }
| Profile::IBeam { width, height, .. } => (width, height),
Profile::RoundBar { diameter } | Profile::RoundTube { diameter, .. } => (diameter, diameter),
}
}
/// The profile's cross-section, the bounding box centred on the origin. An error names the
/// dimension that is out of range or does not fit.
pub fn region(&self) -> Result<Region2> {
let f = self.filled();
match f {
Profile::Bar { width, height, corner_radius } => {
let (w, h) = (dim("width", width)?, dim("height", height)?);
let r = radius("corner_radius", corner_radius.unwrap_or(0.0))?;
if r > w.min(h) / 2.0 {
return Err(invalid(format!("profile `corner_radius` ({r}) must be at most half the smaller side ({})", w.min(h) / 2.0)));
}
Ok(Region2 { outer: rounded_rect(w, h, r)?, holes: Vec::new() })
}
Profile::RoundBar { diameter } => Ok(Region2 { outer: Loop2::circle(Vec2::ZERO, dim("diameter", diameter)? / 2.0), holes: Vec::new() }),
Profile::RectTube { width, height, wall, outer_radius } => {
let (w, h, t) = (dim("width", width)?, dim("height", height)?, dim("wall", wall)?);
less_half("wall", t, "the smaller side", w.min(h))?;
let ro = radius("outer_radius", outer_radius.unwrap_or(0.0))?;
if ro > w.min(h) / 2.0 {
return Err(invalid(format!("profile `outer_radius` ({ro}) must be at most half the smaller side ({})", w.min(h) / 2.0)));
}
let ri = (ro - t).max(0.0);
Ok(Region2 { outer: rounded_rect(w, h, ro)?, holes: vec![rounded_rect(w - 2.0 * t, h - 2.0 * t, ri)?.reversed()] })
}
Profile::RoundTube { diameter, wall } => {
let (d, t) = (dim("diameter", diameter)?, dim("wall", wall)?);
less_half("wall", t, "the diameter", d)?;
Ok(Region2 { outer: Loop2::circle(Vec2::ZERO, d / 2.0), holes: vec![Loop2::circle(Vec2::ZERO, d / 2.0 - t).reversed()] })
}
Profile::Angle { width, height, thickness, root_radius, toe_radius } => {
let (a, b, t) = (dim("width", width)?, dim("height", height)?, dim("thickness", thickness)?);
less("thickness", t, "the shorter leg", a.min(b))?;
let r1 = radius("root_radius", root_radius.unwrap_or(0.0))?;
let r2 = radius("toe_radius", toe_radius.unwrap_or(0.0))?;
at_most("`toe_radius`", r2, t, "the thickness")?;
at_most("`root_radius` + `toe_radius`", r1 + r2, a.min(b) - t, "the inside length of the shorter leg")?;
let pts = [(0.0, 0.0), (a, 0.0), (a, t), (t, t), (t, b), (0.0, b)];
let radii = [0.0, 0.0, r2, r1, r2, 0.0];
Ok(Region2 { outer: rounded_polygon(&shifted(&pts, a, b), &radii)?, holes: Vec::new() })
}
Profile::Channel { height, width, web, flange, root_radius, toe_radius } => {
let (h, b, tw, tf) = (dim("height", height)?, dim("width", width)?, dim("web", web)?, dim("flange", flange)?);
less("web", tw, "width", b)?;
less_half("flange", tf, "the height", h)?;
let r1 = radius("root_radius", root_radius.unwrap_or(0.0))?;
let r2 = radius("toe_radius", toe_radius.unwrap_or(0.0))?;
at_most("`toe_radius`", r2, tf, "the flange thickness")?;
at_most("`root_radius` + `toe_radius`", r1 + r2, b - tw, "the inside length of a flange")?;
at_most("`root_radius`", r1, (h - 2.0 * tf) / 2.0, "half the web's inside height")?;
let pts = [(0.0, 0.0), (b, 0.0), (b, tf), (tw, tf), (tw, h - tf), (b, h - tf), (b, h), (0.0, h)];
let radii = [0.0, 0.0, r2, r1, r1, r2, 0.0, 0.0];
Ok(Region2 { outer: rounded_polygon(&shifted(&pts, b, h), &radii)?, holes: Vec::new() })
}
Profile::IBeam { height, width, web, flange, root_radius } => {
let (h, b, tw, tf) = (dim("height", height)?, dim("width", width)?, dim("web", web)?, dim("flange", flange)?);
less("web", tw, "width", b)?;
less_half("flange", tf, "the height", h)?;
let r = radius("root_radius", root_radius.unwrap_or(0.0))?;
at_most("`root_radius`", r, (b - tw) / 2.0, "the inside length of a flange")?;
at_most("`root_radius`", r, (h - 2.0 * tf) / 2.0, "half the web's inside height")?;
let (x, y, w, f) = (b / 2.0, h / 2.0, tw / 2.0, h / 2.0 - tf);
let pts = [(-x, -y), (x, -y), (x, -f), (w, -f), (w, f), (x, f), (x, y), (-x, y), (-x, f), (-w, f), (-w, -f), (-x, -f)];
let radii = [0.0, 0.0, 0.0, r, r, 0.0, 0.0, 0.0, 0.0, r, r, 0.0];
let pts: Vec<Vec2> = pts.iter().map(|&(x, y)| Vec2::new(x, y)).collect();
Ok(Region2 { outer: rounded_polygon(&pts, &radii)?, holes: Vec::new() })
}
}
}
}
/// Points given with the heel at the origin, moved so a `w` × `h` bounding box is centred on it.
fn shifted(pts: &[(f64, f64)], w: f64, h: f64) -> Vec<Vec2> {
pts.iter().map(|&(x, y)| Vec2::new(x - w / 2.0, y - h / 2.0)).collect()
}
fn rounded_rect(w: f64, h: f64, r: f64) -> Result<Loop2> {
let (x, y) = (w / 2.0, h / 2.0);
rounded_polygon(&[Vec2::new(-x, -y), Vec2::new(x, -y), Vec2::new(x, y), Vec2::new(-x, y)], &[r; 4])
}
/// The counter-clockwise polygon `pts` with each corner rounded by its radius in `radii` (0: a
/// sharp corner). Convex and concave corners alike: the arc is tangent to both edges. An error
/// when the arcs at the two ends of an edge need more than its length.
pub fn rounded_polygon(pts: &[Vec2], radii: &[f64]) -> Result<Loop2> {
let n = pts.len();
if n < 3 || radii.len() != n {
return Err(invalid("a profile polygon needs 3 or more corners, each with a radius"));
}
// Each corner as (where its arc starts, where it ends, the arc).
let mut corners: Vec<(Vec2, Vec2, Option<Seg2>)> = Vec::with_capacity(n);
for i in 0..n {
let (Some(&prev), Some(&v), Some(&next), Some(&r)) = (pts.get((i + n - 1) % n), pts.get(i), pts.get((i + 1) % n), radii.get(i)) else {
return Err(invalid("a profile polygon corner is missing"));
};
let (Some(d1), Some(d2)) = ((v - prev).normalized(), (next - v).normalized()) else {
return Err(invalid("a profile polygon has two corners in one place"));
};
let turn = d1.cross(d2).atan2(d1.dot(d2));
if r <= 0.0 || turn.abs() < 1e-12 {
corners.push((v, v, None));
continue;
}
if turn.abs() > std::f64::consts::PI - 1e-9 {
return Err(invalid("a profile polygon turns back on itself"));
}
let l = r * (turn.abs() / 2.0).tan();
let (t1, t2) = (v - d1 * l, v + d2 * l);
let side = if turn > 0.0 { d1.perp() } else { d1.perp() * -1.0 };
let center = t1 + side * r;
corners.push((t1, t2, Some(Seg2::Arc { center, radius: r, start: (t1 - center).angle(), sweep: turn })));
}
let mut segs = Vec::with_capacity(2 * n);
for i in 0..n {
let (Some(&(_, out, arc)), Some(&(inn, _, _)), Some(&a), Some(&b)) =
(corners.get(i), corners.get((i + 1) % n), pts.get(i), pts.get((i + 1) % n))
else {
return Err(invalid("a profile polygon corner is missing"));
};
if let Some(arc) = arc {
segs.push(arc);
}
// The edge left between the two arcs must run the edge's way (or be empty).
let along = (inn - out).dot(b - a);
if along < -1e-9 * (1.0 + a.dist(b)) {
return Err(invalid(format!("profile corner radii do not fit along an edge {:.4} mm long", a.dist(b))));
}
if out.dist(inn) > 1e-9 {
segs.push(Seg2::Line { a: out, b: inn });
}
}
Ok(Loop2 { segs })
}
/// Gauss–Legendre nodes and weights on [0, 1] (5 points).
const GL5: [(f64, f64); 5] = [
(0.046_910_077_030_668, 0.118_463_442_528_094_5),
(0.230_765_344_947_158_5, 0.239_314_335_249_683_2),
(0.5, 0.284_444_444_444_444_4),
(0.769_234_655_052_841_5, 0.239_314_335_249_683_2),
(0.953_089_922_969_332, 0.118_463_442_528_094_5),
];
/// The boundary integrals of one loop, as it runs (counter-clockwise positive): area, ∫x dA,
/// ∫y dA, ∫x² dA, ∫y² dA, ∫xy dA, by Green's theorem.
fn loop_moments(l: &Loop2) -> [f64; 6] {
let mut m = [0.0; 6];
for seg in &l.segs {
let pieces = match seg {
Seg2::Line { .. } => 1,
_ => 16,
};
for k in 0..pieces {
let h = 1.0 / pieces as f64;
for (x, wt) in GL5 {
let t = (k as f64 + x) * h;
let (p, dp) = (seg.point_at(t), seg.derivative(t));
let w = wt * h;
let terms = [
p.x * dp.y,
0.5 * p.x * p.x * dp.y,
-0.5 * p.y * p.y * dp.x,
p.x * p.x * p.x * dp.y / 3.0,
-p.y * p.y * p.y * dp.x / 3.0,
0.5 * p.x * p.x * p.y * dp.y,
];
for (acc, v) in m.iter_mut().zip(terms) {
*acc += w * v;
}
}
}
}
m
}
/// Points of `l` that include its extremes along x and y: every segment's ends, and where an arc
/// passes a quarter turn. Free-form segments add the polyline points within 1 µm.
fn extreme_points(l: &Loop2) -> Vec<Vec2> {
let mut out = Vec::new();
for seg in &l.segs {
match *seg {
Seg2::Line { a, b } => out.extend([a, b]),
Seg2::Arc { center, radius, start, sweep } => {
out.extend([seg.start(), seg.end()]);
let (lo, hi) = if sweep >= 0.0 { (start, start + sweep) } else { (start + sweep, start) };
let quarter = std::f64::consts::FRAC_PI_2;
let mut k = (lo / quarter).ceil();
// An arc turns at most once around: five quarter turns at most.
for _ in 0..5 {
let t = k * quarter;
if t > hi {
break;
}
out.push(center + Vec2::from_angle(t) * radius);
k += 1.0;
}
}
_ => out.extend(seg.polyline(1e-3)),
}
}
out
}
/// The section properties of `region` (outer loop and holes, whichever way each runs).
pub fn section(region: &Region2) -> Section {
let mut m = loop_moments(&region.outer.ccw());
for hole in &region.holes {
for (acc, v) in m.iter_mut().zip(loop_moments(&hole.ccw())) {
*acc -= v;
}
}
let [a, sx, sy, jyy, jxx, jxy] = m;
let (cx, cy) = if a.abs() > 1e-300 { (sx / a, sy / a) } else { (0.0, 0.0) };
let (mut lo, mut hi) = (Vec2::new(f64::INFINITY, f64::INFINITY), Vec2::new(f64::NEG_INFINITY, f64::NEG_INFINITY));
for p in extreme_points(&region.outer) {
lo = Vec2::new(lo.x.min(p.x), lo.y.min(p.y));
hi = Vec2::new(hi.x.max(p.x), hi.y.max(p.y));
}
let (width, height) = if lo.x <= hi.x { (hi.x - lo.x, hi.y - lo.y) } else { (0.0, 0.0) };
Section { area: a, centroid: [cx, cy], ixx: jxx - a * cy * cy, iyy: jyy - a * cx * cx, ixy: jxy - a * cx * cy, width, height }
}
/// Where `anchor` is on the profile made of `regions`, in the profile's own coordinates.
pub fn anchor_point(regions: &[Region2], anchor: Anchor) -> Vec2 {
let (mut lo, mut hi) = (Vec2::new(f64::INFINITY, f64::INFINITY), Vec2::new(f64::NEG_INFINITY, f64::NEG_INFINITY));
for p in regions.iter().flat_map(|r| extreme_points(&r.outer)) {
lo = Vec2::new(lo.x.min(p.x), lo.y.min(p.y));
hi = Vec2::new(hi.x.max(p.x), hi.y.max(p.y));
}
if !(lo.x <= hi.x && lo.y <= hi.y) {
return Vec2::ZERO;
}
let mid = Vec2::new((lo.x + hi.x) / 2.0, (lo.y + hi.y) / 2.0);
match anchor {
Anchor::Origin => Vec2::ZERO,
Anchor::Center => mid,
Anchor::Centroid => {
let (mut a, mut c) = (0.0, Vec2::ZERO);
for r in regions {
let s = section(r);
a += s.area;
c += Vec2::new(s.centroid[0], s.centroid[1]) * s.area;
}
if a > 1e-300 { c / a } else { mid }
}
Anchor::TopLeft => Vec2::new(lo.x, hi.y),
Anchor::Top => Vec2::new(mid.x, hi.y),
Anchor::TopRight => hi,
Anchor::Left => Vec2::new(lo.x, mid.y),
Anchor::Right => Vec2::new(hi.x, mid.y),
Anchor::BottomLeft => lo,
Anchor::Bottom => Vec2::new(mid.x, lo.y),
Anchor::BottomRight => Vec2::new(hi.x, lo.y),
}
}
/// `region` mirrored across its y axis (x → −x), its loops still running the way [`Region2`]
/// expects.
pub fn mirrored(region: &Region2) -> Region2 {
let m = |p: Vec2| Vec2::new(-p.x, p.y);
let seg = |g: &Seg2| match *g {
Seg2::Line { a, b } => Seg2::Line { a: m(a), b: m(b) },
Seg2::Arc { center, radius, start, sweep } => Seg2::Arc { center: m(center), radius, start: std::f64::consts::PI - start, sweep: -sweep },
Seg2::Cubic { p0, p1, p2, p3 } => Seg2::Cubic { p0: m(p0), p1: m(p1), p2: m(p2), p3: m(p3) },
Seg2::Conic { a, apex, b, w } => Seg2::Conic { a: m(a), apex: m(apex), b: m(b), w },
Seg2::Bezier { n, p } => Seg2::Bezier { n, p: p.map(m) },
};
let lp = |l: &Loop2| Loop2 { segs: l.segs.iter().map(seg).collect() }.reversed();
Region2 { outer: lp(&region.outer), holes: region.holes.iter().map(lp).collect() }
}
/// The directions a member's profile x and y take in the world, for a member running along `d`
/// (any length): the profile's y points up (world +Z) as far as the line allows and x = y × d, so
/// x × y runs along the line; a vertical member's x is world +X (a line leaning less than
/// [`VERTICAL_TOLERANCE`] counts as vertical, so rounding never turns a post). `angle` (radians) then turns the
/// profile counter-clockwise about the line, seen looking back from its end. `None` for a
/// direction of no length.
pub fn member_axes(d: Vec3, angle: f64) -> Option<(Vec3, Vec3)> {
let d = d.normalized()?;
let up = Vec3::Z - d * Vec3::Z.dot(d);
// `up` is as long as the sine of the line's lean from vertical.
let (x, y) = match up.normalized().filter(|_| up.len() > VERTICAL_TOLERANCE) {
Some(y) => (y.cross(d), y),
None => (Vec3::X, d.cross(Vec3::X)),
};
let (c, s) = (angle.cos(), angle.sin());
Some((x * c + y * s, y * c - x * s))
}
/// `region` turned by `angle` (radians, counter-clockwise) about its `anchor` point and moved so
/// that point lands on `at`.
pub fn placed(region: &Region2, anchor: Vec2, at: Vec2, angle: f64) -> Region2 {
let (c, s) = (angle.cos(), angle.sin());
let map = |p: Vec2| {
let q = p - anchor;
at + Vec2::new(c * q.x - s * q.y, s * q.x + c * q.y)
};
let seg = |g: &Seg2| match *g {
Seg2::Line { a, b } => Seg2::Line { a: map(a), b: map(b) },
Seg2::Arc { center, radius, start, sweep } => Seg2::Arc { center: map(center), radius, start: start + angle, sweep },
Seg2::Cubic { p0, p1, p2, p3 } => Seg2::Cubic { p0: map(p0), p1: map(p1), p2: map(p2), p3: map(p3) },
Seg2::Conic { a, apex, b, w } => Seg2::Conic { a: map(a), apex: map(apex), b: map(b), w },
Seg2::Bezier { n, p } => Seg2::Bezier { n, p: p.map(map) },
};
let lp = |l: &Loop2| Loop2 { segs: l.segs.iter().map(seg).collect() };
Region2 { outer: lp(&region.outer), holes: region.holes.iter().map(lp).collect() }
}
+413
View File
@@ -0,0 +1,413 @@
//! Profile library tests. Expected values are worked out by hand: rectangles and circles, and
//! composite rectangles by the parallel-axis theorem; each fillet adds or removes a spandrel of
//! (1 − π/4) r².
#![allow(clippy::unwrap_used, clippy::expect_used, clippy::panic)]
use super::*;
use std::f64::consts::PI;
const SPANDREL: f64 = 1.0 - PI / 4.0;
fn close(got: f64, want: f64, what: &str) {
let tol = 1e-9 * (1.0 + want.abs());
assert!((got - want).abs() <= tol, "{what}: got {got}, want {want}");
}
fn profile(json: serde_json::Value) -> Profile {
serde_json::from_value(json).unwrap()
}
fn sec(p: &Profile) -> Section {
let r = p.region().unwrap();
assert!(r.outer.is_closed(1e-9), "{} outline is closed", p.kind());
assert!(r.outer.is_ccw(), "{} outline runs counter-clockwise", p.kind());
for h in &r.holes {
assert!(h.is_closed(1e-9) && !h.is_ccw(), "{} holes are closed and clockwise", p.kind());
}
// The exact boundary integral agrees with the region's own area.
let s = section(&r);
close(s.area, r.area(), "area against Region2::area");
s
}
/// Area, centroid (in the profile's centred frame) and centroidal Ixx, Iyy of rectangles
/// given as (x0, y0, x1, y1), combined.
fn rects(parts: &[(f64, f64, f64, f64)]) -> (f64, f64, f64, f64, f64) {
let a: f64 = parts.iter().map(|&(x0, y0, x1, y1)| (x1 - x0) * (y1 - y0)).sum();
let cx = parts.iter().map(|&(x0, y0, x1, y1)| (x1 - x0) * (y1 - y0) * (x0 + x1) / 2.0).sum::<f64>() / a;
let cy = parts.iter().map(|&(x0, y0, x1, y1)| (x1 - x0) * (y1 - y0) * (y0 + y1) / 2.0).sum::<f64>() / a;
let ixx = parts
.iter()
.map(|&(x0, y0, x1, y1)| {
let (b, h) = (x1 - x0, y1 - y0);
b * h * h * h / 12.0 + b * h * ((y0 + y1) / 2.0 - cy).powi(2)
})
.sum();
let iyy = parts
.iter()
.map(|&(x0, y0, x1, y1)| {
let (b, h) = (x1 - x0, y1 - y0);
h * b * b * b / 12.0 + b * h * ((x0 + x1) / 2.0 - cx).powi(2)
})
.sum();
(a, cx, cy, ixx, iyy)
}
fn check_rects(s: &Section, parts: &[(f64, f64, f64, f64)], what: &str) {
let (a, cx, cy, ixx, iyy) = rects(parts);
close(s.area, a, &format!("{what} area"));
close(s.centroid[0], cx, &format!("{what} centroid x"));
close(s.centroid[1], cy, &format!("{what} centroid y"));
close(s.ixx, ixx, &format!("{what} Ixx"));
close(s.iyy, iyy, &format!("{what} Iyy"));
}
#[test]
fn bar_is_a_rectangle() {
let s = sec(&profile(serde_json::json!({"kind": "bar", "width": 40, "height": 10})));
close(s.area, 400.0, "area");
close(s.ixx, 40.0 * 1000.0 / 12.0, "Ixx = b h³ / 12");
close(s.iyy, 10.0 * 64_000.0 / 12.0, "Iyy = h b³ / 12");
close(s.ixy, 0.0, "Ixy");
close(s.width, 40.0, "width");
close(s.height, 10.0, "height");
}
#[test]
fn rounded_bar_loses_four_spandrels() {
let s = sec(&profile(serde_json::json!({"kind": "bar", "width": 30, "height": 20, "corner_radius": 4})));
close(s.area, 600.0 - 4.0 * SPANDREL * 16.0, "area");
// Fully rounded: a 20 × 20 bar with radius 10 is a circle.
let s = sec(&profile(serde_json::json!({"kind": "bar", "width": 20, "height": 20, "corner_radius": 10})));
close(s.area, PI * 100.0, "fully rounded area");
close(s.ixx, PI * 10f64.powi(4) / 4.0, "fully rounded Ixx");
}
#[test]
fn round_bar_and_tube() {
let s = sec(&Profile::RoundBar { diameter: 20.0 });
close(s.area, PI * 100.0, "bar area");
close(s.ixx, PI * 20f64.powi(4) / 64.0, "bar Ixx = π d⁴ / 64");
close(s.iyy, s.ixx, "bar Iyy");
let s = sec(&Profile::RoundTube { diameter: 42.4, wall: 3.2 });
let d = 42.4 - 6.4;
close(s.area, PI / 4.0 * (42.4f64.powi(2) - d * d), "tube area");
close(s.ixx, PI / 64.0 * (42.4f64.powi(4) - d.powi(4)), "tube Ixx = π (D⁴ − d⁴) / 64");
}
#[test]
fn rect_tube_sharp_and_rounded() {
let s = sec(&profile(serde_json::json!({"kind": "rect_tube", "width": 60, "height": 40, "wall": 3, "outer_radius": 0})));
close(s.area, 60.0 * 40.0 - 54.0 * 34.0, "sharp area");
close(s.ixx, (60.0 * 40f64.powi(3) - 54.0 * 34f64.powi(3)) / 12.0, "sharp Ixx");
close(s.iyy, (40.0 * 60f64.powi(3) - 34.0 * 54f64.powi(3)) / 12.0, "sharp Iyy");
// Defaults: outer radius 2 t = 6, inner radius 3.
let p = profile(serde_json::json!({"kind": "rect_tube", "width": 40, "height": 40, "wall": 3}));
assert_eq!(p.filled(), Profile::RectTube { width: 40.0, height: 40.0, wall: 3.0, outer_radius: Some(6.0) });
let s = sec(&p);
let outer = 1600.0 - 4.0 * SPANDREL * 36.0;
let inner = 34.0 * 34.0 - 4.0 * SPANDREL * 9.0;
close(s.area, outer - inner, "rounded area");
close(s.centroid[0], 0.0, "centroid x");
close(s.ixy, 0.0, "Ixy");
}
#[test]
fn angle_sharp_matches_two_rectangles() {
let (a, b, t) = (60.0, 40.0, 5.0);
let s = sec(&profile(serde_json::json!({"kind": "angle", "width": a, "height": b, "thickness": t, "root_radius": 0, "toe_radius": 0})));
let (x0, y0) = (-a / 2.0, -b / 2.0);
check_rects(&s, &[(x0, y0, x0 + a, y0 + t), (x0, y0 + t, x0 + t, y0 + b)], "angle");
assert!(s.ixy.abs() > 1.0, "an unequal angle has a product of inertia");
}
#[test]
fn angle_root_adds_and_toes_remove_spandrels() {
let (a, b, t) = (50.0, 50.0, 5.0);
let p = profile(serde_json::json!({"kind": "angle", "width": a, "height": b, "thickness": t}));
let s = sec(&p);
// Defaults: root radius t, toe radius t / 2.
close(s.area, t * (a + b - t) + SPANDREL * t * t - 2.0 * SPANDREL * (t / 2.0).powi(2), "area");
// An equal angle is symmetric about its diagonal.
close(s.centroid[0], s.centroid[1], "centroid on the diagonal");
close(s.ixx, s.iyy, "Ixx = Iyy");
}
#[test]
fn channel_and_i_beam_sharp_match_rectangles() {
let (h, b, tw, tf) = (100.0, 50.0, 6.0, 8.0);
let s = sec(&profile(serde_json::json!({"kind": "channel", "height": h, "width": b, "web": tw, "flange": tf, "root_radius": 0})));
let (x0, y0) = (-b / 2.0, -h / 2.0);
let parts = [(x0, y0, x0 + b, y0 + tf), (x0, y0 + tf, x0 + tw, y0 + h - tf), (x0, y0 + h - tf, x0 + b, y0 + h)];
check_rects(&s, &parts, "channel");
close(s.ixy, 0.0, "channel Ixy");
let (h, b, tw, tf) = (100.0, 50.0, 4.5, 7.0);
let s = sec(&profile(serde_json::json!({"kind": "i_beam", "height": h, "width": b, "web": tw, "flange": tf, "root_radius": 0})));
close(s.area, 2.0 * b * tf + (h - 2.0 * tf) * tw, "I area");
close(s.ixx, (b * h.powi(3) - (b - tw) * (h - 2.0 * tf).powi(3)) / 12.0, "I Ixx");
close(s.iyy, (2.0 * tf * b.powi(3) + (h - 2.0 * tf) * tw.powi(3)) / 12.0, "I Iyy");
}
#[test]
fn i_beam_root_radii_add_four_spandrels() {
let (h, b, tw, tf, r) = (100.0, 50.0, 4.5, 7.0, 7.0);
let s = sec(&profile(serde_json::json!({"kind": "i_beam", "height": h, "width": b, "web": tw, "flange": tf, "root_radius": r})));
close(s.area, 2.0 * b * tf + (h - 2.0 * tf) * tw + 4.0 * SPANDREL * r * r, "area");
close(s.centroid[0], 0.0, "centroid x");
close(s.centroid[1], 0.0, "centroid y");
}
#[test]
fn every_kind_example_builds() {
for k in profile_kinds() {
assert_eq!(k.example.kind(), k.kind);
let s = sec(&k.example);
assert!(s.area > 0.0 && s.ixx > 0.0 && s.iyy > 0.0, "{}: {s:?}", k.kind);
let (w, h) = k.example.size();
close(s.width, w, &format!("{} width", k.kind));
close(s.height, h, &format!("{} height", k.kind));
}
}
#[test]
fn dimensions_that_do_not_fit_are_refused() {
let bad = [
serde_json::json!({"kind": "bar", "width": f64::MAX, "height": 1}),
serde_json::json!({"kind": "bar", "width": -1, "height": 1}),
serde_json::json!({"kind": "bar", "width": 0, "height": 1}),
serde_json::json!({"kind": "bar", "width": 10, "height": 10, "corner_radius": 6}),
serde_json::json!({"kind": "round_bar", "diameter": 1e300}),
serde_json::json!({"kind": "rect_tube", "width": 10, "height": 10, "wall": 5}),
serde_json::json!({"kind": "rect_tube", "width": 10, "height": 10, "wall": 1, "outer_radius": -1}),
serde_json::json!({"kind": "round_tube", "diameter": 10, "wall": 5}),
serde_json::json!({"kind": "angle", "width": 10, "height": 10, "thickness": 10}),
serde_json::json!({"kind": "angle", "width": 10, "height": 10, "thickness": 2, "root_radius": 9}),
serde_json::json!({"kind": "angle", "width": 10, "height": 10, "thickness": 2, "toe_radius": 3}),
serde_json::json!({"kind": "channel", "height": 10, "width": 10, "web": 2, "flange": 5}),
serde_json::json!({"kind": "channel", "height": 10, "width": 10, "web": 10, "flange": 2}),
serde_json::json!({"kind": "i_beam", "height": 100, "width": 50, "web": 5, "flange": 7, "root_radius": 30}),
];
for j in bad {
let p: Profile = serde_json::from_value(j.clone()).unwrap();
assert!(p.region().is_err(), "{j} is refused");
}
for j in [
serde_json::json!({"kind": "bar", "width": 1}),
serde_json::json!({"kind": "bar", "width": 1, "height": 1, "colour": 2}),
serde_json::json!({"kind": "hexagon"}),
] {
assert!(serde_json::from_value::<Profile>(j.clone()).is_err(), "{j} is not a profile");
}
}
#[test]
fn non_finite_dimensions_are_refused() {
for v in [f64::NAN, f64::INFINITY, f64::NEG_INFINITY] {
assert!(Profile::RoundBar { diameter: v }.region().is_err());
assert!(Profile::RectTube { width: 40.0, height: 40.0, wall: 3.0, outer_radius: Some(v) }.region().is_err());
}
}
#[test]
fn placing_moves_the_anchor_onto_the_point() {
let p = profile(serde_json::json!({"kind": "angle", "width": 60, "height": 40, "thickness": 5}));
let r = p.region().unwrap();
let s0 = section(&r);
let anchor = anchor_point(std::slice::from_ref(&r), Anchor::BottomLeft);
close(anchor.x, -30.0, "bottom left x");
close(anchor.y, -20.0, "bottom left y");
let at = Vec2::new(100.0, 50.0);
let moved = placed(&r, anchor, at, PI / 2.0);
let s1 = section(&moved);
close(s1.area, s0.area, "area is kept");
// Turned a quarter: the heel stays on `at`, the 60 mm leg now runs up and the 40 mm one left.
close(s1.width, 40.0, "turned width");
close(s1.height, 60.0, "turned height");
let c = at + Vec2::new(-(s0.centroid[1] + 20.0), s0.centroid[0] + 30.0);
close(s1.centroid[0], c.x, "centroid x");
close(s1.centroid[1], c.y, "centroid y");
close(s1.ixx, s0.iyy, "Ixx after a quarter turn");
let centre = anchor_point(std::slice::from_ref(&r), Anchor::Centroid);
let s2 = section(&placed(&r, centre, Vec2::ZERO, 0.0));
close(s2.centroid[0], 0.0, "centroid anchor x");
close(s2.centroid[1], 0.0, "centroid anchor y");
}
#[test]
fn member_axes_are_square_to_the_line_and_keep_up() {
for d in [Vec3::X, Vec3::new(0.0, -3.0, 0.0), Vec3::new(1.0, 2.0, 3.0), Vec3::Z, Vec3::new(0.0, 0.0, -2.0), Vec3::new(1e-12, 0.0, 1.0)] {
for angle in [0.0, 0.3, -PI / 2.0] {
let (x, y) = member_axes(d, angle).unwrap();
let n = d.normalized().unwrap();
close(x.len(), 1.0, "|x|");
close(y.len(), 1.0, "|y|");
close(x.dot(y), 0.0, "x ⟂ y");
close(x.cross(y).dist(n), 0.0, "x × y runs along the line");
}
}
// Unturned: a horizontal member's y is world up; a vertical one's x is world X.
let (_, y) = member_axes(Vec3::new(1.0, 1.0, 0.0), 0.0).unwrap();
close(y.dist(Vec3::Z), 0.0, "horizontal y");
let (x, _) = member_axes(Vec3::Z, 0.0).unwrap();
close(x.dist(Vec3::X), 0.0, "vertical x");
let (x, _) = member_axes(Vec3::new(0.0, 0.0, -1.0), 0.0).unwrap();
close(x.dist(Vec3::X), 0.0, "downward x");
// A quarter turn takes x to where y was.
let (_, y0) = member_axes(Vec3::X, 0.0).unwrap();
let (x1, _) = member_axes(Vec3::X, PI / 2.0).unwrap();
close(x1.dist(y0), 0.0, "quarter turn");
assert!(member_axes(Vec3::ZERO, 0.0).is_none());
}
#[test]
fn mirroring_keeps_the_section_and_flips_x() {
let p = profile(serde_json::json!({"kind": "angle", "width": 60, "height": 40, "thickness": 5}));
let r = p.region().unwrap();
let m = mirrored(&r);
assert!(m.outer.is_ccw() && m.outer.is_closed(1e-9), "the outline still runs counter-clockwise");
let (a, b) = (section(&r), section(&m));
close(b.area, a.area, "area");
close(b.centroid[0], -a.centroid[0], "centroid x");
close(b.centroid[1], a.centroid[1], "centroid y");
close(b.ixy, -a.ixy, "Ixy changes sign");
let tube = mirrored(&profile(serde_json::json!({"kind": "rect_tube", "width": 40, "height": 20, "wall": 2})).region().unwrap());
assert!(tube.holes.iter().all(|h| !h.is_ccw()), "holes still run clockwise");
}
#[test]
fn anchors_of_an_off_centre_region() {
// A sketch profile need not be centred: a 10 × 20 box from (5, 5).
let r = Region2 {
outer: Loop2::polygon(&[Vec2::new(5.0, 5.0), Vec2::new(15.0, 5.0), Vec2::new(15.0, 25.0), Vec2::new(5.0, 25.0)]),
holes: Vec::new(),
};
let at = |a| anchor_point(std::slice::from_ref(&r), a);
assert_eq!(at(Anchor::Origin), Vec2::ZERO);
assert_eq!(at(Anchor::Center), Vec2::new(10.0, 15.0));
assert_eq!(at(Anchor::BottomLeft), Vec2::new(5.0, 5.0));
assert_eq!(at(Anchor::TopRight), Vec2::new(15.0, 25.0));
assert_eq!(at(Anchor::Left), Vec2::new(5.0, 15.0));
let c = at(Anchor::Centroid);
close(c.x, 10.0, "centroid x");
close(c.y, 15.0, "centroid y");
}
#[test]
fn default_radii_shrink_to_fit_thick_sections() {
// Each of these failed with the defaults at their usual size (#4003 review).
for j in [
serde_json::json!({"kind": "angle", "width": 20, "height": 20, "thickness": 10}),
serde_json::json!({"kind": "channel", "height": 50, "width": 10, "web": 6, "flange": 2}),
serde_json::json!({"kind": "channel", "height": 20, "width": 40, "web": 5, "flange": 8}),
serde_json::json!({"kind": "i_beam", "height": 100, "width": 10, "web": 6, "flange": 5}),
] {
let p = profile(j.clone());
let s = sec(&p);
assert!(s.area > 0.0, "{j}");
}
// A 20 × 20 × 10 angle has 10 mm of leg inside: root and toe keep their 2 : 1 ratio.
let Profile::Angle { root_radius: Some(r1), toe_radius: Some(r2), .. } =
profile(serde_json::json!({"kind": "angle", "width": 20, "height": 20, "thickness": 10})).filled()
else {
panic!("an angle")
};
close(r1, 20.0 / 3.0, "root");
close(r2, 10.0 / 3.0, "toe");
// One given, the other default takes what is left.
let Profile::Angle { toe_radius: Some(r2), .. } =
profile(serde_json::json!({"kind": "angle", "width": 20, "height": 20, "thickness": 10, "root_radius": 8})).filled()
else {
panic!("an angle")
};
close(r2, 2.0, "toe after an 8 mm root");
// A channel 20 tall with 8 mm flanges has 4 mm of web inside: two roots of 2.
let Profile::Channel { root_radius: Some(r1), .. } =
profile(serde_json::json!({"kind": "channel", "height": 20, "width": 40, "web": 5, "flange": 8})).filled()
else {
panic!("a channel")
};
close(r1, 2.0, "channel root");
// Defaults that fit are left as they are.
assert_eq!(
profile(serde_json::json!({"kind": "angle", "width": 50, "height": 50, "thickness": 5})).filled(),
Profile::Angle { width: 50.0, height: 50.0, thickness: 5.0, root_radius: Some(5.0), toe_radius: Some(2.5) }
);
}
#[test]
fn radii_given_too_large_or_too_small_are_refused_by_name() {
for (j, name) in [
(serde_json::json!({"kind": "angle", "width": 20, "height": 20, "thickness": 10, "toe_radius": 11}), "toe_radius"),
(serde_json::json!({"kind": "angle", "width": 20, "height": 20, "thickness": 10, "root_radius": 9, "toe_radius": 2}), "root_radius"),
(serde_json::json!({"kind": "channel", "height": 20, "width": 40, "web": 5, "flange": 8, "root_radius": 3}), "root_radius"),
(serde_json::json!({"kind": "i_beam", "height": 100, "width": 10, "web": 6, "flange": 5, "root_radius": 3}), "root_radius"),
(serde_json::json!({"kind": "rect_tube", "width": 40, "height": 40, "wall": 3, "outer_radius": 1e-12}), "outer_radius"),
(serde_json::json!({"kind": "bar", "width": 40, "height": 10, "corner_radius": 0.001}), "corner_radius"),
] {
let err = profile(j.clone()).region().unwrap_err().to_string();
assert!(err.contains(name), "{j}: {err}");
}
// The value named is the one given, not twice it.
let err = profile(serde_json::json!({"kind": "rect_tube", "width": 10, "height": 10, "wall": 5})).region().unwrap_err().to_string();
assert!(err.contains("`wall` (5)") && err.contains("half the smaller side (5)"), "{err}");
let err = profile(serde_json::json!({"kind": "channel", "height": 10, "width": 10, "web": 2, "flange": 5})).region().unwrap_err().to_string();
assert!(err.contains("`flange` (5)"), "{err}");
}
#[test]
fn a_spec_holds_expressions_and_resolves_them() {
let spec: ProfileSpec = serde_json::from_value(serde_json::json!({"kind": "rect_tube", "width": 40, "height": "H", "wall": "2 * t"})).unwrap();
assert_eq!(spec.dims.get("width").map(|e| e.as_str()), Some("40"));
// Saved as one object of text.
assert_eq!(serde_json::to_value(&spec).unwrap(), serde_json::json!({"kind": "rect_tube", "width": "40", "height": "H", "wall": "2 * t"}));
let p = spec
.resolve(|_, e| match e.as_str() {
"40" => Ok(40.0),
"H" => Ok(60.0),
"2 * t" => Ok(3.0),
other => Err(crate::DocError::Invalid(other.into())),
})
.unwrap();
assert_eq!(p, Profile::RectTube { width: 40.0, height: 60.0, wall: 3.0, outer_radius: None });
// A value that is not a finite length is refused, naming the dimension.
let err = spec.resolve(|name, _| Ok(if name == "wall" { f64::NAN } else { 40.0 })).unwrap_err().to_string();
assert!(err.contains("wall"), "{err}");
let mut labels = Vec::new();
crate::walk::Walk::walk_exprs(&spec, &mut |(label, e, kind, _)| labels.push((label, e.as_str().to_string(), kind)));
assert_eq!(labels, [("Height", "H".into(), Kind::Length), ("Wall", "2 * t".into(), Kind::Length), ("Width", "40".into(), Kind::Length)]);
for (j, why) in [
(serde_json::json!({"width": 40}), "kind"),
(serde_json::json!({"kind": "hexagon", "width": 40}), "unknown profile kind"),
(serde_json::json!({"kind": "round_bar"}), "needs `diameter`"),
(serde_json::json!({"kind": "round_bar", "diameter": 10, "colour": 2}), "no dimension `colour`"),
(serde_json::json!({"kind": "round_bar", "diameter": true}), "number or an expression"),
(serde_json::json!({"kind": "round_bar", "diameter": " "}), "number or an expression"),
(serde_json::json!({"kind": "round_bar", "diameter": "x".repeat(5000)}), "number or an expression"),
] {
let err = serde_json::from_value::<ProfileSpec>(j.clone()).unwrap_err().to_string();
assert!(err.contains(why), "{j}: {err}");
}
}
#[test]
fn descriptions_round_to_a_tenth_of_a_micron() {
let p = Profile::RectTube { width: 25.4, height: 25.4, wall: 0.125 * 25.4, outer_radius: None };
assert_eq!(p.description(), "Rect Tube 25.4x25.4x3.175");
assert_eq!(Profile::RoundBar { diameter: 1.0 / 3.0 }.description(), "Round Bar 0.3333");
}
#[test]
fn a_line_a_hair_off_vertical_is_vertical() {
// Rounding noise must not turn a post a quarter turn (#4003 review).
let (x0, _) = member_axes(Vec3::Z, 0.0).unwrap();
for lean in [1e-8, -1e-8, 1e-12] {
let (x, _) = member_axes(Vec3::new(lean, 0.0, 1.0), 0.0).unwrap();
close(x.dist(x0), 0.0, "near-vertical x");
let (x, _) = member_axes(Vec3::new(0.0, lean, 1.0), 0.0).unwrap();
close(x.dist(x0), 0.0, "near-vertical x");
}
// A lean you can see is a lean: its y tips toward up.
let (_, y) = member_axes(Vec3::new(1e-3, 0.0, 1.0), 0.0).unwrap();
assert!(y.z > 0.0 && y.x < 0.0, "{y:?}");
}
+251
View File
@@ -0,0 +1,251 @@
//! A Single hole placed by distances from reference edges (#37): up to two straight edges of the
//! face it is drilled into, each with the distance of the hole's centre from that edge's line,
//! measured in the face's plane. The edges are found again by their persistent names, else by
//! their stored points, so the hole follows them when the part changes.
use solidcraft_geom::{Mesh, Vec3};
use crate::{DocError, ModelBody, ModelState, Result};
/// The most reference edges a hole takes.
pub const MAX_HOLE_REFERENCES: usize = 2;
/// A reference edge's line in the face's plane.
#[derive(Clone, Copy, Debug, PartialEq)]
pub struct ReferenceLine {
/// A point on the line: the edge's middle, moved into the face's plane.
pub point: Vec3,
/// Along the edge (unit).
pub along: Vec3,
/// In the plane, square to the edge, toward the side the face is on (unit): the way the
/// distance grows.
pub toward: Vec3,
}
impl ReferenceLine {
/// How far `p` is from the line, toward the face's side (negative on the other side).
pub fn distance(&self, p: Vec3) -> f64 {
(p - self.point).dot(self.toward)
}
/// The point of the line nearest `p`.
pub fn foot(&self, p: Vec3) -> Vec3 {
self.point + self.along * (p - self.point).dot(self.along)
}
}
/// The face a referenced hole is drilled into (its plane) and its reference edges' lines.
#[derive(Clone, Debug, PartialEq)]
pub struct ReferenceFrame {
/// The body and the face (its index).
pub body: String,
pub face: usize,
/// A point on the face's plane.
pub origin: Vec3,
/// The face's outward unit normal.
pub normal: Vec3,
pub lines: Vec<ReferenceLine>,
/// The reference edges found (their indices in the body's mesh), one per line.
pub edges: Vec<usize>,
}
impl ReferenceFrame {
/// `p` moved square onto the face's plane.
pub fn onto_plane(&self, p: Vec3) -> Vec3 {
p - self.normal * (p - self.origin).dot(self.normal)
}
/// How far `p` is from each line (see [`ReferenceLine::distance`]).
pub fn distances(&self, p: Vec3) -> Vec<f64> {
let p = self.onto_plane(p);
self.lines.iter().map(|l| l.distance(p)).collect()
}
/// The hole's centre at `distances` (one per line) from the lines, in the face's plane. With
/// one line, `near` moves square to it (it keeps its place along the edge); with two, the
/// centre is where both distances hold.
pub fn place(&self, near: Vec3, distances: &[f64]) -> Result<Vec3> {
if let Some((i, _)) = distances.iter().enumerate().find(|(_, d)| !(d.is_finite() && **d >= 0.0 && **d < 1e9)) {
return Err(DocError::Invalid(format!("reference distance {} must be a length of 0 or more", i + 1)));
}
let p = self.onto_plane(near);
match (self.lines.as_slice(), distances) {
([], []) => Ok(p),
([a], [d]) => Ok(p + a.toward * (d - a.distance(p))),
([a, b], [d1, d2]) => {
// p + r1 * a.toward + s * e2, with e2 square to a in the plane: a's distance is
// then d1, and s gives b's.
let (r1, r2) = (d1 - a.distance(p), d2 - b.distance(p));
let e2 = self.normal.cross(a.toward);
let across = b.toward.dot(e2);
if across.abs() < 1e-6 {
return Err(DocError::Invalid("the reference edges are parallel: pick edges that cross".into()));
}
Ok(p + a.toward * r1 + e2 * ((r2 - r1 * a.toward.dot(b.toward)) / across))
}
_ => Err(DocError::Invalid("a hole takes one distance for each reference edge".into())),
}
}
}
/// The reference frame of a hole placed at `at` (on the surface), drilled along `dir` (into the
/// material), from its reference edges: a point on each edge and, when it has one, the edge's
/// persistent name. A fresh pick (`exact`) must lie on its edge; a stored one is found by its
/// name, else the edge nearest its point. The face is the flat face under `at` that faces the
/// drill, else the one the edges border.
pub fn reference_frame(st: &ModelState, at: Vec3, dir: Vec3, edges: &[(Vec3, Option<&str>)], exact: bool) -> Result<ReferenceFrame> {
if edges.len() > MAX_HOLE_REFERENCES {
return Err(DocError::Invalid(format!("a hole takes at most {MAX_HOLE_REFERENCES} reference edges")));
}
let dir = dir.normalized().ok_or_else(|| DocError::Invalid("hole direction".into()))?;
if !at.is_finite() || edges.iter().any(|(p, _)| !p.is_finite()) {
return Err(DocError::Invalid("reference edges need finite points".into()));
}
let b = body_at(st, at).ok_or_else(|| DocError::Invalid("no body at the hole for its reference edges".into()))?;
let m = b.mesh();
let size = b.body.size().max(1e-9);
let mut found = Vec::with_capacity(edges.len());
for (k, (p, name)) in edges.iter().enumerate() {
found.push(find_edge(b, &m, k, *p, *name, exact)?);
}
let (face, origin, normal) = flat_face(b, &m, at, dir, &found).ok_or_else(|| {
DocError::Invalid("reference edges need the hole on a flat face: no flat face facing the drill at the hole or along its edges".into())
})?;
let mut lines = Vec::with_capacity(found.len());
for (k, (a, z, _)) in found.iter().enumerate() {
let flat = |q: Vec3| q - normal * (q - origin).dot(normal);
let (a, z) = (flat(*a), flat(*z));
let along = (z - a).normalized().ok_or_else(|| DocError::Invalid(format!("reference edge {} is square to the face", k + 1)))?;
let across = normal.cross(along).normalized().ok_or_else(|| DocError::Invalid(format!("reference edge {} is square to the face", k + 1)))?;
let mid = (a + z) * 0.5;
// The side the face is on next to the edge; an edge the face doesn't border (or borders
// on both sides) takes the side the hole is on.
let side = face_side(&m, face, mid, across, normal, size).unwrap_or_else(|| if (at - mid).dot(across) < 0.0 { -1.0 } else { 1.0 });
lines.push(ReferenceLine { point: mid, along, toward: across * side });
}
if let [a, b] = lines.as_slice()
&& a.along.cross(b.along).len() < 1e-6
{
return Err(DocError::Invalid("the reference edges are parallel: pick edges that cross".into()));
}
Ok(ReferenceFrame { body: b.name.clone(), face, origin, normal, lines, edges: found.iter().map(|(_, _, i)| *i).collect() })
}
/// Whether `p` lies on the flat face a reference frame was made for.
pub fn on_reference_face(st: &ModelState, frame: &ReferenceFrame, p: Vec3) -> bool {
let Some(b) = st.bodies.iter().find(|b| b.name == frame.body) else { return false };
let m = b.mesh();
let tol = (b.body.size() * 1e-4).max(1e-6);
m.triangles
.iter()
.zip(&m.tri_face)
.filter(|(_, f)| **f as usize == frame.face)
.any(|(t, _)| m.tri(t).is_some_and(|[a, bb, c]| crate::appearance::closest_on_triangle(p, a, bb, c).dist(p) <= tol))
}
/// The persistent names of the edges at `edges`, on the body the hole at `at` is drilled into
/// (empty where an edge has none).
pub fn reference_edge_names(st: &ModelState, at: Vec3, edges: &[Vec3]) -> Vec<String> {
match body_at(st, at) {
Some(b) => crate::naming::edge_names_at(b, edges),
None => Vec::new(),
}
}
/// The (non-mesh) body whose surface is nearest `p`.
fn body_at(st: &ModelState, p: Vec3) -> Option<&ModelBody> {
st.bodies
.iter()
.filter(|b| !b.body.is_mesh())
.filter_map(|b| crate::appearance::nearest_face(b, p).map(|(d, _)| (d, b)))
.min_by(|a, b| a.0.total_cmp(&b.0))
.map(|(_, b)| b)
}
/// How far `p` is from an edge's polyline.
fn to_polyline(p: Vec3, e: &[Vec3]) -> f64 {
e.windows(2).map(|w| p.dist_to_segment(w[0], w[1])).fold(f64::INFINITY, f64::min)
}
/// Reference edge `k` (its ends, and its index in the mesh), found by `name`, else by the edge
/// nearest `p`: one that runs through `p` for a fresh pick, within a quarter of the body for a
/// stored one. It must be straight.
fn find_edge(b: &ModelBody, m: &Mesh, k: usize, p: Vec3, name: Option<&str>, exact: bool) -> Result<(Vec3, Vec3, usize)> {
let size = b.body.size().max(1e-9);
let by_name = name.filter(|n| !n.is_empty()).and_then(|n| crate::naming::locate_edge(b, n, p).ok()).map(|hit| hit.edge);
let i = match by_name {
Some(i) => i,
None => {
let reach = if exact { (size * 1e-2).max(1e-3) } else { size * 0.25 };
m.edges
.iter()
.enumerate()
.map(|(i, e)| (to_polyline(p, e), i))
.filter(|(d, _)| d.is_finite())
.min_by(|a, b| a.0.total_cmp(&b.0))
.filter(|(d, _)| *d <= reach)
.map(|(_, i)| i)
.ok_or_else(|| {
DocError::Invalid(if exact {
format!("reference edge {}: no edge at [{}, {}, {}]", k + 1, p.x, p.y, p.z)
} else {
format!("reference edge {} no longer exists", k + 1)
})
})?
}
};
let e = m.edges.get(i).ok_or_else(|| DocError::Invalid(format!("reference edge {} no longer exists", k + 1)))?;
let (Some(a), Some(z)) = (e.first().copied(), e.last().copied()) else {
return Err(DocError::Invalid(format!("reference edge {} no longer exists", k + 1)));
};
let len = a.dist(z);
let straight = len > size * 1e-9 && e.iter().all(|q| q.dist_to_segment(a, z) <= 1e-5 * (1.0 + len));
if !straight {
return Err(DocError::Invalid(format!("reference edge {} is not straight: pick a straight edge", k + 1)));
}
Ok((a, z, i))
}
/// The flat face a referenced hole goes into (its index, a point on it and its outward normal):
/// the one under `at` when it faces the drill, else the one the edges border that faces it most.
fn flat_face(b: &ModelBody, m: &Mesh, at: Vec3, dir: Vec3, edges: &[(Vec3, Vec3, usize)]) -> Option<(usize, Vec3, Vec3)> {
let size = b.body.size().max(1e-9);
let plane = |f: usize| match crate::kernel::face_surface(&b.body, f) {
// Outward, so against the drill.
Some(crate::kernel::FaceSurface::Plane { normal, point }) => {
let normal: Vec3 = normal.into();
let n = if normal.dot(dir) > 0.0 { -normal } else { normal };
(n.dot(dir) < -1e-3).then_some((f, point, n))
}
_ => None,
};
if let Some((d, f)) = crate::appearance::nearest_face(b, at)
&& d <= (size * 1e-4).max(1e-6)
&& let Some(hit) = plane(f)
{
return Some(hit);
}
// The faces every edge borders.
let mut faces: Vec<usize> =
edges.first().and_then(|(_, _, i)| m.edge_faces.get(*i)).map(|fs| fs.iter().map(|f| *f as usize).collect()).unwrap_or_default();
for (_, _, i) in edges.iter().skip(1) {
let theirs = m.edge_faces.get(*i).map(Vec::as_slice).unwrap_or(&[]);
faces.retain(|f| theirs.iter().any(|g| *g as usize == *f));
}
faces.into_iter().filter_map(plane).min_by(|x, y| x.2.dot(dir).total_cmp(&y.2.dot(dir)))
}
/// Which side of an edge (through `mid`, square to it in the plane along `across`) face `face`
/// lies on: +1 or −1, or `None` when both sides or neither are that face.
fn face_side(m: &Mesh, face: usize, mid: Vec3, across: Vec3, normal: Vec3, size: f64) -> Option<f64> {
let step = (size * 1e-3).max(1e-6);
let lands = |s: f64| {
let from = mid + across * (s * step) + normal * step;
m.raycast(from, -normal).is_some_and(|(t, tri)| t <= 2.0 * step && m.tri_face.get(tri).is_some_and(|f| *f as usize == face))
};
match (lands(1.0), lands(-1.0)) {
(true, false) => Some(1.0),
(false, true) => Some(-1.0),
_ => None,
}
}
+4
View File
@@ -14,6 +14,8 @@ pub use body_transfer::{valid_transfer_matrix, validate_body_transfer};
pub mod canvas;
mod clipboard;
pub use clipboard::{clone_expression, remap_topology};
mod component_removal;
pub use component_removal::RemovedTree;
pub mod config;
pub mod construct;
pub mod display_quality;
@@ -27,7 +29,9 @@ mod feature_refs;
pub use face_anchor::{FaceAnchor, FaceAttachmentStatus};
pub mod format;
mod format_offsets;
pub mod frame;
mod history_names;
pub mod hole_reference;
pub use format_offsets::whole_profile_selection_from_value;
pub mod joints;
mod lineage;
+100 -19
View File
@@ -43,6 +43,8 @@ impl Walk for f64 {}
impl Walk for usize {}
impl Walk for u32 {}
impl Walk for ProfileSel {}
impl Walk for std::collections::BTreeMap<String, String> {}
impl Walk for crate::frame::Anchor {}
impl Walk for solidcraft_sketch::Sketch {}
impl Walk for solidcraft_sketch::PatternAlignment {}
impl Walk for solidcraft_kernel::StepNode {}
@@ -317,7 +319,7 @@ impl<F: Fn(usize, usize) -> &'static str> Label for F {
/// The offsets and angles of a plane, outermost first, and an explicit origin's coordinates
/// (nesting is capped like every walk over a plane), the construction plane it is built on, and
/// the plane itself.
/// the plane itself. Feature references also reach the geometry used to construct a plane.
impl Walk for PlaneRef {
fn walk_exprs<'a>(&'a self, f: &mut dyn FnMut(ExprItem<'a>)) {
let mut p = self;
@@ -372,24 +374,10 @@ impl Walk for PlaneRef {
}
}
fn walk_refs<'a>(&'a self, f: &mut dyn FnMut(RefItem<'a>)) {
let mut p = self;
for _ in 0..64 {
match p {
PlaneRef::Offset { base, .. } | PlaneRef::AtAngle { base, .. } | PlaneRef::Flipped { base, .. } => p = base,
PlaneRef::Construction { name } => return f(Ref::Feature(name)),
_ => return,
}
}
self.walk_feature_refs(f, 0);
}
fn walk_refs_mut<'a>(&'a mut self, f: &mut dyn FnMut(RefItemMut<'a>)) {
let mut p = self;
for _ in 0..64 {
match p {
PlaneRef::Offset { base, .. } | PlaneRef::AtAngle { base, .. } | PlaneRef::Flipped { base, .. } => p = base,
PlaneRef::Construction { name } => return f(Ref::Feature(name)),
_ => return,
}
}
self.walk_feature_refs_mut(f, 0);
}
fn walk_geometry<'a>(&'a self, f: &mut dyn FnMut(GeoItem<'a>)) {
f(Geo::Plane(self))
@@ -399,9 +387,92 @@ impl Walk for PlaneRef {
}
}
impl PlaneRef {
fn walk_feature_refs<'a>(&'a self, f: &mut dyn FnMut(RefItem<'a>), depth: usize) {
if depth >= 64 {
return;
}
match self {
Self::Construction { name } => f(Ref::Feature(name)),
Self::Offset { base, .. } | Self::AtAngle { base, .. } | Self::Flipped { base, .. } => base.walk_feature_refs(f, depth + 1),
Self::Midplane { a, b } | Self::TwoEdges { a, b } | Self::Perpendicular { plane: a, line: b } => {
a.walk_feature_refs(f, depth + 1);
b.walk_feature_refs(f, depth + 1);
}
Self::ThreePoints { a, b, c } => {
a.walk_feature_refs(f, depth + 1);
b.walk_feature_refs(f, depth + 1);
c.walk_feature_refs(f, depth + 1);
}
Self::Tangent { face, .. } | Self::AlongPath { path: face, .. } => face.walk_feature_refs(f, depth + 1),
Self::Origin { .. } | Self::Custom { .. } | Self::Placed { .. } | Self::Face { .. } => {}
}
}
fn walk_feature_refs_mut<'a>(&'a mut self, f: &mut dyn FnMut(RefItemMut<'a>), depth: usize) {
if depth >= 64 {
return;
}
match self {
Self::Construction { name } => f(Ref::Feature(name)),
Self::Offset { base, .. } | Self::AtAngle { base, .. } | Self::Flipped { base, .. } => base.walk_feature_refs_mut(f, depth + 1),
Self::Midplane { a, b } | Self::TwoEdges { a, b } | Self::Perpendicular { plane: a, line: b } => {
a.walk_feature_refs_mut(f, depth + 1);
b.walk_feature_refs_mut(f, depth + 1);
}
Self::ThreePoints { a, b, c } => {
a.walk_feature_refs_mut(f, depth + 1);
b.walk_feature_refs_mut(f, depth + 1);
c.walk_feature_refs_mut(f, depth + 1);
}
Self::Tangent { face, .. } | Self::AlongPath { path: face, .. } => face.walk_feature_refs_mut(f, depth + 1),
Self::Origin { .. } | Self::Custom { .. } | Self::Placed { .. } | Self::Face { .. } => {}
}
}
}
impl GeoRef {
// Carry the depth across GeoRef -> PlaneRef -> GeoRef, rather than restarting its cap.
fn walk_feature_refs<'a>(&'a self, f: &mut dyn FnMut(RefItem<'a>), depth: usize) {
if depth >= 64 {
return;
}
match self {
Self::Axis { name } | Self::ConstructPoint { name } => f(Ref::Feature(name)),
Self::Plane { plane } => plane.walk_feature_refs(f, depth + 1),
Self::Point { .. }
| Self::Origin
| Self::Vertex { .. }
| Self::Edge { .. }
| Self::Face { .. }
| Self::World { .. }
| Self::SketchPoint { .. }
| Self::SketchCurve { .. } => {}
}
}
fn walk_feature_refs_mut<'a>(&'a mut self, f: &mut dyn FnMut(RefItemMut<'a>), depth: usize) {
if depth >= 64 {
return;
}
match self {
Self::Axis { name } | Self::ConstructPoint { name } => f(Ref::Feature(name)),
Self::Plane { plane } => plane.walk_feature_refs_mut(f, depth + 1),
Self::Point { .. }
| Self::Origin
| Self::Vertex { .. }
| Self::Edge { .. }
| Self::Face { .. }
| Self::World { .. }
| Self::SketchPoint { .. }
| Self::SketchCurve { .. } => {}
}
}
}
/// Construction axes and points: the expressions of the planes they are built from (and a point
/// along a path's distance), and their references to the model. They name no sketches, features
/// or bodies: copies remap their geometry references on their own (`Feature::remap_clone`).
/// along a path's distance), and their feature and geometry references. Copies still remap
/// sketch ids and persistent topology names through their geometry (`Feature::remap_clone`).
fn plane_exprs<'a>(refs: Vec<&'a GeoRef>, f: &mut dyn FnMut(ExprItem<'a>)) {
for r in refs {
if let GeoRef::Plane { plane } = r {
@@ -420,6 +491,16 @@ fn plane_exprs_mut<'a>(refs: Vec<&'a mut GeoRef>, f: &mut dyn FnMut(ExprItemMut<
macro_rules! construct_geometry {
() => {
fn walk_refs<'a>(&'a self, f: &mut dyn FnMut(RefItem<'a>)) {
for r in self.refs() {
r.walk_feature_refs(f, 0);
}
}
fn walk_refs_mut<'a>(&'a mut self, f: &mut dyn FnMut(RefItemMut<'a>)) {
for r in self.refs_mut() {
r.walk_feature_refs_mut(f, 0);
}
}
fn walk_geometry<'a>(&'a self, f: &mut dyn FnMut(GeoItem<'a>)) {
for r in self.refs() {
f(Geo::Construct(r));
@@ -1298,3 +1298,112 @@ fn intersect_with_every_body_still_drops_the_ones_it_misses() -> crate::Result<(
assert!((volume(&s, "Near") - 500.0).abs() < 1e-6);
Ok(())
}
/// #451: a spherical shell (r 18.5 to 40, revolved on XY) cut from a block, or joined with it.
/// Swept with its two radial lines, the shell had zero-area faces on the axis joining the outer
/// sphere to the inner one, and a cut through the inner sphere's pole failed. As a solid with a
/// void, the boolean took its shells one at a time: a cut through both spheres kept only the piece
/// in the hollow, and a join failed.
#[test]
fn spherical_shell_cuts_and_joins_a_block_crossing_its_hollow() {
let r: f64 = 18.5;
// ∫∫ √(R² − y² − z²) dy dz over the blocks' 8 × 8 section, the inner integral in closed form,
// the outer by Simpson's rule.
let under = |big: f64| {
let inner = |y: f64| {
let a2 = big * big - y * y;
let f = |z: f64| 0.5 * (z * (a2 - z * z).sqrt() + a2 * (z / a2.sqrt()).asin());
f(4.0) - f(-4.0)
};
let n = 200;
let h = 8.0 / n as f64;
(0..n / 2).map(|i| -4.0 + 2.0 * i as f64 * h).map(|y| inner(y) + 4.0 * inner(y + h) + inner(y + 2.0 * h)).sum::<f64>() * h / 3.0
};
// From x = 8 to the inner sphere, and from the outer sphere to x = 50.
let (hollow, beyond) = (under(r) - 8.0 * 64.0, 50.0 * 64.0 - under(40.0));
let shell = 4.0 / 3.0 * std::f64::consts::PI * (40.0f64.powi(3) - r.powi(3));
for (x0, length, operation, want) in [
(-4.0, 8.0, "cut", 512.0),
(8.0, 12.0, "cut", hollow),
(8.0, 42.0, "cut", hollow + beyond),
(8.0, 12.0, "join", shell + hollow),
(8.0, 42.0, "join", shell + hollow + beyond),
] {
let mut s = Session::default();
let mut run = |c: &str, p: Value| s.execute(c, &p).unwrap();
run("solid.box", json!({"corner": [x0, -4, -4], "length": length, "width": 8, "height": 8, "body_name": "Block"}));
run("sketch.create", json!({"plane": "XY", "name": "Ring"}));
run("sketch.line", json!({"points": [[-40, 0], [40, 0]]}));
run("sketch.arc.center_point", json!({"center": [0, 0], "start": [40, 0], "end": [-40, 0]}));
run("sketch.arc.center_point", json!({"center": [0, 0], "start": [r, 0], "end": [-r, 0]}));
run("sketch.finish", json!({}));
run("solid.revolve", json!({"sketch": "Ring", "profiles": [{"point": [0, 30]}], "axis": "l1", "operation": operation, "targets": ["Block"]}));
// A cut through both spheres leaves two pieces, one each side of the shell.
let state = s.model.state();
let got: f64 = state.bodies.iter().map(|b| solidcraft_kernel::measure(&b.body).unwrap().volume).sum();
println!("#451 {operation} of the block from x = {x0} to {}: {got:.6} mm³ in {} bodies, expected {want:.6}", x0 + length, state.bodies.len());
assert!((got - want).abs() < 1e-4 * want, "{operation} from x = {x0} to {}: {got} vs {want}", x0 + length);
assert!(state.bodies.iter().all(|b| b.body.validity().is_empty()));
}
}
/// #4434: a Join whose profile stands apart from the body still joins it, as a second piece of
/// `Body1`, and says so; scripts read it from the reply as History shows it. A join that meets
/// the body, one that closes a cavity (a void is not a piece) and a Combine of bodies chosen
/// apart say nothing.
#[test]
fn join_that_meets_no_body_keeps_the_piece_and_says_so() {
let apart = "`Body1` is now in 2 separate pieces";
let two_squares = || {
let mut s = Session::default();
s.execute("sketch.create", &json!({"plane": "XY", "name": "Sketch1"})).unwrap();
s.execute("sketch.rectangle.two_point", &json!({"p0": [0, 0], "p1": [20, 20]})).unwrap();
s.execute("sketch.rectangle.two_point", &json!({"p0": [40, 0], "p1": [60, 20]})).unwrap();
s.execute(
"solid.extrude",
&json!({"sketch": "Sketch1", "profiles": [{"point": [10, 10]}], "distance": 10, "operation": "new", "name": "Extrude1"}),
)
.unwrap();
s
};
let mut s = two_squares();
let join = s
.execute(
"solid.extrude",
&json!({"sketch": "Sketch1", "profiles": [{"point": [50, 10]}], "distance": 10, "operation": "join", "name": "Extrude2"}),
)
.unwrap();
assert!(join["warning"].as_str().is_some_and(|w| w.contains(apart)), "{join}");
assert_eq!(s.model.results.last().and_then(|r| r.warning.as_deref()), join["warning"].as_str());
assert_eq!(s.model.state().bodies.iter().map(|b| b.name.as_str()).collect::<Vec<_>>(), ["Body1"]);
assert!((volume(&s, "Body1") - 8000.0).abs() < 1e-6, "{}", volume(&s, "Body1"));
// Both profiles at once, one on the body and one apart: joined as one tool, still told.
let mut s = two_squares();
let both = s
.execute("solid.extrude", &json!({"sketch": "Sketch1", "profiles": [{"point": [10, 10]}, {"point": [50, 10]}], "distance": 5, "start_offset": 10, "operation": "join"}))
.unwrap();
assert!(both["warning"].as_str().is_some_and(|w| w.contains(apart)), "{both}");
// A box joined apart from the body, then one bridging both pieces: only the first is told.
let mut s = two_squares();
let box_apart = s.execute("solid.box", &json!({"length": 10, "width": 10, "height": 10, "center": [10, 40, 5], "operation": "join"})).unwrap();
assert!(box_apart["warning"].as_str().is_some_and(|w| w.contains(apart)), "{box_apart}");
let bridge = s.execute("solid.box", &json!({"length": 10, "width": 30, "height": 10, "center": [10, 25, 5], "operation": "join"})).unwrap();
assert!(bridge["warning"].is_null(), "{bridge}");
// A lid joined on a cup closes a cavity: one piece with a void, nothing to say.
let mut s = Session::default();
s.execute("solid.box", &json!({"length": 20, "width": 20, "height": 10, "center": [0, 0, 5], "operation": "new"})).unwrap();
s.execute("solid.box", &json!({"length": 16, "width": 16, "height": 10, "center": [0, 0, 6], "operation": "cut"})).unwrap();
let lid = s.execute("solid.box", &json!({"length": 20, "width": 20, "height": 2, "center": [0, 0, 11], "operation": "join"})).unwrap();
assert_eq!(s.model.state().body("Body1").map(|b| b.body.shell_count()), Some(2));
assert!(lid["warning"].is_null(), "{lid}");
// Combine joins the bodies it is given, apart or not.
let mut s = Session::default();
s.execute("solid.box", &json!({"length": 10, "width": 10, "height": 10, "center": [0, 0, 5], "operation": "new", "body_name": "A"})).unwrap();
s.execute("solid.box", &json!({"length": 10, "width": 10, "height": 10, "center": [30, 0, 5], "operation": "new", "body_name": "B"})).unwrap();
let combine = s.execute("solid.combine", &json!({"target": "A", "tools": ["B"], "operation": "join"})).unwrap();
assert!(combine["warning"].is_null(), "{combine}");
}
+48 -15
View File
@@ -4,6 +4,8 @@
//! Browser items are keyed per component folder (`bodies`, `sketches`, `construction`): a body
//! by name, a sketch or construction plane by feature id.
use std::collections::BTreeMap;
use serde_json::{Value, json};
use solidcraft_doc::FeatureKind;
@@ -539,6 +541,23 @@ fn replace_body_name(v: &mut Value, old: &str, new: &str, names_body: bool, dept
}
}
/// A frame member feature's bodies by line id, as its own result made them: what pins each
/// member's name to its line. `None` for any other feature, or when they don't pair up.
fn member_pins(s: &Session, fid: u64) -> Option<BTreeMap<String, String>> {
let f = s.doc.feature(fid)?;
let result = s.model.result(fid)?;
let lines = solidcraft_doc::frame::member_line_ids(&result.state, &f.kind).ok()?;
let made: Vec<String> = result.state.bodies.iter().filter(|b| b.feature == fid).map(|b| b.name.clone()).collect();
(lines.len() == made.len()).then(|| lines.into_iter().zip(made).collect())
}
/// Whether the `i`-th new body of `f` is numbered by the body counter (`BodyN`): it has no stored
/// name of its own and is not numbered after the feature's first name (`Ribs (4)`).
pub(crate) fn counted(f: &solidcraft_doc::Feature, i: usize) -> bool {
let first = f.body_names.first().is_some_and(|n| !n.trim().is_empty());
f.body_names.get(i).is_none_or(|n| n.trim().is_empty()) && (f.shell_piece_order || i < f.body_names.len() || !first)
}
fn rename_body(s: &mut Session, p: &Value) -> Result<Value> {
let cmd = "body.rename";
let old = str_(p, "body").ok_or_else(|| bad(cmd, "`body` must be a body name"))?.to_string();
@@ -566,10 +585,6 @@ fn rename_body(s: &mut Session, p: &Value) -> Result<Value> {
// own, and every counted body after it would move down one (`Body3` becoming `Body1`) and
// break what names it. Those later features keep the names they made too (#1109): each one's
// own result holds them, also for bodies a later feature joins away.
let counted = |f: &solidcraft_doc::Feature, i: usize| {
let first = f.body_names.first().is_some_and(|n| !n.trim().is_empty());
f.body_names.get(i).is_none_or(|n| n.trim().is_empty()) && (f.shell_piece_order || i < f.body_names.len() || !first)
};
// Bodies later features name after this one (`Top (1)`, a split's other piece) keep their
// names too: they would otherwise follow it, and break what names them (#3510).
let derived = format!("{old} (");
@@ -589,22 +604,40 @@ fn rename_body(s: &mut Session, p: &Value) -> Result<Value> {
.collect(),
None => Vec::new(),
};
// Frame members are named by their lines (#4003): each keeps the name it has now on its
// line, whichever lines come and go later, and the renamed one takes its new name.
let later_pins: Vec<Option<BTreeMap<String, String>>> = later.iter().map(|(id, _)| member_pins(s, *id)).collect();
let own_pins = member_pins(s, fid).and_then(|mut pins| {
let line = pins.iter().find(|(_, n)| **n == old).map(|(line, _)| line.clone())?;
pins.insert(line, name.to_string());
Some(pins)
});
let d = s.doc_mut();
for (id, made) in &later {
for ((id, made), pins) in later.iter().zip(later_pins) {
if let Some(f) = d.feature_mut(*id) {
f.body_names.clone_from(made);
if let (Some(pins), FeatureKind::FrameMember { names, .. }) = (pins, &mut f.kind) {
*names = pins;
f.body_names.clear();
} else {
f.body_names.clone_from(made);
}
}
}
let f = d.feature_mut(fid).ok_or_else(|| bad(cmd, "the body's feature is gone"))?;
while f.body_names.len() < siblings.len().max(k + 1) {
let i = f.body_names.len();
f.body_names.push(siblings.get(i).cloned().unwrap_or_default());
}
for (slot, current) in f.body_names.iter_mut().zip(&siblings) {
slot.clone_from(current);
}
if let Some(slot) = f.body_names.get_mut(k) {
*slot = name.to_string();
if let (Some(pins), FeatureKind::FrameMember { names, .. }) = (own_pins, &mut f.kind) {
*names = pins;
f.body_names.clear();
} else {
while f.body_names.len() < siblings.len().max(k + 1) {
let i = f.body_names.len();
f.body_names.push(siblings.get(i).cloned().unwrap_or_default());
}
for (slot, current) in f.body_names.iter_mut().zip(&siblings) {
slot.clone_from(current);
}
if let Some(slot) = f.body_names.get_mut(k) {
*slot = name.to_string();
}
}
// Later features refer to bodies by name.
let mut failed = None;
+33 -30
View File
@@ -11,6 +11,8 @@ use super::CommandSpec;
use crate::params::{bad, bool_, str_, string_list, vec3};
use crate::{Result, Session};
#[path = "component_drag.rs"]
mod drag;
#[path = "component_matrix.rs"]
pub(super) mod matrix;
#[path = "component_properties.rs"]
@@ -27,7 +29,7 @@ pub static COMMANDS: &[CommandSpec] = &[
CommandSpec::new("component.create", "New Component", new_component)
.at("SOLID", "ASSEMBLE")
.icon("component")
.params("name?, parent?: component id or name (default: the active one); parent_path?: exact parent placement; activate?: bool (default true)"),
.params("name?, parent?: component id or name (default: the active one); parent_path?: exact parent placement; activate?: bool (default true); grounded?: bool (default: true for the design's first part, false otherwise)"),
CommandSpec::new("component.from_bodies", "Create Components from Bodies", from_bodies)
.icon("component")
.params("bodies: [names] → one new component per body, named after it"),
@@ -54,7 +56,12 @@ pub static COMMANDS: &[CommandSpec] = &[
.params("component (or occurrence): what to place again; path?: validates selected occurrence; parent?: component (default: the same parent); translate?: [x,y,z]. Copies the selected effective transform, including pending moves"),
CommandSpec::new("component.paste_new", "Paste New", paste_new).icon("paste").params("component: independently copy its nested definition graph and history, materials and styles; occurrence?, path?: selected source placement; translate?: [x,y,z]. Reassigned external bodies become base geometry; retained external links and omitted boundary joints are reported"),
CommandSpec::new("occurrence.move", "Move Occurrence", move_occurrence).icon("move")
.params("occurrence; path?: exact placement; space?: local|world (default local); translate?: [x,y,z]; axis?: [x,y,z], angle?: radians or \"30 deg\", origin?: [x,y,z]; matrix?: [12 or 16 numbers] (instead of translate/axis/angle/origin: a rigid move as a row-major 3x4 rotation-and-translation or 4x4 matrix, flat or as rows; one that is a rotation only up to rounding is orthonormalised, a scale, shear or mirror is refused); tolerance?: largest accepted |RᵀR − I| (default 1e-9, at most 1e-3); capture?: bool (default true; false keeps it pending until Capture Position). Nested occurrence definitions remain shared"),
.params("occurrence; path?: exact placement; space?: local|world (default local); translate?: [x,y,z]; axis?: [x,y,z], angle?: radians or \"30 deg\", origin?: [x,y,z]; matrix?: [12 or 16 numbers] (instead of translate/axis/angle/origin: a rigid move as a row-major 3x4 rotation-and-translation or 4x4 matrix, flat or as rows; one that is a rotation only up to rounding is orthonormalised, a scale, shear or mirror is refused); tolerance?: largest accepted |RᵀR − I| (default 1e-9, at most 1e-3); capture?: bool (default true; false keeps it pending until Capture Position); move_grounded?: bool (default false: a grounded occurrence refuses; true moves it and it stays grounded). Nested occurrence definitions remain shared"),
CommandSpec::new("occurrence.drag", "Drag Occurrence", drag::drag).icon("move").params(
"occurrence or path: exact placement; at: [x,y,z] world point on it; point: [x,y,z] where it goes. Moves the placement by \
point - at (with any chain of joints it is in that is joined to nothing grounded) and captures its position; other pending \
moves stay pending. Shared definitions move in all placements. Grounded parts and parts joints hold to something fixed are refused (joint.reach moves those)",
),
CommandSpec::new("occurrence.ground", "Ground", ground).icon("ground").params("occurrence; grounded?: bool (default toggles)"),
CommandSpec::new("component.capture_position", "Capture Position", capture).at("SOLID", "POSITION").icon("capture").params("keeps pending occurrence moves"),
CommandSpec::new("component.revert_position", "Revert Position", revert).at("SOLID", "POSITION").icon("revert").noundo().params("occurrences?: [ids] (default all); drops selected pending occurrence moves"),
@@ -110,10 +117,10 @@ pub(super) fn valid_position(m: &Mat) -> bool {
pub(super) fn new_component(s: &mut Session, p: &Value) -> Result<Value> {
let cmd = "component.create";
if let Some(params) = p.as_object()
&& let Some(key) = params.keys().find(|key| !matches!(key.as_str(), "name" | "parent" | "parent_path" | "activate"))
&& let Some(key) = params.keys().find(|key| !matches!(key.as_str(), "name" | "parent" | "parent_path" | "activate" | "grounded"))
{
let hint = if params.contains_key("bodies") { "; use component.move_bodies or component.from_bodies to move bodies" } else { "" };
return Err(bad(cmd, format!("unknown parameter `{key}`; accepted parameters: name, parent, parent_path, activate{hint}")));
return Err(bad(cmd, format!("unknown parameter `{key}`; accepted parameters: name, parent, parent_path, activate, grounded{hint}")));
}
let parent = if p.get("parent").is_some() { component(s, p, "parent", cmd)? } else { s.active_component };
let parent_path = if let Some(value) = p.get("parent_path") {
@@ -135,7 +142,16 @@ pub(super) fn new_component(s: &mut Session, p: &Value) -> Result<Value> {
if parent_path.len() >= 64 {
return Err(bad(cmd, "new component exceeds occurrence depth limit"));
}
let grounded = match p.get("grounded") {
None => None,
Some(v) => Some(v.as_bool().ok_or_else(|| bad(cmd, "grounded must be true or false"))?),
};
let id = s.doc_mut().add_component(str_(p, "name"), parent)?;
if let Some(grounded) = grounded
&& let Some(o) = s.doc_mut().occurrences.iter_mut().find(|o| o.component == id)
{
o.grounded = grounded;
}
if p.get("activate").and_then(Value::as_bool).unwrap_or(true) {
let mut path = parent_path;
if let Some(o) = s.doc.occurrence_of(id) {
@@ -145,8 +161,8 @@ pub(super) fn new_component(s: &mut Session, p: &Value) -> Result<Value> {
s.active_occurrence_path = Some(path);
}
let name = s.doc.components.iter().find(|c| c.id == id).map(|c| c.name.clone()).unwrap_or_default();
let occ = s.doc.occurrence_of(id).map(|o| o.id);
Ok(json!({"component": id, "name": name, "parent": parent, "occurrence": occ}))
let occ = s.doc.occurrence_of(id);
Ok(json!({"component": id, "name": name, "parent": parent, "occurrence": occ.map(|o| o.id), "grounded": occ.is_some_and(|o| o.grounded)}))
}
fn from_bodies(s: &mut Session, p: &Value) -> Result<Value> {
@@ -244,31 +260,15 @@ fn delete(s: &mut Session, p: &Value) -> Result<Value> {
if id == 0 {
return Err(bad(cmd, "the design itself can't be deleted"));
}
let gone: Vec<u64> = s.doc.components.iter().filter(|c| s.doc.component_within(c.id, id)).map(|c| c.id).collect();
if s.doc.features.iter().any(|feature| {
!gone.contains(&feature.component)
&& matches!(&feature.kind, FeatureKind::BodyTransfer { from, to, .. } if gone.contains(from) || gone.contains(to))
}) {
return Err(bad(
cmd,
"component supplies a recorded body transfer outside this subtree; remove that transfer history before deleting its source",
));
}
let feats: Vec<u64> = s.doc.features.iter().filter(|f| gone.contains(&f.component)).map(|f| f.id).collect();
let d = s.doc_mut();
for f in &feats {
let _ = d.delete_feature(*f);
}
d.components.retain(|c| !gone.contains(&c.id));
d.remove_configuration_components(&gone);
d.occurrences.retain(|o| !gone.contains(&o.component) && !gone.contains(&o.parent));
let moved_out: Vec<String> = d.body_components.iter().filter(|(_, c)| gone.contains(c)).map(|(b, _)| b.clone()).collect();
d.body_components.retain(|_, c| !gone.contains(c));
d.body_offsets.retain(|b, _| !moved_out.contains(b));
let removed = s.doc_mut().remove_component_tree(id).map_err(|e| match e {
solidcraft_doc::DocError::Invalid(msg) => bad(cmd, msg),
e => e.into(),
})?;
let gone = removed.components;
if gone.contains(&s.active_component) {
s.active_component = 0;
}
Ok(json!({"deleted": gone, "features": feats}))
Ok(json!({"deleted": gone, "features": removed.features}))
}
fn unlock(s: &mut Session, p: &Value) -> Result<Value> {
@@ -410,8 +410,11 @@ fn move_occurrence(s: &mut Session, p: &Value) -> Result<Value> {
let cmd = "occurrence.move";
let id = occurrence(s, p, cmd)?;
let o = s.doc.occurrences.iter().find(|o| o.id == id).cloned().ok_or_else(|| bad(cmd, "occurrence"))?;
if o.grounded {
return Err(bad(cmd, format!("{} is grounded", o.name)));
if o.grounded && bool_(p, "move_grounded") != Some(true) {
return Err(bad(
cmd,
format!("{} is grounded: unground it first (occurrence.ground; a design's first part is grounded when it is made)", o.name),
));
}
if let Some(mut group) = s.held_by_rigid_group(id) {
// The outermost component the group holds it in moves it.
+2 -1
View File
@@ -275,7 +275,8 @@ pub(super) fn paste(
clone_path.push(root_occurrence);
if let Some(o) = scratch.doc_mut().occurrences.iter_mut().find(|o| o.id == root_occurrence) {
o.transform = transform;
o.grounded = source_occurrence.as_ref().is_some_and(|o| o.grounded);
// A copy starts free, even of a grounded part (#2804); the parts inside it keep theirs.
o.grounded = false;
}
if let Some(o) = &source_occurrence {
occurrences.insert(o.id, root_occurrence);
+20 -1
View File
@@ -5,7 +5,7 @@ fn run(s: &mut Session, cmd: &str, p: Value) -> Value {
s.execute(cmd, &p).unwrap()
}
fn component(s: &mut Session, name: &str) -> u64 {
run(s, "component.create", json!({"name":name}))["component"].as_u64().unwrap()
run(s, "component.create", json!({"name":name,"grounded":false}))["component"].as_u64().unwrap()
}
fn volume(s: &mut Session, id: u64) -> f64 {
run(s, "component.properties", json!({"component":id}))["total"]["volume_mm3"].as_f64().unwrap()
@@ -75,6 +75,25 @@ fn reassigned_body_is_an_independent_base_feature() {
near(volume(&mut s, new), 8.0);
}
#[test]
fn deleting_an_independent_base_keeps_the_copied_component() {
let mut s = Session::default();
box2(&mut s);
let part = component(&mut s, "Part");
run(&mut s, "component.move_bodies", json!({"component":part,"bodies":["Cube"]}));
let new = copy(&mut s, part)["component"].as_u64().unwrap();
let base = s.doc.features.iter().find(|f| f.component == new && matches!(f.kind, solidcraft_doc::FeatureKind::Import { .. })).unwrap();
assert!(!base.inserted && !s.doc.feature_owns_component(base));
let (base, others) = (base.id, s.doc.features.iter().filter(|f| f.component == new).count() - 1);
let (components, occurrences, joints) = (s.doc.components.clone(), s.doc.occurrences.clone(), s.doc.assembly.joints.clone());
let reply = run(&mut s, "timeline.delete", json!({"feature": base.to_string()}));
assert_eq!(reply["deleted"], json!([base]));
assert_eq!(s.doc.components, components);
assert_eq!(s.doc.occurrences, occurrences);
assert_eq!(s.doc.assembly.joints, joints);
assert_eq!(s.doc.features.iter().filter(|f| f.component == new).count(), others);
}
#[test]
fn clone_preserves_physical_material_and_independent_styles() {
let mut s = Session::default();
+162
View File
@@ -0,0 +1,162 @@
//! Dragging a part to put it somewhere (#2804): what the viewport's left-button drag on a free
//! part runs each frame, and what scripts and agents use to move a placement by a grabbed point.
//! A grounded part stays where it is, and so does one that joints hold to something fixed
//! (`joint.reach` moves those as far as their joints allow). A chain of joints joined to nothing
//! fixed moves as one, so its joints stay as they are.
use serde_json::{Value, json};
use solidcraft_doc::{mat_inverse, mat_mul};
use super::{move_vector, occurrence, occurrence_path, translation, valid_position};
use crate::params::bad;
use crate::{EngineError, Result, Session};
#[cfg(test)]
#[path = "component_drag_tests.rs"]
#[allow(clippy::unwrap_used, clippy::expect_used)]
mod tests;
/// Most placements one drag moves (the dragged one and the chain of joints it is in).
const MAX_MOVED: usize = 1000;
fn refused(message: String) -> EngineError {
EngineError::Other(message)
}
impl Session {
/// The placements a drag on the placement `path` moves, each by its exact path: that
/// placement first, then those a chain of joints joined to nothing fixed carries along with
/// it. An error says why it can't be dragged (grounded, held by joints to something fixed,
/// or held in a rigid group). Shared definitions move in all of their placements.
pub fn drag_group(&self, path: &[u64]) -> Result<Vec<Vec<u64>>> {
let placement = self.occurrence_placement(path)?;
let doc = &self.doc;
let name = |id: u64| doc.occurrences.iter().find(|o| o.id == id).map_or_else(|| id.to_string(), |o| o.name.clone());
let dragged = placement.occurrence;
if placement.grounded {
return Err(refused(format!("{} is grounded", placement.name)));
}
if let Some(group) = self.held_by_rigid_group(dragged) {
let group = doc.components.iter().find(|c| c.id == group).map(|c| c.name.clone()).unwrap_or_default();
return Err(refused(format!("{} is held in {group} by a rigid group: drag {group}, or Unlock Contents first", placement.name)));
}
// Is `o` the placement `top` or inside its component (in every placement of it)?
let within = |o: u64, top: u64| -> bool {
if o == top {
return true;
}
let (Some(o), Some(top)) = (doc.occurrences.iter().find(|x| x.id == o), doc.occurrences.iter().find(|x| x.id == top)) else {
return false;
};
o.parent != 0 && doc.component_within(o.parent, top.component)
};
let joints: Vec<_> = doc.assembly.joints.iter().filter(|j| !j.suppressed).collect();
let mut members = vec![dragged];
// Grow the chain one joint at a time; each pass adds a member or stops.
for _ in 0..MAX_MOVED {
let inside = |o: u64| members.iter().any(|m| within(o, *m));
let next = joints.iter().find_map(|j| match (inside(j.a.occurrence), inside(j.b.occurrence)) {
(true, false) => Some((j, j.b.occurrence)),
(false, true) => Some((j, j.a.occurrence)),
_ => None,
});
let Some((joint, other)) = next else {
break;
};
if other == 0 {
return Err(refused(format!("{} holds {} to the design's origin", joint.name, placement.name)));
}
// Only this member's placement is edited. A grounded ancestor fixes its own
// transform, while its free contents may still move inside that frame.
if doc.occurrences.iter().any(|o| o.id == other && o.grounded) {
return Err(refused(format!(
"{} holds {} to grounded {}: it moves only as far as its joints allow (joint.reach)",
joint.name,
placement.name,
name(other)
)));
}
if path.contains(&other) || within(dragged, other) {
return Err(refused(format!("{} holds {} to the assembly it is in: drag {}", joint.name, placement.name, name(other))));
}
members.push(other);
if members.len() > MAX_MOVED {
return Err(refused(format!("the chain of joints {} is in moves more than {MAX_MOVED} parts", placement.name)));
}
}
// A member inside another one moves with it (moving both would move it twice).
let tops: Vec<u64> = members.iter().copied().filter(|m| !members.iter().any(|o| o != m && within(*m, *o))).collect();
let mut out = vec![path.to_vec()];
for m in tops.into_iter().filter(|m| *m != dragged) {
let parent = doc.occurrences.iter().find(|o| o.id == m).map_or(0, |o| o.parent);
let mut chain = doc.first_path(parent);
chain.push(m);
out.push(chain);
}
Ok(out)
}
}
/// `occurrence.drag`: move a placement by `point - at` in world coordinates (and the free chain
/// of joints it is in), capturing its position.
pub(super) fn drag(s: &mut Session, p: &Value) -> Result<Value> {
let cmd = "occurrence.drag";
let path = if p.get("occurrence").is_some() {
let id = occurrence(s, p, cmd)?;
occurrence_path(s, p, id, cmd)?
} else {
let path = p
.get("path")
.and_then(Value::as_array)
.filter(|a| !a.is_empty() && a.len() <= 64)
.and_then(|a| a.iter().map(Value::as_u64).collect::<Option<Vec<_>>>())
.ok_or_else(|| bad(cmd, "give `occurrence` or `path` (1..64 occurrence ids)"))?;
s.occurrence_placement(&path).map_err(|e| bad(cmd, e.to_string()))?;
path
};
if p.get("at").is_none() || p.get("point").is_none() {
return Err(bad(cmd, "`at` and `point` must both be given"));
}
let at = move_vector(p, "at", Default::default(), true, cmd)?;
let point = move_vector(p, "point", Default::default(), true, cmd)?;
let t = point - at;
let world_move = translation(t);
let group = s.drag_group(&path).map_err(|e| bad(cmd, e.to_string()))?;
let dragged = s.occurrence_placement(&path).map_err(|e| bad(cmd, e.to_string()))?;
let inverse = mat_inverse(&dragged.parent_world).ok_or_else(|| bad(cmd, "parent frame is singular"))?;
let local_delta = mat_mul(&mat_mul(&inverse, &world_move), &dragged.parent_world);
// Joints refer to shared occurrence definitions, and the solver places them through their
// first path. Carry the selected placement's local change into that same frame before
// moving its peers. Using the pointer's world delta directly would break the joint when
// the selected instance has a different rotation from the first one.
let parent = s.doc.occurrences.iter().find(|o| o.id == dragged.occurrence).map_or(0, |o| o.parent);
let mut first_path = s.doc.first_path(parent);
first_path.push(dragged.occurrence);
let first = s.occurrence_placement(&first_path).map_err(|e| bad(cmd, e.to_string()))?;
let first_inverse = mat_inverse(&first.parent_world).ok_or_else(|| bad(cmd, "parent frame is singular"))?;
let world_delta = mat_mul(&mat_mul(&first.parent_world, &local_delta), &first_inverse);
// Every new position first, from the placements as they are, then all of them at once.
let mut moves = Vec::with_capacity(group.len());
for placement_path in &group {
let placement = s.occurrence_placement(placement_path).map_err(|e| bad(cmd, e.to_string()))?;
let inverse = mat_inverse(&placement.parent_world).ok_or_else(|| bad(cmd, "parent frame is singular"))?;
let delta =
if placement.occurrence == dragged.occurrence { local_delta } else { mat_mul(&mat_mul(&inverse, &world_delta), &placement.parent_world) };
let next = mat_mul(&delta, &placement.local);
if !valid_position(&next) {
return Err(bad(cmd, "drag exceeds supported numeric range"));
}
moves.push((placement.occurrence, next));
}
let moved: Vec<u64> = moves.iter().map(|(id, _)| *id).collect();
if world_move != solidcraft_doc::IDENTITY {
for (id, next) in moves {
s.pending_moves.remove(&id);
if let Some(o) = s.doc_mut().occurrences.iter_mut().find(|o| o.id == id) {
o.transform = next;
}
}
}
let continuous = p.get("continuous").and_then(Value::as_bool).unwrap_or(false);
Ok(json!({"occurrence": path.last(), "path": path, "moved": moved, "translate": [t.x, t.y, t.z], "continuous": continuous}))
}
@@ -0,0 +1,289 @@
//! The design's first part is grounded; dragging a free part moves it (#2804).
use serde_json::{Value, json};
use crate::Session;
fn run(s: &mut Session, command: &str, p: Value) -> Value {
s.execute(command, &p).unwrap_or_else(|e| panic!("{command} {p}: {e}"))
}
/// A new top-level part holding a 10 mm cube at `corner` (activates the design first, so the
/// part goes into it): (component, occurrence).
fn part(s: &mut Session, name: &str, corner: [f64; 3]) -> (u64, u64) {
run(s, "component.activate", json!({"component": "root"}));
let c = run(s, "component.create", json!({"name": name}));
run(s, "solid.box", json!({"length": 10, "width": 10, "height": 10, "corner": corner}));
run(s, "component.activate", json!({"component": "root"}));
(c["component"].as_u64().unwrap(), c["occurrence"].as_u64().unwrap())
}
fn grounded(s: &Session, occurrence: u64) -> bool {
s.doc.occurrences.iter().find(|o| o.id == occurrence).unwrap().grounded
}
/// Where the placement `path` puts its origin, in world coordinates (pending moves included).
fn origin(s: &Session, path: &[u64]) -> [f64; 3] {
let w = s.occurrence_placement(path).unwrap().world;
[w[3][0], w[3][1], w[3][2]]
}
fn near(a: [f64; 3], b: [f64; 3]) {
assert!(a.iter().zip(b).all(|(x, y)| (x - y).abs() < 1e-9), "{a:?} != {b:?}");
}
#[test]
fn the_first_top_level_part_is_grounded_and_later_parts_and_copies_are_free() {
let mut s = Session::default();
let (a, first) = part(&mut s, "A", [0.0, 0.0, 0.0]);
let created = s.doc.occurrences.iter().find(|o| o.id == first).cloned().unwrap();
assert!(created.grounded, "the first part is grounded");
let (_, second) = part(&mut s, "B", [20.0, 0.0, 0.0]);
assert!(!grounded(&s, second), "a later part starts free");
let instance = run(&mut s, "occurrence.copy", json!({"occurrence": first, "translate": [0, 20, 0]}))["occurrence"].as_u64().unwrap();
assert!(!grounded(&s, instance), "Paste (Instance) of the grounded part is free");
let copy = run(&mut s, "component.paste_new", json!({"component": a, "translate": [0, 40, 0]}));
let copy = s.doc.occurrence_of(copy["component"].as_u64().unwrap()).unwrap().id;
assert!(!grounded(&s, copy), "Paste New of the grounded part is free");
// A part made inside another one is placed in it, not in the design: free.
run(&mut s, "component.activate", json!({"component": a}));
let nested = run(&mut s, "component.create", json!({"name": "Inner"}))["occurrence"].as_u64().unwrap();
assert!(!grounded(&s, nested));
// Several parts may be grounded, or none.
run(&mut s, "occurrence.ground", json!({"occurrence": second, "grounded": true}));
assert!(grounded(&s, first) && grounded(&s, second));
for o in [first, second] {
run(&mut s, "occurrence.ground", json!({"occurrence": o, "grounded": false}));
}
assert!(!s.doc.occurrences.iter().any(|o| o.grounded));
}
#[test]
fn components_from_bodies_ground_only_the_first_part() {
let mut s = Session::default();
run(&mut s, "solid.box", json!({"length": 10, "width": 10, "height": 10, "body_name": "One"}));
run(&mut s, "solid.box", json!({"length": 10, "width": 10, "height": 10, "corner": [20, 0, 0], "body_name": "Two", "operation": "new"}));
let made = run(&mut s, "component.from_bodies", json!({"bodies": ["One", "Two"]}));
let occurrence = |i: usize| s.doc.occurrence_of(made["components"][i]["component"].as_u64().unwrap()).unwrap().id;
let (one, two) = (occurrence(0), occurrence(1));
assert!(grounded(&s, one) && !grounded(&s, two));
}
#[test]
fn ungrounded_designs_stay_ungrounded_through_new_parts_and_reopening() {
let mut s = Session::default();
let (_, first) = part(&mut s, "A", [0.0, 0.0, 0.0]);
run(&mut s, "occurrence.ground", json!({"occurrence": first, "grounded": false}));
let (_, second) = part(&mut s, "B", [20.0, 0.0, 0.0]);
assert!(!grounded(&s, first) && !grounded(&s, second), "a part added later grounds nothing");
let back = solidcraft_doc::Document::from_json(&s.doc.to_json()).unwrap();
assert!(!back.occurrences.iter().any(|o| o.grounded), "opening a design grounds nothing");
// With every part gone, the next one is the design's first part again.
for c in ["A", "B"] {
run(&mut s, "component.delete", json!({"component": c}));
}
let (_, again) = part(&mut s, "C", [0.0, 0.0, 0.0]);
assert!(grounded(&s, again));
}
#[test]
fn dragging_moves_a_free_part_by_the_grabbed_point_in_one_undo_step() {
let mut s = Session::default();
let (_, base) = part(&mut s, "Base", [0.0, 0.0, 0.0]);
let (_, free) = part(&mut s, "Free", [20.0, 0.0, 0.0]);
let undo = s.undo.len();
let r = run(&mut s, "occurrence.drag", json!({"occurrence": free, "at": [25, 5, 10], "point": [35, 10, 10]}));
assert_eq!(r["moved"], json!([free]));
near(origin(&s, &[free]), [10.0, 5.0, 0.0]);
assert_eq!(s.undo.len(), undo + 1);
assert_eq!(s.undo.last().map(|u| u.label.as_str()), Some("Drag Occurrence"));
// Saved and opened again, it is where it was dragged.
let back = solidcraft_doc::Document::from_json(&s.doc.to_json()).unwrap();
let t = back.occurrences.iter().find(|o| o.id == free).unwrap().transform;
near([t[3][0], t[3][1], t[3][2]], [10.0, 5.0, 0.0]);
run(&mut s, "edit.undo", json!({}));
near(origin(&s, &[free]), [0.0, 0.0, 0.0]);
// A grounded part stays where it is.
let e = s.execute("occurrence.drag", &json!({"occurrence": base, "at": [0, 0, 0], "point": [5, 0, 0]})).unwrap_err().to_string();
assert!(e.contains("grounded"), "{e}");
near(origin(&s, &[base]), [0.0, 0.0, 0.0]);
}
#[test]
fn a_drag_captures_its_part_and_leaves_other_pending_moves_pending() {
let mut s = Session::default();
part(&mut s, "Base", [0.0, 0.0, 0.0]);
let (_, a) = part(&mut s, "A", [20.0, 0.0, 0.0]);
let (_, b) = part(&mut s, "B", [40.0, 0.0, 0.0]);
run(&mut s, "occurrence.move", json!({"occurrence": a, "translate": [0, 7, 0], "capture": false}));
run(&mut s, "occurrence.move", json!({"occurrence": b, "translate": [0, 9, 0], "capture": false}));
run(&mut s, "occurrence.drag", json!({"occurrence": a, "at": [0, 0, 0], "point": [3, 0, 0]}));
assert!(!s.pending_moves.contains_key(&a), "the dragged part's position is captured");
let t = s.doc.occurrences.iter().find(|o| o.id == a).unwrap().transform;
near([t[3][0], t[3][1], t[3][2]], [3.0, 7.0, 0.0]);
assert!(s.pending_moves.contains_key(&b), "another part's move stays pending");
near(origin(&s, &[b]), [0.0, 9.0, 0.0]);
run(&mut s, "edit.undo", json!({}));
near(origin(&s, &[a]), [0.0, 7.0, 0.0]);
assert!(s.pending_moves.contains_key(&a), "undo gives the pending move back");
}
#[test]
fn dragging_uses_the_exact_path_of_a_repeated_placement() {
let mut s = Session::default();
part(&mut s, "Base", [0.0, 0.0, 0.0]);
let (asm, first) = part(&mut s, "Asm", [0.0, 0.0, 0.0]);
run(&mut s, "occurrence.move", json!({"occurrence": first, "axis": [0, 0, 1], "angle": "90 deg"}));
run(&mut s, "component.activate", json!({"component": asm}));
let leaf = run(&mut s, "component.create", json!({"name": "Leaf"}))["occurrence"].as_u64().unwrap();
run(&mut s, "solid.box", json!({"length": 2, "width": 2, "height": 2}));
run(&mut s, "component.activate", json!({"component": "root"}));
let second = run(&mut s, "occurrence.copy", json!({"occurrence": first, "translate": [100, 0, 0]}))["occurrence"].as_u64().unwrap();
// The second instance of the assembly moves alone.
run(&mut s, "occurrence.drag", json!({"path": [second], "at": [100, 0, 0], "point": [100, 30, 0]}));
near(origin(&s, &[second]), [100.0, 30.0, 0.0]);
near(origin(&s, &[first]), [0.0, 0.0, 0.0]);
// Its leaf, a definition shared by both instances, moves in world X through that path's
// rotated frame, and so in both.
let before = origin(&s, &[first, leaf]);
run(&mut s, "occurrence.drag", json!({"path": [second, leaf], "at": [100, 30, 0], "point": [110, 30, 0]}));
near(origin(&s, &[second, leaf]), [110.0, 30.0, 0.0]);
near(origin(&s, &[first, leaf]), [before[0] + 10.0, before[1], before[2]]);
// The leaf alone, without the path of the instance it is in, is ambiguous.
let e = s.execute("occurrence.drag", &json!({"occurrence": leaf, "at": [0, 0, 0], "point": [1, 0, 0]})).unwrap_err().to_string();
assert!(e.contains("path"), "{e}");
}
#[test]
fn joints_hold_a_part_to_something_grounded_and_carry_a_free_chain_along() {
let mut s = Session::default();
let (_, base) = part(&mut s, "Base", [0.0, 0.0, 0.0]);
let (_, arm) = part(&mut s, "Arm", [0.0, 0.0, 10.0]);
let at = |o: u64, z: f64| json!({"occurrence": o, "point": [0, 0, z], "z": [0, 0, 1]});
run(&mut s, "joint.create", json!({"type": "revolute", "a": at(base, 10.0), "b": at(arm, 10.0), "flip": true, "name": "Hinge"}));
let e = s.execute("occurrence.drag", &json!({"occurrence": arm, "at": [0, 0, 0], "point": [5, 0, 0]})).unwrap_err().to_string();
assert!(e.contains("grounded") && e.contains("Hinge"), "{e}");
// Two parts jointed to each other and to nothing grounded move together.
let (_, x) = part(&mut s, "X", [50.0, 0.0, 0.0]);
let (_, y) = part(&mut s, "Y", [50.0, 0.0, 10.0]);
run(&mut s, "joint.create", json!({"type": "rigid", "a": at(x, 10.0), "b": at(y, 10.0), "flip": true, "name": "Weld"}));
let (x0, y0) = (origin(&s, &[x]), origin(&s, &[y]));
let r = run(&mut s, "occurrence.drag", json!({"occurrence": y, "at": [0, 0, 0], "point": [0, 25, 0]}));
assert_eq!(r["moved"].as_array().map(Vec::len), Some(2), "{r}");
near(origin(&s, &[x]), [x0[0], x0[1] + 25.0, x0[2]]);
near(origin(&s, &[y]), [y0[0], y0[1] + 25.0, y0[2]]);
// Suppressed, the joint holds nothing.
run(&mut s, "joint.edit", json!({"joint": "Hinge", "suppressed": true}));
run(&mut s, "occurrence.drag", json!({"occurrence": arm, "at": [0, 0, 0], "point": [5, 0, 0]}));
}
#[test]
fn a_drag_and_a_world_move_leave_the_same_design() {
// Whatever follows a moved part (projections, joints, Properties) follows a dragged one.
let build = || {
let mut s = Session::default();
part(&mut s, "Base", [0.0, 0.0, 0.0]);
let (_, free) = part(&mut s, "Free", [20.0, 0.0, 0.0]);
run(&mut s, "sketch.create", json!({"plane": "XY"}));
run(&mut s, "sketch.project", json!({"refs": [{"edge": [25, 0, 0]}]}));
run(&mut s, "sketch.finish", json!({}));
(s, free)
};
let (mut dragged, free) = build();
let (mut moved, _) = build();
run(&mut dragged, "occurrence.drag", json!({"occurrence": free, "at": [25, 0, 0], "point": [25, 15, 0]}));
run(&mut moved, "occurrence.move", json!({"occurrence": free, "space": "world", "translate": [0, 15, 0]}));
assert_eq!(dragged.doc.to_json(), moved.doc.to_json());
let shown = |s: &Session| format!("{:?}", s.world_state().sketches.iter().map(|k| &k.sketch.points).collect::<Vec<_>>());
assert_eq!(shown(&dragged), shown(&moved));
}
#[test]
fn bad_drag_parameters_are_refused() {
let mut s = Session::default();
part(&mut s, "Base", [0.0, 0.0, 0.0]);
let (_, free) = part(&mut s, "Free", [20.0, 0.0, 0.0]);
for p in [
json!({}),
json!({"occurrence": free}),
json!({"occurrence": free, "at": [0, 0, 0]}),
json!({"occurrence": free, "at": [0, 0, 0], "point": [1e300, 0, 0]}),
json!({"occurrence": free, "at": [0, 0, "x"], "point": [0, 0, 0]}),
json!({"path": [], "at": [0, 0, 0], "point": [1, 0, 0]}),
json!({"path": [free, free], "at": [0, 0, 0], "point": [1, 0, 0]}),
json!({"path": [999_999], "at": [0, 0, 0], "point": [1, 0, 0]}),
json!({"occurrence": "nothing", "at": [0, 0, 0], "point": [1, 0, 0]}),
] {
assert!(s.execute("occurrence.drag", &p).is_err(), "{p}");
}
near(origin(&s, &[free]), [0.0, 0.0, 0.0]);
}
#[test]
fn moving_a_grounded_part_needs_saying_so_and_it_stays_grounded() {
let mut s = Session::default();
let (_, base) = part(&mut s, "Base", [0.0, 0.0, 0.0]);
let e = s.execute("occurrence.move", &json!({"occurrence": base, "translate": [5, 0, 0]})).unwrap_err().to_string();
assert!(e.contains("is grounded") && e.contains("occurrence.ground"), "{e}");
run(&mut s, "occurrence.move", json!({"occurrence": base, "translate": [5, 0, 0], "move_grounded": true}));
near(origin(&s, &[base]), [5.0, 0.0, 0.0]);
assert!(grounded(&s, base));
}
/// The solver uses definitions' first paths; a drag through a rotated instance must carry
/// that local change to its jointed peers, including peers that are themselves shared.
#[test]
fn shared_joint_chains_follow_the_selected_frame_and_survive_solving() {
let mut s = Session::default();
part(&mut s, "Base", [0.0, 0.0, 0.0]);
let asm = run(&mut s, "component.create", json!({"name": "Assembly"}));
let first = asm["occurrence"].as_u64().unwrap();
let a = run(&mut s, "component.create", json!({"name": "A"}))["occurrence"].as_u64().unwrap();
run(&mut s, "solid.box", json!({"length": 4, "width": 4, "height": 4}));
run(&mut s, "component.activate", json!({"component": asm["component"]}));
let b = run(&mut s, "component.create", json!({"name": "B"}))["occurrence"].as_u64().unwrap();
run(&mut s, "solid.box", json!({"length": 4, "width": 4, "height": 4, "corner": [10, 0, 0]}));
run(&mut s, "component.activate", json!({"component": "root"}));
let at = |o| json!({"occurrence": o, "point": [0, 0, 0], "z": [0, 0, 1]});
run(&mut s, "joint.create", json!({"type": "revolute", "a": at(a), "b": at(b), "flip": true}));
let second = run(&mut s, "occurrence.copy", json!({"occurrence": first, "translate": [100, 0, 0]}))["occurrence"].as_u64().unwrap();
run(&mut s, "occurrence.move", json!({"occurrence": second, "angle": std::f64::consts::FRAC_PI_2, "origin": [100, 0, 0]}));
run(&mut s, "occurrence.ground", json!({"occurrence": first, "grounded": true}));
let undo = s.undo.len();
let before = s.doc.to_json();
let values = s.doc.assembly.joints[0].values.clone();
// Drag the non-root side, through the second assembly's rotated frame.
run(&mut s, "occurrence.drag", json!({"path": [second, b], "at": [100, 0, 0], "point": [110, 0, 0]}));
near(origin(&s, &[second, a]), [110.0, 0.0, 0.0]);
near(origin(&s, &[second, b]), [110.0, 0.0, 0.0]);
near(origin(&s, &[first, a]), [0.0, -10.0, 0.0]);
near(origin(&s, &[first, b]), [0.0, -10.0, 0.0]);
let dragged = s.doc.to_json();
let solution = run(&mut s, "joint.solve", json!({}));
assert_eq!(solution["conflicts"], json!([]));
assert_eq!(s.doc.to_json(), dragged, "solving preserves the dragged pose");
assert_eq!(s.doc.assembly.joints[0].values, values);
assert_eq!(s.undo.len(), undo + 1);
run(&mut s, "edit.undo", json!({}));
assert_eq!(s.doc.to_json(), before);
}
#[test]
fn a_unique_part_can_drag_a_chain_through_a_shared_peer() {
let mut s = Session::default();
part(&mut s, "Base", [0.0, 0.0, 0.0]);
let (_, free) = part(&mut s, "Free", [20.0, 0.0, 0.0]);
let asm = run(&mut s, "component.create", json!({"name": "Assembly"}));
let first = asm["occurrence"].as_u64().unwrap();
let peer = run(&mut s, "component.create", json!({"name": "Peer"}))["occurrence"].as_u64().unwrap();
run(&mut s, "component.activate", json!({"component": "root"}));
let second = run(&mut s, "occurrence.copy", json!({"occurrence": first, "translate": [100, 0, 0]}))["occurrence"].as_u64().unwrap();
let at = |o| json!({"occurrence": o, "point": [0, 0, 0], "z": [0, 0, 1]});
run(&mut s, "joint.create", json!({"type": "rigid", "a": at(free), "b": at(peer), "flip": true}));
run(&mut s, "occurrence.drag", json!({"occurrence": free, "at": [0, 0, 0], "point": [0, 15, 0]}));
near(origin(&s, &[free]), [0.0, 15.0, 0.0]);
near(origin(&s, &[first, peer]), [0.0, 15.0, 0.0]);
near(origin(&s, &[second, peer]), [100.0, 15.0, 0.0]);
let before = s.doc.to_json();
run(&mut s, "joint.solve", json!({}));
assert_eq!(s.doc.to_json(), before);
}
+1 -1
View File
@@ -758,7 +758,7 @@ mod tests {
let mut s = Session::default();
run(&mut s, "parameters.add", json!({"name": "plate_h", "expression": "12 mm"}));
run(&mut s, "parameters.add", json!({"name": "unused", "expression": "3 mm"}));
let plate = run(&mut s, "component.create", json!({"name": "Plate"}));
let plate = run(&mut s, "component.create", json!({"name": "Plate", "grounded": false}));
let (plate, plate_occ) = (plate["component"].as_u64().unwrap(), plate["occurrence"].as_u64().unwrap());
run(&mut s, "solid.box", json!({"length": 40, "width": 30, "height": "plate_h", "body_name": "PlateBody"}));
let pin = run(&mut s, "component.create", json!({"name": "Pin", "parent": plate}));

Some files were not shown because too many files have changed in this diff Show More