File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,19 @@ class FEAWorkerWrapper {
137
137
throw error ;
138
138
}
139
139
}
140
+
141
+ /**
142
+ * Simple ping method to check if the worker is responsive.
143
+ * @returns {boolean } Returns true to indicate the worker is available.
144
+ */
145
+ ping ( ) {
146
+ try {
147
+ return true ;
148
+ } catch ( error ) {
149
+ console . error ( "FEA Worker: Error in ping" , error ) ;
150
+ throw error ;
151
+ }
152
+ }
140
153
}
141
154
142
155
Comlink . expose ( FEAWorkerWrapper ) ;
Original file line number Diff line number Diff line change 12
12
* Class to handle the generation of structured finite element meshes
13
13
*/
14
14
15
- import { importGmsh } from '../readers/gmshQuadReader.js' ;
15
+ import { importGmshQuadTri } from '../readers/gmshQuadReader.js' ;
16
16
17
17
export class meshGeneration {
18
18
/**
@@ -95,7 +95,7 @@ export class meshGeneration {
95
95
async generateMeshFromMshFile ( file ) {
96
96
97
97
//for now i have made a parsing of simple quadrilateral .msh file of version 4.1
98
- const outputMesh = await importGmsh ( file )
98
+ const outputMesh = await importGmshQuadTri ( file ) ;
99
99
100
100
return outputMesh
101
101
}
You can’t perform that action at this time.
0 commit comments