Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
3d surface images
#33
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!!!
Reply


Messages In This Thread
3d surface images - by james2464 - 11-20-2022, 04:58 AM
RE: 3d surface images - by MasterGy - 12-18-2022, 05:13 PM
RE: 3d surface images - by james2464 - 12-18-2022, 09:02 PM
RE: 3d surface images - by MasterGy - 12-18-2022, 09:19 PM
RE: 3d surface images - by james2464 - 12-18-2022, 09:52 PM
RE: 3d surface images - by james2464 - 12-19-2022, 12:16 AM
RE: 3d surface images - by bplus - 12-19-2022, 01:12 AM
RE: 3d surface images - by mnrvovrfc - 12-19-2022, 10:27 AM
RE: 3d surface images - by james2464 - 12-19-2022, 02:26 AM
RE: 3d surface images - by james2464 - 12-19-2022, 06:01 AM
RE: 3d surface images - by MasterGy - 12-19-2022, 01:16 PM
RE: 3d surface images - by james2464 - 12-19-2022, 09:09 PM
RE: 3d surface images - by MasterGy - 12-19-2022, 09:20 PM
RE: 3d surface images - by james2464 - 12-19-2022, 09:44 PM
RE: 3d surface images - by MasterGy - 12-19-2022, 09:59 PM
RE: 3d surface images - by james2464 - 12-19-2022, 10:13 PM
RE: 3d surface images - by james2464 - 12-20-2022, 12:33 PM
RE: 3d surface images - by MasterGy - 12-20-2022, 01:52 PM
RE: 3d surface images - by james2464 - 12-20-2022, 03:52 PM
RE: 3d surface images - by MasterGy - 12-20-2022, 01:58 PM
RE: 3d surface images - by SMcNeill - 12-20-2022, 03:37 PM
RE: 3d surface images - by james2464 - 12-20-2022, 04:26 PM
RE: 3d surface images - by MasterGy - 12-20-2022, 07:33 PM
RE: 3d surface images - by mnrvovrfc - 12-20-2022, 11:22 PM
RE: 3d surface images - by SMcNeill - 12-20-2022, 11:39 PM
RE: 3d surface images - by james2464 - 12-20-2022, 06:02 PM
RE: 3d surface images - by MasterGy - 12-20-2022, 07:18 PM
RE: 3d surface images - by james2464 - 12-20-2022, 07:42 PM
RE: 3d surface images - by james2464 - 12-21-2022, 04:49 AM
RE: 3d surface images - by james2464 - 12-21-2022, 07:45 PM
RE: 3d surface images - by james2464 - 12-23-2022, 08:28 PM
RE: 3d surface images - by mnrvovrfc - 12-23-2022, 09:09 PM
RE: 3d surface images - by MasterGy - 12-24-2022, 01:39 PM
RE: 3d surface images - by MasterGy - 12-24-2022, 01:55 PM
RE: 3d surface images - by james2464 - 12-24-2022, 05:56 PM
RE: 3d surface images - by james2464 - 12-24-2022, 05:58 PM
RE: 3d surface images - by bplus - 12-24-2022, 06:34 PM
RE: 3d surface images - by james2464 - 12-24-2022, 07:40 PM
RE: 3d surface images - by MasterGy - 12-24-2022, 07:20 PM
RE: 3d surface images - by james2464 - 12-24-2022, 07:39 PM
RE: 3d surface images - by OldMoses - 12-25-2022, 12:25 AM
RE: 3d surface images - by james2464 - 12-26-2022, 05:13 PM
RE: 3d surface images - by james2464 - 12-26-2022, 05:19 PM
RE: 3d surface images - by MasterGy - 12-27-2022, 10:46 AM
RE: 3d surface images - by james2464 - 12-27-2022, 09:17 PM
RE: 3d surface images - by MasterGy - 12-27-2022, 10:53 AM



Users browsing this thread: 8 Guest(s)