Direct3D 12 - Geometry - Basics

There are two types of geometry in geometry, one is explicit geometry and the other is implicit geometry. There are different ways to represent different geometries

implicit geometry

Implicit actually means that it does not tell you where the specific points are, it only tells you the relationship that these points satisfy. Represents a certain relationship but does not give the actual point.
Example:
Insert image description here
implicit geometric representation.
The disadvantage is that it is difficult to see the geometric shape represented by the above formula.
Insert image description here
The advantage is that it can judge whether a point is on this geometry.
Insert image description here

explicit geometry

Explicitly, a triangular surface is directly represented by points, and there is another surface defined by the method of parameter mapping. For example, the
input UV is mapped to a certain point in space, and a function is defined to give you UV output (x , y, z)
Insert image description here
example
: UV is mapped into actual points in space (x, y, z).
Insert image description here
It becomes difficult to judge whether a point is geometrically correct or not.
Insert image description here

Some applications of implicit geometry

Through some simple Boolean operations to form a complex geometry
Insert image description here
Through distance function operations
For any geometry, it does not directly describe its surface, but to describe the shortest distance from any point of it to this surface.
The resulting distance function formed by fusing the geometric
distance function refers to the minimum distance between any point in space and any point on the geometric shape you want to represent. This distance can be positive or negative. If It is considered that there is a point outside the geometric surface, then the minimum distance of this point is calculated and then added with a positive sign, that is positive, if there is a point inside the geometry, then the minimum distance from this point to the surface of this geometry, And this distance is considered to be negative. That is to say, define a value for any point in the space, calculate the distance functions of the two objects, and then fuse the two distance functions, and then restore the original object to get the following transformation Here is
Insert image description here
an example of applying the distance function.
Insert image description here
Insert image description here
The actual example of the distance function.
Insert image description hereHow to restore the surface after the distance function is fused.
It is actually difficult to find out all the distance functions equal to 0.
Alternative method: the grid (level set)
Insert image description here
level set that stores the approximate value of the function It doesn’t have to be defined in two dimensions, it can also be defined in three dimensions . There is also
Insert image description here
Insert image description here
a special description method Fractals (fractals).

Insert image description here

Some applications of explicit geometry

Insert image description here
The point cloud
does not consider that the object is a surface, but a bunch of points on the surface. Each point is represented as a point. As long as these points are represented fine enough, the gaps between points will not be seen naturally. Do some Scanning of three-dimensional space
Insert image description here
polygon mesh
is more commonly used, such as three-dimensional modeling software
Insert image description here

Guess you like

Origin blog.csdn.net/weixin_43945471/article/details/130977112