尚未检测到更新。GitHub 发布版本后会显示在这里。
iPad CAD app for designing 3D-printable parts with Apple Pencil (SwiftUI, SceneKit, Open CASCADE)
翻译准备中
正在加载完整 README。
查看完整 README ↗Swipe & Sketch is an open-source experimental iPad CAD app for designing 3D-printable parts with Apple Pencil. You sketch lines, rectangles, circles, arcs, slots, ellipses, polygons, and splines on a plane or a face, dimension them, and turn them into solids with extrude, revolve, loft, sweep, fillet, chamfer, shell, holes, threads, and boolean tools, or start from a template (Gridfinity, openGrid, electronics mounts and cases, enclosures) or an imported STEP, STL, or 3MF file. Then you export 3MF or STL, or send the model straight to your slicer. Solids are built by the Open CASCADE Technology modeling kernel. An optional AI assistant, running on Apple Foundation Models or, with your own API key, Claude, can answer questions about a model and change it.
There are no accounts. The app reaches the network only for the optional assistant (Apple's Private Cloud Compute, or Anthropic's API when you choose Claude and add your own API key) and the walkthroughs the help card plays from swipesketch.com.
Scripts/build_kernel.sh
It clones Open CASCADE 8.0.1 (tag V8_0_1) into build/occt/src, builds it for iPadOS, the iPadOS simulator, and macOS, and wraps it with the app's C facade into Vendor/SSKernel.xcframework. The first run takes about 25 minutes. Scripts/build_kernel.sh --facade later rebuilds only the facade.com.apple.developer.private-cloud-compute. If your team doesn't have that entitlement, remove it from SwipeAndSketch/SwipeAndSketch.entitlements (or remove the capability in Xcode). The assistant then uses the on-device model only. The app checks for the entitlement (PrivateCloudEntitlement) and never calls the cloud model without it.Trial and purchase in your build: Debug builds run from Xcode with the SwipeAndSketch scheme have full access, with no trial or purchase. The SwipeAndSketch Purchases scheme uses a local test store (SwipeAndSketch/Purchases.storekit) for working on the purchase screens. A Release build (an archive) asks the App Store, and the products exist only for the official app, so to distribute your own build add SWIPE_SKETCH_SELF_BUILD to Active Compilation Conditions (SWIFT_ACTIVE_COMPILATION_CONDITIONS) for Release; it then runs with full access.
The simulator is useful for checking the interface, but Pencil input needs a real iPad.
Open CASCADE is statically linked into the app. Its license (GNU LGPL 2.1 with the Open CASCADE exception) lets you replace it with a modified version. To build Swipe & Sketch against your own Open CASCADE:
build/occt/src. Scripts/build_kernel.sh only clones when that folder is missing, so it builds whatever is there.Scripts/build_kernel.sh to rebuild the toolkits and Vendor/SSKernel.xcframework.You may modify Swipe & Sketch for your own use and reverse engineer it to debug those modifications, whatever the App Store's standard license says. See THIRD-PARTY-NOTICES.md.
Core tests run on the Mac against the kernel's macOS slice:
swift test
App and UI tests run on an iPadOS 27 iPad simulator:
xcodebuild test -project SwipeAndSketch.xcodeproj -scheme SwipeAndSketch \
-destination 'platform=iOS Simulator,name=iPad Air 11-inch (M4)' \
-derivedDataPath build/DerivedData CODE_SIGNING_ALLOWED=NO
The core tests cover geometry, profiles and regions, kernel operations, dimensions, snapping, undo and redo, persistence, export, and the assistant's workbench. The hosted app tests drive the canvas's Pencil pipeline and each tool. The UI tests tap real controls. Simulator tests don't prove how the app feels with a real Apple Pencil, or that palm rejection works.
以上为 README 的开头部分。其余内容请阅读原文。 查看完整 README ↗