Points to Surfaces to CAD Model

I have a bunch of corners of rectangles and am trying to somehow transform these points into surfaces/solids for a CAD model of crystals/grains. Many rectangles intersect each other (at semi-random orientations). I've been using Sven's stlwrite that triangulates each rectangle but this results in too many interferences - can't find any CAD software that can merge all the rectangles together into one solid part due to interferences.
Should I focus on somehow removing the interferences between all the rectangles in MATLAB? Or is there a MATLAB code to generate a closed, external surface from a rugged, 3D surface?
Thank you.

5 Comments

can you show a sample code so the readers of your question get a better picture the intersecting rectangles you mention?
correct if wrong, you want to generate an outer (or inner) surface out of the many intersecting rectangles?
or is it a 3D to 2D projection your are after?
Thank you for your reply. Since a picture is worth a thousand words:
I wish to generate an other surface for all this, like the shape of a coat of paint over everything.
Nevermind, got it to work! Thanks all.
Can you share its implementation as I have same issue and not sure about how to implement it for 3D meshes?
Hello Yang Shi,
could you please share some information regarding how you solved your problem? I am having a similar one and your input could help.

Sign in to comment.

Answers (1)

mohammad abdiyan
mohammad abdiyan on 22 May 2020
hi guys
I am working in a solid state transformer matlab simulink .
does any one have any related simulink or documents that can help me .
please i need help in this university project .
thanks
mrabdiyan@gmail.com

Categories

Find more on Simulation in Help Center and File Exchange

Asked:

on 19 Dec 2016

Commented:

on 16 Nov 2021

Community Treasure Hunt

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

Start Hunting!