Commit Graph

210 Commits

Author SHA1 Message Date
Christopher Lackner
e96aa9c121 fixes for compatibility with occ 8.0 2026-04-23 16:41:16 +02:00
Christopher Lackner
864a10f165 add some docstrings for occ functions 2026-04-10 14:51:42 +02:00
Christopher Lackner
a5ce215c75 add shape.CrossSection function 2025-12-16 07:50:31 +01:00
Christopher Lackner
f11141983e extrude sets properties of codim-1 shapes 2025-11-28 10:03:27 +01:00
Christopher Lackner
a9438ce238 also extrude other shapes than faces using MakePrism API 2025-11-11 16:48:52 +01:00
Schöberl, Joachim
ceedd8ae1a Merge branch 'maxh_argument_occ_arc' into 'master'
add maxh argument to Arc (similar to name argument)

See merge request ngsolve/netgen!715
2025-09-15 12:22:56 +02:00
Christopher Lackner
a3266bad1a consistently set properties on highest order subshapes.
and to not allow to query them on compound/shell/wires
2025-09-10 08:44:31 +02:00
Christopher Lackner
70b96260ed add maxh argument to Arc (similar to name argument) 2025-09-08 13:04:42 +02:00
Schöberl, Joachim
3fadd39f6b Merge branch 'occ_sew' into 'master'
export occ sew operation

See merge request ngsolve/netgen!714
2025-09-02 22:43:58 +02:00
Christopher Lackner
2c90b70355 export occ sew operation
This operation is different from glue as it assumes the faces are
forming a shell and do not have to be intersected. But edges can be
different topologically. So I think a nice addition to have.
2025-09-02 17:33:08 +02:00
Christopher Lackner
d2c19ee291 query shells from topods shape, and allow setting name for spline 2025-09-02 17:31:45 +02:00
Christopher Lackner
6a58cbe7fa (rational) Bezier surface in netgen.occ 2025-08-06 08:34:59 +02:00
Christopher Lackner
38f6b92667 allow passing meshingparameters to TopoDS_Shape.GenerateMesh 2025-08-04 09:15:42 +02:00
Matthias Hochsteger
fea644aeb7 OCC - Edge and Face Extend member function 2025-07-07 14:32:40 +02:00
Christopher Lackner
4bfc36a2dc TopoDS_Shape.GenerateMesh function 2025-06-08 20:24:30 +02:00
Christopher Lackner
f887c60bde add SetTolerance to shape 2025-05-22 13:57:46 +02:00
Christopher Lackner
558f6815ec allow set color = None occ shapes, set shape itself, not children 2025-05-15 10:44:56 +02:00
Christopher Lackner
299fdbafdf occ version test for v8.0 2025-05-15 10:44:36 +02:00
Christopher Lackner
767dd996e8 allow limiting of shape tolerances 2025-05-12 11:17:00 +02:00
Matthias Hochsteger
1fc382867d Fix segfault in occ (use Handle when creating new Geom_Plane) 2025-04-15 18:39:20 +02:00
Christopher Lackner
36cbd5fc00 add ellipse to occ workplane 2025-04-14 17:48:18 +02:00
Christopher Lackner
3a9060fc2f fix occ Ellipse function 2025-04-14 17:04:33 +02:00
Christopher Lackner
1db8ea3500 also different BRepTools::Write on occ lower than 7.6 2025-04-14 09:12:08 +02:00
Christopher Lackner
b05c32675b check for binary output for older occ versions 2025-04-14 08:34:59 +02:00
Christopher Lackner
5a66cbee72 allow writing brep in different versions and binary 2025-04-04 08:54:32 +02:00
Christopher Lackner
8cde49627b remove debug cout 2025-03-17 11:23:40 +01:00
Christopher Lackner
36c9201ffc add From_PyOCC function to convert swig pyocc shape to netgen.occ 2025-03-17 11:20:19 +01:00
Christopher Lackner
9399f753c4 allow list of profiles in PipeShell 2025-03-14 11:36:00 +01:00
Christopher Lackner
5292a09c94 add TopoDS_Shape.WriteBrep 2025-01-22 12:24:30 +01:00
Joachim Schoeberl
386c290dc0 rectangle with edge-names 2024-12-21 00:37:50 +01:00
Christopher Lackner
22a251e4fd optional name in wp.Close for last edge 2024-11-05 14:58:30 +01:00
Joachim Schoeberl
c4dbe60f78 create edge from two vertices 2024-09-28 20:29:22 +02:00
Christopher Lackner
6b662a9634 export occ MakePolygon 2024-09-28 15:15:44 +02:00
Hochsteger, Matthias
0ddcfdd0c7 Propagate OCC maxh settings correctly 2024-09-23 13:36:44 +02:00
Joachim Schoeberl
54d59cff1e fix warnings 2024-07-16 13:03:49 +02:00
Joachim Schoeberl
cc3f27e514 comment occ.Mirror 2024-06-11 08:06:25 +02:00
Matthias Hochsteger
571cbbe4df Optional identification_name argument in Face::Offset to apply CLOSE_SURFACE identifications 2024-06-03 12:37:26 +02:00
Joachim Schoeberl
6d1c87f214 Offset - face with propagate properties 2024-06-02 15:56:10 +02:00
Joachim Schoeberl
f938b64397 Offset-wire 2024-06-02 10:50:22 +02:00
Christopher Lackner
f808a2bb64 Propagate maxh to children only in occgeom constructor
Allows resetting maxh to larger values again:

```
from netgen.occ import *
from ngsolve import *

b1 = Box((-1,-1,-1), (1,1,1))

b1.faces.Max(X).maxh = 0.1
b1.faces.Max(X).maxh = 0.2

geo = OCCGeometry(b1)
mesh = Mesh(geo.GenerateMesh(maxh=0.5))
Draw(mesh)
```

Needed for example in meshing app. Before it was not possible to set
maxh to larger value again.
2024-04-26 09:55:53 +02:00
Christopher Lackner
9b9ad1fd82 function to reset occ global shape properties 2024-04-02 22:46:55 +02:00
Christopher Lackner
bfcd77ff9c [occ] allow giving explicit edge partition 2024-03-27 14:55:29 +01:00
Joachim Schoeberl
43b707bcfb wrap inertia of occ-shape to Python 2024-03-07 12:39:56 +01:00
Matthias Hochsteger
b8aa568626 Utility function to generate OCC shape triangulation -> always use same parameters 2024-02-29 17:19:47 +01:00
Joachim Schoeberl
a65e61c95e OCC generation of visualization mesh using IMeshTools_Parameters 2024-02-21 20:00:59 +01:00
Joachim Schoeberl
61f34fc4ad converting back: no win include in python-occ 2024-02-10 10:02:55 +01:00
Joachim Schoeberl
97709fca23 windows include in python_occ_shapes 2024-02-10 09:46:53 +01:00
Christopher Lackner
000424f001 offset should always be called no a finished line 2024-02-08 15:08:49 +01:00
Christopher Lackner
0fab0ec1eb dont reverse wire in offset
This works with this change:

```
MoveTo(0,0).LineTo(1,1).Finish().Offset(0.2).Face()
```
2024-02-08 14:57:56 +01:00
Matthias Hochsteger
6533663b7f Fix Workplane.Offset for straight lines 2024-01-30 17:41:46 +01:00