Comments (1)
I'll plug the free function API here (you'll have to be on master):
from cadquery.occ_impl.shapes import *
# start with a box
b = box(1,1,1)
# split int top face and others
f_top = b.faces('>Z')
f_rest = b.faces('not >Z')
# create the new top face
f_new = f_top + plane(0.5,0.5).moved(f_top.Center())
# assemble into a solid
res = solid(f_rest,f_new)
show_object(res)
from cadquery.
Related Issues (20)
- Implement outerShell
- [Bug] Incorrect transform chaining in nested assemblies HOT 3
- Sketches edges connection misplaced HOT 8
- Implement pickling support
- How to get the absolute location of a tag? HOT 5
- Visualizing multiple vertices (3d points) HOT 2
- Cannot create a free standing bezier curve HOT 1
- Problem importing STEP with colours HOT 1
- free function sweep BRepOffsetAPI_MakePipeShell option to SetMode
- Operation along a rounded box HOT 2
- Length of an edge HOT 5
- Workplane.clone() HOT 2
- allow face selectors to be relative to workplane ? HOT 2
- pyright and extending workplane
- Export assy to brep
- Projection HOT 1
- Which center fucntion is more appropriate for "Point constraint", Center()(=centerOfMass) or CenterOfBoundBox()? HOT 2
- Body rotations from a repeatedly solved assembly seem to be off by factor 1.29 HOT 5
- When the same sketch is placed on the "XZ-plane" and the "ZX-plane", how to keep the sketch's direction the same? HOT 2
- `cskHole` generates incorrect results for shallow holes HOT 1
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.