Giter Site home page Giter Site logo

Comments (8)

Kevin-Mattheus-Moerman avatar Kevin-Mattheus-Moerman commented on June 11, 2024

Hi @NataCalc thanks for testing GIBBON and for posting this issue.

Are you able to share the STL file?

From your code I see you use:

V_regions=[0 0 0];
inputStruct.regionPoints=V_regions; %region points

The region point has to be an interior point for a certain mesh region. If you have n regions you need n interior points. Are you sure that the point with the coordinates 0,0,0 is inside your shape?

Consider using [F,V]=mergeVertices(F,V); to merged nodes instead of the unique operation.

Are you using the most recent GIBBON version?

from gibbon.

NataCalc avatar NataCalc commented on June 11, 2024

Hi Kevin,

You were right! The region point was outside the convex hull. The problem is solved.

In my previous message, I enclosed stl file. You cannot see it?

I think I have version 3.

Thank you again,
NataCalc

from gibbon.

Kevin-Mattheus-Moerman avatar Kevin-Mattheus-Moerman commented on June 11, 2024

Great. Glad to have been of assistance.

from gibbon.

NicolasGrandinPerea avatar NicolasGrandinPerea commented on June 11, 2024

Hello guys !
I have a similar problem as @NataCalc used to have:
Warning:
C:\Users\Nicolas\Documents\MATLAB\GIBBON_matlab_toolboxes\GIBBON-9185c1c77299040b3b597ae43f553f432cfabd56\data\temp\temp.1.node
import unsuccesful

In importTETGEN (line 29)
In runTetGen (line 345)
I used the GIBBON function "getInnerPoint" and checked that the point was actually inside my geometry (which is a set of nodes and elements from an abaqus file using the element2patch function)

Any help would be greatly appreciated !!

Reagards,
Nicolas

from gibbon.

Kevin-Mattheus-Moerman avatar Kevin-Mattheus-Moerman commented on June 11, 2024

Hi @NicolasGrandinPerea thanks for your message. I need a bit more information.
Does tetgen create any other warning messages? Can you see if that node file is actually created? When you say elements from abaqus do you mean surface elements or solid elements? I cannot see your code but if you used element2patch from solid elements then you get faces for the boundary as well as the interior. This example shows how to get just the boundary faces:

F_elements=element2patch(E); %All faces (including interior element faces)
indBoundaryFaces=tesBoundary(F_elements,V); %Indices for boundary faces
F_boundary=F_elements(indBoundaryFaces,:); %The boundary faces

You then get the interior point for this subset and run tetgen for these boundary faces.
Let me know how you get on.

from gibbon.

NicolasGrandinPerea avatar NicolasGrandinPerea commented on June 11, 2024

Hi @Kevin-Mattheus-Moerman
Thank you for your quick answer
Yes I have another error message:
--- Importing TetGen files --- 27-Aug-2019 23:30:32
Warning:
C:\Users\Nicolas\Documents\MATLAB\GIBBON_matlab_toolboxes\GIBBON-9185c1c77299040b3b597ae43f553f432cfabd56\data\temp\brain_mesh.1.node
import unsuccesful

In importTETGEN (line 29)
In runTetGen (line 345)
--- Done --- 27-Aug-2019 23:30:32
Error using copyfile
Cannot write to destination: C:\Users\Nicolas\Desktop\brain_mesh.smesh. Use the 'f' option to override.

Error in runTetGen (line 397)
copyfile(fileNameTemp,fileName);
A .smesh was actually created
I'm currently using solid elements (a .inp file I split into two pieces - one for the elements & one for the vertices)

I'll try example on my script !

Thanks again for your precious help !

from gibbon.

NicolasGrandinPerea avatar NicolasGrandinPerea commented on June 11, 2024

Hi @Kevin-Mattheus-Moerman

My script is linked below if you need.

I tried your method with using the boundary faces, however, it didn't work because the F_boundary hasn't the same dimension as F_elements:

--- Writing SMESH file --- 28-Aug-2019 14:27:58
----> Adding node field
----> Adding facet field
Error using horzcat
Dimensions of arrays being concatenated are not consistent.

Error in writeBasicSmesh (line 55)
F_field=[size(F,2).*ones(size(F,1),1) F faceBoundaryMarker(:)];

Error in runTetGen (line 259)
writeBasicSmesh(inputStruct);

Do you have any clue ?

github_gibbon .txt

from gibbon.

Kevin-Mattheus-Moerman avatar Kevin-Mattheus-Moerman commented on June 11, 2024

Apologies I was not being able to answer this in time. This issue seems stale now, and as such I'll close it, but let me know if you still have questions.

from gibbon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.