필터 지우기
필터 지우기

how to export a 2D figure into a cad

조회 수: 13 (최근 30일)
Federico De Bianchi
Federico De Bianchi 2020년 3월 23일
답변: darova 2020년 3월 23일
Thank you for your attention.
I've written a Random Sequential Adsorption alghoritm that generates random 2D rectangular fibers into a prescribed domain. Basically I have a square (the domain) and a certain number of rectangles inside.
What I have as outputs are the figure that represents the situation abowe descriped (see the figure abowe), and an Excel file with nrows (n is the total number of rectangles), and each row has 8 components (the x-y coordinates of the vertices of the rectangles in anticlockwise direction).
I need to study the generated structure with Abaqus, and so I need to convert what I have into a 2D cad ( Solidworkd, Inventor, Autocad, they are all good).
Is there a way? It would be much easier to convert the plotted figure, but in case I can also use the excel file.
Regards
Federico
  댓글 수: 2
darova
darova 2020년 3월 23일
Is this correct? YOu are trying to export this surface? Or just many rectangles?
Federico De Bianchi
Federico De Bianchi 2020년 3월 23일
편집: Federico De Bianchi 2020년 3월 23일
yes it is, I'm trying to export this surface as well as 5 others. What changes is the number of the fibers (rectangle), but the pattern is the same.
It is a rappresentation, at a microstructure level, of a layer of a composite material with random short carbon fibers. The matlab script is needed to get teh random distribution of fibers

댓글을 달려면 로그인하십시오.

답변 (1개)

darova
darova 2020년 3월 23일
See attached script
But don't know how to deal with overlapping
Use stlwrite to write mesh to file

카테고리

Help CenterFile Exchange에서 Model Import에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by