Comments (1)
There is extrude method in IG class and also cap method generating a brep as IBrep instance.
For example,
ICurve crv = new ICurve(IG.v(0,0,0, 10,0,0, 10,20,0, 0,10,0), true); // true is to close the curve
ISurface srf = IG.extrude(crv, IG.v(0,0,30));
IBrep solid = IG.cap(srf);
However, cap and brep is still a bit experimental and it has bugs.
You could also directly build IBrep instance out of surfaces and turn on closed flag but this is more experimental and tricky now.
If you are making 3D printable solid, I'd do with polygon mesh as IMesh instance, but you'd need to build all vertices and faces by yourself.
IVertex[] v = new IVertex[]{ new IVertex(0,0,0), new IVertex(0,10,0), new IVertex(10,0,0), new IVertex(0,0,20), new IVertex(0,10,20), new IVertex(10,0,30) };
IMesh mesh = new IMesh();
mesh.addQuads(new IVertex[]{ v[0],v[1],v[4],v[3] });
mesh.addQuads(new IVertex[]{ v[1],v[2],v[5],v[4] });
mesh.addQuads(new IVertex[]{ v[2],v[0],v[3],v[5] });
mesh.addTriangles(new IVertex[]{ v[2],v[1],v[0] });
mesh.addTriangles(new IVertex[]{ v[3],v[4],v[5] });
from igeo.
Related Issues (20)
- Select objects in 3D view HOT 1
- Hot to put Processing primitives 3D into iGeo HOT 4
- BUG: Strange mesh for medium size surfaces HOT 1
- HELP creating 3D Delaunay HOT 2
- How to show different views with IPanel? HOT 5
- ILoft/ISurface control points HOT 1
- Shader function
- Processing 3 support? HOT 3
- Agent-Based Panelization Algorithm???
- index for all Igeo Commands and their respective fields
- Questions regarding code in the tutorials (IG.duration and for loop)
- How to sample ICurveGeo evenly based on the curve length? not the u coordinates HOT 2
- igeo marked as "incompatible" for Processing 3.5.x
- IGeo with P3D
- Applying forces of a compound field to a non-IGeo object
- About A(g)ntense HOT 2
- When call IG.sweep two lines, the generated surface is invalid
- IFieldVisualizer.fixLength
- Problem instantiating a LineAgent object in Python mode
- save/saveFrame with update method
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 igeo.