12-24-2022, 01:39 PM
The office building turned out very well! I like the way you use _maptriangle ! The color of the table (dark brown, light brown) is also very good!
If you want to include 3D models in the program, this is how I did it.
You can find 3d models in any format. The easiest way is to convert them to .OBJ or .3DX format. These are good because you get the position of the points and the planar contours from the points in txt. Here you have to know for yourself that it is simpler. But I think it is beneficial if, for example, you would also store the table you created in a separate file. Points are listed, and planar ridges are listed. I think you can do it easily, since you handle the points and the slopes like a professional.
Ideally, if you use .OBJ. I took out what I needed with a simple notepad.
All points begin with V. They are listed here in the file
v -129.72956895828247072 1597.69964218137511128 -0.0002602983114252076
v 0 1597.69962115040698336 -129.08742231613194917
v 129.72956895828247072 1597.69964218137511128 -0.0002602983114252076
v 0 1597.69966321234323912 129.08690171950911463
It starts with an F, as he makes skidrows out of it.
f 1918//7781 1917//7782 1921//7783 1922//7784
f 1916//7785 1915//7786 1919//7787 1920//7788
f 1915//7789 1918//7790 1922//7791 1919//7792
f 1923//7793 1926//7794 1930//7795 1927//7796
f 1920//7797 1919//7798 1923//7799 1924//7800
It should be understood that what is needed is the first term. For the first line, 1918, 1917, 1921, 1922. So, it indicates the serial number of the lines (dots) marked with "v" in the file.
There are times when you list several points in line "f". But how do we make triangles out of it? You don't have to be like that.
For example, one in the file:
f a b c d e f
then the connection of points a,b,c,d,e,f gives the hexagon.
Assigning the first two members to the others will give the entire surface divided into triangles.
for _maptriangle :
a b c
a b d
a b e
a b f
I hope I was able to formulate it clearly, and you will see that you will save a lot of time if you make a 3d model scanner based on such a system. If you understand how it works (I'm sure you do), you can easily integrate .OBJ files into the program from here.
If you like a 3D model, but you can't find it in .OBJ, there are many online 3D model converters. For example:
https://fabconvert.com/convert/3d-model
Good luck !
And Merry Christmas!!!
If you want to include 3D models in the program, this is how I did it.
You can find 3d models in any format. The easiest way is to convert them to .OBJ or .3DX format. These are good because you get the position of the points and the planar contours from the points in txt. Here you have to know for yourself that it is simpler. But I think it is beneficial if, for example, you would also store the table you created in a separate file. Points are listed, and planar ridges are listed. I think you can do it easily, since you handle the points and the slopes like a professional.
Ideally, if you use .OBJ. I took out what I needed with a simple notepad.
All points begin with V. They are listed here in the file
v -129.72956895828247072 1597.69964218137511128 -0.0002602983114252076
v 0 1597.69962115040698336 -129.08742231613194917
v 129.72956895828247072 1597.69964218137511128 -0.0002602983114252076
v 0 1597.69966321234323912 129.08690171950911463
It starts with an F, as he makes skidrows out of it.
f 1918//7781 1917//7782 1921//7783 1922//7784
f 1916//7785 1915//7786 1919//7787 1920//7788
f 1915//7789 1918//7790 1922//7791 1919//7792
f 1923//7793 1926//7794 1930//7795 1927//7796
f 1920//7797 1919//7798 1923//7799 1924//7800
It should be understood that what is needed is the first term. For the first line, 1918, 1917, 1921, 1922. So, it indicates the serial number of the lines (dots) marked with "v" in the file.
There are times when you list several points in line "f". But how do we make triangles out of it? You don't have to be like that.
For example, one in the file:
f a b c d e f
then the connection of points a,b,c,d,e,f gives the hexagon.
Assigning the first two members to the others will give the entire surface divided into triangles.
for _maptriangle :
a b c
a b d
a b e
a b f
I hope I was able to formulate it clearly, and you will see that you will save a lot of time if you make a 3d model scanner based on such a system. If you understand how it works (I'm sure you do), you can easily integrate .OBJ files into the program from here.
If you like a 3D model, but you can't find it in .OBJ, there are many online 3D model converters. For example:
https://fabconvert.com/convert/3d-model
Good luck !
And Merry Christmas!!!