Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 31 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,34 @@
# SolidFrame

Build a drilled plate or bracket, edit native solids, and export STEP or STL in your browser. Start with the seven-part fixture or create a part from dimensions. SolidFrame builds on Chili3D’s CAD engine and adds a mechanical-part builder, editable fixture, and local project workspace.
**Browser CAD for sketches, parametric features and native solids.**

[Open SolidFrame](https://nazeeh111.github.io/SolidFrame/) · [Source and license](LICENSE)
Draw and constrain a sketch, build a feature, revise its dimensions, and export the resulting geometry. SolidFrame builds on [Chili3D](https://github.com/xiangechen/chili3d) and the OpenCascade WebAssembly kernel, with a local project workspace, an editable fixture and a mechanical-part builder.

[![SolidFrame modeling workspace with the seven-part fixture, selected base plate, editable 70 mm width, and redesigned modeling toolbar](docs/images/editable-fixture.jpg)](docs/images/editable-fixture.jpg)
[Open SolidFrame](https://nazeeh111.github.io/SolidFrame/) · [Open the worked model](docs/presentation/README.md) · [Mechanical parts](docs/mechanical-parts.md) · [Engine reference](UPSTREAM_README.md)

*The live editable sample after changing the base plate width from 70 to 85 mm. Select a part in the tree, edit a dimension in Properties, and use Fit Content to frame the result. Appearance controls display color and texture. [Open the sample](https://nazeeh111.github.io/SolidFrame/) with **Open editable sample**.*
<picture>
<source media="(max-width: 600px)" srcset="docs/presentation/feature-chain-mobile.png">
<img src="docs/presentation/feature-chain.png" alt="Actual saved SolidFrame model: four sketch lines, a 90 mm driving width, a 40 mm current height and a 12 mm extrusion. The native document reopens with its sketch and feature. A separate STEP import has the same 90 by 40 by 12 mm bounds, without native feature history.">
</picture>

**The sketch and its feature remain editable.** This completed example drives a rectangle's width to **90 mm**, extrudes it **12 mm**, then reopens both the native model and its STEP export. The current height is **40 mm**. The diagram comes from the actual saved profile and feature; it is separate from the [live application's reopened model capture](docs/presentation/native-reopened.png).

[Download the native .cd model](docs/presentation/rectangle-extrusion.cd) · [Download its STEP geometry](docs/presentation/rectangle-extrusion.step) · [Inspect the actual workflow and limits](docs/presentation/README.md)

## A modeling workspace

- **Sketch and feature modeling:** constrained sketches, extrusion, revolve, fillet, chamfer and feature booleans, with stored feature definitions and replay.
- **Direct solid tools:** primitives, transforms, booleans, measurement and geometry operations in the modeling ribbon.
- **Mechanical parts:** dimensioned plates and right-angle brackets, coupled hole-layout validation, atomic edits and native-document persistence.
- **Local projects:** undo/redo, browser snapshots, portable native documents and geometry exchange. No account or cloud service is required for normal CAD work.

The underlying CAD engine and its existing tools come from Chili3D. SolidFrame's specific additions are described under [Project development](#project-development); they do not imply independent authorship of the kernel, sketch solver or inherited modeling tools.

## Sketch to solid

The [worked native document](docs/presentation/README.md) contains `Sketch1` and `Parametric Body1`. Its stored extrusion refers to the sketch and its four profile edges. In the completed run, undo removed the new body, redo restored it, and downloading/reopening `.cd` retained the sketch and feature. The live application then imported the saved STEP into a separate new document with matching bounds.

Use **Open document** on the home screen for the native `.cd`. For STEP, create a new document and use **Model → Import**. Use **Fit Content** to frame either model. Native `.cd` keeps this editable history; STEP carries exchange geometry. Matching bounds do not establish every topology, model, format or downstream manufacturing workflow.

## Design a drilled part

Expand All @@ -18,6 +40,11 @@ This workflow models ideal geometry. It does not calculate sheet-metal bend allo

## Start with real geometry

![Actual live SolidFrame fixture with seven native parts and the selected base plate width 85 mm after undo/redo](docs/presentation/fixture-width85.png)

The completed live sample has **Width 85 mm** after editing 70→85 mm, undoing to 70 mm and redoing to 85 mm. Appearance controls display color and texture.


Choose **Open editable sample** on the home screen. The workholding fixture contains seven native, editable solids: a base plate, two jaws, a workpiece, two locator pins, and a reference boss. It is an illustrative CAD exercise, not a fabrication-approved fixture.

1. The sample opens with **01 · Base plate** selected. Select another part in the model tree to edit it.
Expand Down
28 changes: 28 additions & 0 deletions docs/presentation/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# A sketch, its feature and an exchange solid

This is a completed synthetic CAD example, made with the existing sketch and feature tools. It supplements the editable fixture and mechanical-part builder; it does not define the application's entire capability or certify fabrication.

## Open the actual files

Download [rectangle-extrusion.cd](rectangle-extrusion.cd), then choose **Open document** in [SolidFrame](https://nazeeh111.github.io/SolidFrame/). The native file contains:

- `Sketch1`: four line entities, four coincident connections, two horizontal and two vertical constraints, an origin connection and a horizontal driving dimension of **90 mm**. Its saved current height is **40 mm**. These ten recorded constraints are not a claim that every degree of freedom is constrained.
- `Parametric Body1`: one stored `extrude` feature with depth **12 mm**, a link to `Sketch1`, and its four selected profile edges.

The native file was downloaded after the completed sketch/dimension/extrusion run. Undo removed the new body; redo restored it. The file then reopened with the sketch and extrusion retained. The original run's typed-first rectangle started at 80×40 mm before the width was driven to 90 mm. These are historical executed steps, not an instruction to trust an unverified saved solver claim.

For a separate exchange check, download [rectangle-extrusion.step](rectangle-extrusion.step), create a new document and choose **Model → Import**. Use **Fit Content**. The native model and independently imported STEP both have geometry bounds from approximately `(0,0,0)` to `(90,40,12)` mm. The negligible negative x minimum, about −5.3×10⁻¹⁷ mm, remains in the raw records. STEP contains exchange geometry, not the native sketch/feature history.

The actual public application at source `7986c79725cf7429d7ec816d647805947ce434bf` reopened both provided files in separate documents. [Native capture](native-reopened.png) · [Separate STEP capture](step-reopened.png) · [Raw public-browser records](replay.json). The earlier authoring workflow used the same application source plus the typed-coordinate repair now published at that revision. No supplied document contains private user data.

## How the illustration is derived

[The original standard-library renderer](render.py) reads the delivered `.cd` file, its four actual sketch lines, the driving-width constraint and the linked extrusion. [case.json](case.json) retains all those source values, profile edges, projection rows and bounds. The wide/narrow SVGs retain the same geometry and values.

The plan view uses the same scale in x and y. The solid view uses two orthonormal isometric camera rows and one uniform screen scale; it has no perspective scaling. Values below 10⁻¹² are drawn at zero, while both original files and raw records are unchanged. Filled faces illustrate this saved rectangular extrusion. They are a source-derived technical diagram, not a kernel-rendered screenshot or an independently measured part. PNGs are actual browser renders of the corresponding SVGs. [Input and figure identities](figure-manifest.json).

The [separate seven-part fixture capture](fixture-width85.png) comes from the actual deployed edit 70→85 mm, undo 70 mm, redo 85 mm journey. The parts remain independently dimensioned; the image does not establish assembly constraints or structural validation.

## Meaning and limits

The example demonstrates this saved sketch/feature, actual native reopening and matching imported geometry bounds. It does not establish every topological identity, arbitrary exchange round-trip, physical accuracy, material behavior, sheet-metal bend allowance, multibody assembly constraints or manufacturing approval. The application's inherited CAD tools and parametric system remain available beyond this example. Corresponding application source and its existing AGPL/LGPL/third-party notices remain unchanged.
296 changes: 296 additions & 0 deletions docs/presentation/case.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,296 @@
{
"source_revision": "7986c79725cf7429d7ec816d647805947ce434bf",
"units": "mm",
"sketch": {
"name": "Sketch1",
"entities": [
{
"id": 1,
"type": "line",
"params": [
-5.0306980803327406e-17,
40,
90,
40
]
},
{
"id": 2,
"type": "line",
"params": [
90,
40,
90,
0
]
},
{
"id": 3,
"type": "line",
"params": [
90,
0,
2.220446049250313e-16,
0
]
},
{
"id": 4,
"type": "line",
"params": [
0,
0,
-5.551115123125783e-17,
40
]
}
],
"constraints": [
{
"id": 1,
"kind": 0,
"refs": [
{
"entityId": 1,
"pointIndex": 1
},
{
"entityId": 2,
"pointIndex": 0
}
]
},
{
"id": 2,
"kind": 0,
"refs": [
{
"entityId": 2,
"pointIndex": 1
},
{
"entityId": 3,
"pointIndex": 0
}
]
},
{
"id": 3,
"kind": 0,
"refs": [
{
"entityId": 3,
"pointIndex": 1
},
{
"entityId": 4,
"pointIndex": 0
}
]
},
{
"id": 4,
"kind": 0,
"refs": [
{
"entityId": 4,
"pointIndex": 1
},
{
"entityId": 1,
"pointIndex": 0
}
]
},
{
"id": 5,
"kind": 4,
"refs": [
{
"entityId": 1,
"pointIndex": 0
},
{
"entityId": 1,
"pointIndex": 1
}
]
},
{
"id": 6,
"kind": 5,
"refs": [
{
"entityId": 2,
"pointIndex": 0
},
{
"entityId": 2,
"pointIndex": 1
}
]
},
{
"id": 7,
"kind": 4,
"refs": [
{
"entityId": 3,
"pointIndex": 0
},
{
"entityId": 3,
"pointIndex": 1
}
]
},
{
"id": 8,
"kind": 5,
"refs": [
{
"entityId": 4,
"pointIndex": 0
},
{
"entityId": 4,
"pointIndex": 1
}
]
},
{
"id": 9,
"kind": 0,
"refs": [
{
"entityId": 4,
"pointIndex": 0
},
{
"entityId": -1,
"pointIndex": 0
}
]
},
{
"id": 10,
"kind": 18,
"refs": [
{
"entityId": 3,
"pointIndex": 1
},
{
"entityId": 2,
"pointIndex": 1
}
],
"datum": 90
}
],
"driving_width": 90,
"current_height": 40
},
"feature": {
"id": "CsBuV1-DWrHw2AMXZR0Sv",
"type": "extrude",
"depth": 12,
"sketchId": "TZhCZ1UE5fzbxk-bMiTM0",
"profiles": [
{
"edges": [
{
"kind": "line",
"start": {
"x": 1.1102230246251565e-16,
"y": 0,
"z": 0
},
"end": {
"x": -5.2909066017292616e-17,
"y": 40,
"z": 0
}
},
{
"kind": "line",
"start": {
"x": -5.2909066017292616e-17,
"y": 40,
"z": 0
},
"end": {
"x": 90,
"y": 40,
"z": 0
}
},
{
"kind": "line",
"start": {
"x": 90,
"y": 40,
"z": 0
},
"end": {
"x": 90,
"y": 0,
"z": 0
}
},
{
"kind": "line",
"start": {
"x": 90,
"y": 0,
"z": 0
},
"end": {
"x": 1.1102230246251565e-16,
"y": 0,
"z": 0
}
}
],
"entities": [
1,
2,
3,
4
],
"center": {
"x": 45,
"y": 20,
"z": 0
},
"area": 3600
}
]
},
"isometric_projection_rows": [
[
0.7071067811865475,
-0.7071067811865475,
0
],
[
0.4082482904638631,
0.4082482904638631,
-0.816496580927726
]
],
"projection_note": "Orthonormal camera rows, common uniform screen scale. Source numbers smaller than1e-12 are drawn at0; raw native file is unchanged. Solid faces illustrate the saved rectangular profile extruded by its actual depth; this is a source-derived diagram, not a browser capture.",
"native_bounds": {
"min": [
-5.551115123125783e-17,
0,
0
],
"max": [
90,
40,
12
]
},
"roundtrip": "See replay.json: actual public application opens the native feature model, and a separate new document imports STEP with the same bounds. STEP does not retain the sketch feature history."
}
Binary file added docs/presentation/feature-chain-mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading