![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1581476/image.png)
Cut a 3D object with the IsoCut function present on FileExchange
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Alberto Acri
am 3 Okt. 2023
Bearbeitet: akshatsood
am 21 Mai 2024
I encountered this problem in the function 'IsoCut_demo3_test' -> line 71 'IsoCut' -> line 61 'IsoContour'.
Can anyone help me position the line that is generated in the first figure corresponding to the plane?
vertices = importdata("NODES.mat");
faces = importdata("FACES.mat");
TR.vertices = vertices;
TR.faces = faces;
P = importdata("V_plane.mat");
iv = 0.6;
IsoCut_demo3_test(iv,TR,P);
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1500955/image.png)
0 Kommentare
Akzeptierte Antwort
akshatsood
am 3 Jan. 2024
Bearbeitet: akshatsood
am 3 Jan. 2024
I understand that you seek guidance in positioning the line upon the designated plane of the three-dimensional object at hand. After conducting a thorough review of the code files you have provided, it became clear that the key to controlling the line's position lies within the manipulation of the "iv" variable. Through a series of experiments with the values of "iv" variable, the most effective setting to achieve the precise alignment comes out to be "0.42". Here is the updated code snippet for your reference
vertices = importdata("NODES.mat");
faces = importdata("FACES.mat");
TR.vertices = vertices;
TR.faces = faces;
P = importdata("V_plane.mat");
iv = 0.42; % influences position of line
IsoCut_demo3_test(iv,TR,P);
Please find the 3D object below which features the line in the desired position
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1581476/image.png)
I hope this helps.
2 Kommentare
akshatsood
am 21 Mai 2024
Bearbeitet: akshatsood
am 21 Mai 2024
Hi @Alberto Acri, without manual intervention, the exact process to achieve this remains uncertain. Given that this code is taken from File Exchange, it would be advisable to reach out to the author directly for further insights. I recommend utilizing the discussion section available on the File Exchange page to connect with the author.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Robust Control Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!