Comments (4)
from cadquery.
@jmwright thanks for your quick reply! I didn't think about aligning the path and profile!
I'm trying a simpler example where the profile and the path are aligned before the sweep and it works for a simple vertical line, but as soon as I add a non vertical segment I get the same broken results. I've also tried to pass isFrenet=True
and makeSolid=True
but it does not change much.
import cadquery as cq
path = [
# it work fine with only these two points
(113.47905083333333, 63.6478376481315),
(113.47905083333333, 34.1383424990766),
# if I add this point it breaks
(113.4432471548529, 33.091593949277176),
]
poly = cq.Workplane("XY").polyline(path)
profile = cq.Workplane("XZ").rect(5,5).translate(path[0])
swept = profile.sweep(poly)
from cadquery.
Try this code (notice the multisection parameter):
import cadquery as cq
path = [
# it work fine with only these two points
(113.47905083333333, 63.6478376481315),
(113.47905083333333, 34.1383424990766),
(113.4432471548529, 33.091593949277176),
]
poly = cq.Workplane("XY").polyline(path)
profile = cq.Workplane("XZ").rect(5,5).translate(path[0])
swept = profile.sweep(poly, multisection=True)
show_object(swept)
from cadquery.
That seems to work! I completely overlooked that parameter!
I'm closing the issue then. Thank you!
from cadquery.
Related Issues (20)
- Center assemblies HOT 6
- How to solve the error HOT 3
- Generate a closed solid from a 2d spline doing Face -> Shell -> Solid HOT 4
- Importing Cadquery causes error exit codes HOT 2
- In jupyter lab html export, all cadquery object displays pile up with the last one HOT 1
- CQ-Editor doesn't update when using external editor (gvim or notepad) on windows 11 HOT 4
- Text Alignment Test Failure HOT 14
- About the usage of CQModel? HOT 4
- DXF export for sketch
- Finding coplanar and concentric surfaces HOT 5
- Wrap features (`BRepFeat`) from OCP
- symmetric `thicken`
- Provide Interface to OCCT Messages
- Simple 'cut' of two a Box and a Sphere creates unusable object HOT 3
- Documentation: Assembly tutorial constraint solver result regression HOT 4
- seems parametricCuve()bug HOT 10
- Adding existing geometry into sketches? HOT 1
- Planar surface HOT 1
- Problem of center of mass when a cylinder is generated with a non-default direction HOT 1
- Add selectors for local coordinate system
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cadquery.