Joachim Schoeberl
c4dbe60f78
create edge from two vertices
2024-09-28 20:29:22 +02:00
Christopher Lackner
10986ffbab
convert gp_Dir to gp_Vec
2024-09-28 16:39:19 +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
Christopher Lackner
827b02d94c
propagate properties correctly in occgeom.Glue
2024-09-16 09:59:42 +02:00
Schöberl, Joachim
0fb5b416ba
Merge branch 'raise_len_error_not_ngs' into 'master'
...
Raise len error not ngs
See merge request ngsolve/netgen!659
2024-08-26 12:35:09 +02:00
Christopher Lackner
c7800704b0
fix pybind11 exception binding warning
2024-08-26 12:21:56 +02:00
Christopher Lackner
945bf2b3a3
raise length_error not netgen::Exception on wrong tuple size
2024-08-26 11:14:29 +02:00
Joachim Schoeberl
54d59cff1e
fix warnings
2024-07-16 13:03:49 +02:00
Christopher Lackner
3709ea8f94
allow reading of binary brep files
2024-06-21 15:16:47 +02:00
Matthias Hochsteger
163135981e
Fix GIL issues in GenerateMesh() functions
...
Functions with a python typed argument (kwargs in this case) cannot use
py::call_guard<py::gil_scoped_release>()
because it means, the GIL is not held when the function returns (and
cleans up arguments/temporary variables).
Thus, remove the global call guard and create a local variable
py::gil_scoped_release gil_release;
after arguments are processed and before meshing starts.
This local variable is destroyed before the function returns
(acquiring the GIL again).
2024-06-21 11:36:37 +02:00
Matthias Hochsteger
c2f42f2f16
Backward compatibility for occ geometry loading (from mesh file)
2024-06-20 18:05:43 +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
Joachim Schoeberl
eef79e64f2
added DLL_HEADER
2024-04-19 09:46:02 +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
Matthias Hochsteger
afb2f2f0ea
Opencascade 7.8.0 compatibility
2024-03-25 10:19:25 +01:00
Joachim Schoeberl
43b707bcfb
wrap inertia of occ-shape to Python
2024-03-07 12:39:56 +01:00
Hochsteger, Matthias
6b89d2cf62
Compatibility with Opencascade 7.8
2024-03-06 16:29:11 +01:00
Christopher Lackner
bb7a3fe692
show properties in topology view in netgen gui
2024-03-05 14:38:25 +01:00
Christopher Lackner
1a213a1588
fix identifications write and load to step
2024-03-04 21:57:54 +01:00
Christopher Lackner
37df61b233
don't segfault on internal or external orientations in occ viewer
2024-03-04 19:49:40 +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
4ff7a2261b
use IMeshTools in SetLocalMeshSize
2024-02-21 21:42:34 +01:00
Joachim Schoeberl
a65e61c95e
OCC generation of visualization mesh using IMeshTools_Parameters
2024-02-21 20:00:59 +01:00
Joachim Schoeberl
b959676534
check for infinite shape
2024-02-21 15:14:33 +01:00
Christopher Lackner
ddc50aa651
throw exception if surface triangulation cannot be built by occ
2024-02-13 09:33:12 +01:00
Joachim Schoeberl
97de13cf30
remove include<windows.h> from cpp-files
2024-02-10 20:55:45 +01:00
Joachim Schoeberl
3a2e3fa901
includes in vsocc
2024-02-10 10:15:11 +01:00
Joachim Schoeberl
61f34fc4ad
converting back: no win include in python-occ
2024-02-10 10:02:55 +01:00
Joachim Schoeberl
7d45d47260
no extra win include
2024-02-10 09:57:37 +01:00
Joachim Schoeberl
beed254a7d
windows include in python_occ
2024-02-10 09:51:19 +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
Matthias Hochsteger
2024a67c74
occ shapes _webgui_data - export color alpha values
...
Also
- don't create ShapeProperties objects for faces with default values
- use default name/color from ShapeProperties
2024-01-22 11:00:46 +01:00
Christopher Lackner
48eb4fed07
add tolerance to occ-edge projection
2024-01-10 16:31:05 +01:00
Joachim Schoeberl
87b65fb5ff
remove warnings
2024-01-05 20:07:04 +01:00
Lackner, Christopher
4648ac2768
Merge branch 'occ_arc_name' into 'master'
...
[occ] add name argument to arc in workplane
See merge request ngsolve/netgen!615
2023-12-07 10:23:03 +01:00
Christopher Lackner
5692604ab6
[occ] add name argument to arc in workplane
2023-11-21 11:38:01 +01:00
Matthias Hochsteger
ce8a73750e
Return None if no color is set in shape
2023-11-21 11:26:16 +01:00
Matthias Hochsteger
20fd3af5b4
Fix face orientation in BuildFMap to change the original shape
2023-10-12 16:10:50 +02:00
Hochsteger, Matthias
dad62afcee
Call PropagateProperties in OCCGeometry::HealGeometry()
2023-10-11 17:13:38 +02:00
Christopher Lackner
e2aa646b0e
allow read in of "broken" step files (for manual fixing)
2023-10-09 11:50:18 +02:00
Christopher Lackner
556ec04b8e
add colors for iges input files
2023-10-09 11:30:45 +02:00