A Vector Layer Policy for Resizing Hand-Tufted Rug Patterns Without Distortion

2026-11-26来源 dev.toEnglish

A custom rug configurator usually starts with a simple operation. Take the reference SVG, measure its bounding box, and scale it to the requested width and length. That works for a flat screen graphic. It is not a safe default for a hand-tufted design whose meaning depends on circles, carved lines, borders and the position of furniture.

ADAHANDMADE's archive provides concrete cases. Be Calm Runner combines central parallel lines with a circular detail at one end. Aurora Sphere is a circular gradient from a yellow-green center toward a deep purple rim. Frame places a narrow warm-red inner border inside a pale blue field. A single XY transform cannot express the intent of all three.

The solution is to treat the rug as a set of vector layers with explicit scaling policies. The example below is an engineering pattern, not an official ADAHANDMADE tolerance table or production API.

Separate the Contour From the Pattern

A useful source drawing has at least two groups. The outer contour defines the rug's physical footprint. The motif layers define what happens inside it. Furniture overlays sit above both as review geometry.

Keeping these groups separate allows the configurator to fit the contour to a room while applying a different rule to a circle, border or repeated line. It also makes the approval drawing readable. A reviewer can see whether a change came from the rug boundary, the motif or the furniture plan.

For Be Calm Runner, the documented reference is 110 by 400 cm. The circular detail should not become an ellipse merely because the runner becomes longer. For Aurora Sphere, the reference dimensions are project-specific, but the documented shape is round. A custom oval would be a deliberate shape change rather than an incidental result of unequal width and length values.

Declare a Policy for Each Layer

A small policy vocabulary is enough for many designs.

Policy Intended behavior Suitable example
Fit contour Map the approved outer path into the target footprint An irregular custom outline
Uniform motif scale Use one scale factor for a shape that must retain its proportions The terminal circle in Be Calm Runner
Preserve border relationship Keep an inset border tied to its own approved construction rule The warm-red inner border in Frame
Review repeat spacing Recalculate a repeated field and flag the result for design review Parallel carved lines or a regular grid

The important part is not the enum name. It is that the rule is visible, versioned and reviewable. A designer should be able to tell why a circle stayed circular while a contour was fitted to a new room.

An illustrative manifest for the runner might look like this.

{ "example_scope": "design-review manifest, not an ADAHANDMADE production specification", "pattern_id": "be-calm-runner", "reference_size_cm": { "width": 110, "length": 400 }, "layers": [ { "id": "outer_contour", "policy": "fit_approved_target_contour" }, { "id": "central_parallel_lines", "policy": "review_repeat_spacing_after_resize" }, { "id": "terminal_circle", "policy": "uniform_scale", "anchor": "approved_end_detail_position" } ], "review_layers": ["furniture_footprints", "door_movement", "nap_arrow"] } 

No minimum groove width, carving angle or edge allowance appears in that manifest. Those values must come from the approved workshop drawing and physical sample for the individual commission. Software should not manufacture them from a generic rug template.

Transform Geometry Deliberately

For a uniform motif layer, compute one scale factor and apply it to both axes. The factor may come from the motif's allocated region rather than the whole rug. The anchor should also be declared so the shape does not drift when the bounding box changes.

For a fitted contour, transform the path as a whole and preserve its approved topology. Do not rebuild an irregular outline as a rectangle with rounded corners. Concave recesses and lobes carry spatial meaning that a simplified bounding shape loses.

For repeated lines, calculate their new positions from the approved layout rule. Some designs may distribute the lines across a longer field. Others may keep a defined repeat interval. The source record does not authorize the software to choose between those approaches. The result should enter design review with the changed spacing visible.

Keep vector and raster assets on separate transform paths. A vector contour can be scaled without replacing its path data, while a bitmap may require resampling for display. If the tool exports a raster preview, label it as a preview and retain the editable vector source. Otherwise, a later size change can be built from an already degraded image. The review layer should expose the source resolution and export method, but it should not infer a manufacturing tolerance from either one. Keep that editable source attached to the approved drawing so later review does not depend on a flattened preview.

A simple check can detect accidental non-uniform scaling on a layer that is meant to remain proportional.

def uniform_scale(points, factor, anchor): ax, ay = anchor return [ (ax + (x - ax) * factor, ay + (y - ay) * factor) for x, y in points ] def has_nonuniform_scale(width_factor, length_factor): return abs(width_factor - length_factor) > 1e-9 

This code only checks proportionality. It does not prove that a carved feature is physically tuftable, that a color transition can be reproduced, or that the motif remains visible beside the furniture. Those are separate approval questions.

Generate a Furniture Review Layer

The scaled overlay is not decorative metadata. It is the coordinate system for checking whether the transformed design still serves the room.

Plot the actual sofa footprint, table base, chair positions and normal circulation. Add fixed openings and door movement where they affect the rug. Then produce an occlusion report that identifies which motif layers are covered and which remain visible from the main entry direction.

For Frame, the report should make the inner border easy to inspect. For a faceted design such as Pink Tourmaline, it should expose interior junctions rather than reporting only the percentage of rug area under furniture. Percentage coverage alone cannot tell a designer whether the visible fragments still form a coherent composition.

The report should distinguish designed furniture coverage from accidental interference. A table over a quiet field may be intentional. A sofa leg on a key carved junction may need review. The software can surface the geometry, but the project team must make the design decision.

Version the Policy With the Drawing

A resized rug is a new review artifact even when the fiber composition is unchanged. Store the source pattern version, layer policies, target contour, furniture plan revision and review outcome together. The approval drawing should state the intended shape, size, orientation and motif arrangement.

If a fiber or color changes, link the drawing to a new physical sample check. If the policy changes, preserve the earlier result for traceability and issue a new drawing revision. The craft and commission workflow keeps approved drawings, sample numbers and written specifications together for this reason.

The ADAHANDMADE specification guide is the reference for order fields. The configurator should treat the 41-piece archive as design input, not as a source of universal numerical manufacturing limits.

A reliable resizing tool therefore does less than it first appears. It does not simply make the rug bigger. It applies named geometry rules, exposes the consequences on a scaled furniture plan, and preserves a reviewable connection between the transformed pattern, the physical sample and the approved commission.

原文:https://www.a8q9.cn/en/article/a-vector-layer-policy-for-resizing-hand-tufted-rug-patterns-without-distortion-1ce595.html

相关文章