Skip to content

Commit 2856618

Browse files
rename Tesselation -> Tessellation (#25)
Co-authored-by: Simon <[email protected]>
1 parent 9542ae8 commit 2856618

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

docs/src/curves.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ M, N = size(z)
5252
points = map(x-> x ./ Point3f(4, 4, 1.0) .+ Point3f(0, 0, 1.0), vec(Point3f.(x, y', z)))
5353
# Connect the vetices with faces, as one would use for a 2D Rectangle
5454
# grid with M,N grid points
55-
faces = decompose(LineFace{GLIndex}, Tesselation(Rect2(0, 0, 1, 1), (M, N)))
55+
faces = decompose(LineFace{GLIndex}, Tessellation(Rect2(0, 0, 1, 1), (M, N)))
5656
indices = RPR.rpr_int[]
5757
for elem in faces
5858
push!(indices, first(elem)-1, first(elem)-1, last(elem)-1, last(elem)-1)

docs/src/surface_mesh.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function create_mesh(DN = 512, dphi=pi/200.0f0, dtheta=dphi)
3434
z = @. r * sin(phi) * sin(theta)
3535

3636
xyz = Point3f[Point3f(x[i, j], y[i, j], z[i, j]) for i in 1:size(x, 1), j in 1:size(x, 2)]
37-
r = Tesselation(Rect2f((0, 0), (1, 1)), size(x))
37+
r = Tessellation(Rect2f((0, 0), (1, 1)), size(x))
3838
# decomposing a rectangle into uv and triangles is what we need to map the z coordinates on
3939
# since the xyz data assumes the coordinates to have the same neighouring relations
4040
# like a grid

examples/basic-uber.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ mesh, mat = add_shape!(scene, context, matsys, Rect3f(Vec3f(0, -2, 0), Vec3f(5,
4949
mesh, mat = add_shape!(scene, context, matsys, Rect3f(Vec3f(0, 2, 0), Vec3f(5, 0.1, 5));
5050
color=colorant"white")
5151

52-
mesh, mat = add_shape!(scene, context, matsys, Tesselation(Sphere(Point3f(2, 0, 2), 0.95f0), 100);
52+
mesh, mat = add_shape!(scene, context, matsys, Tessellation(Sphere(Point3f(2, 0, 2), 0.95f0), 100);
5353
color=colorant"white")
54-
rpr_mesh = RPR.Shape(context, Tesselation(Sphere(Point3f(2, 0, 2), 1.0f0), 100))
54+
rpr_mesh = RPR.Shape(context, Tessellation(Sphere(Point3f(2, 0, 2), 1.0f0), 100))
5555
push!(scene, rpr_mesh)
5656
material = RPR.MaterialNode(matsys, RPR.RPR_MATERIAL_NODE_UBERV2)
5757

examples/basic.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ mesh, mat = add_shape!(scene, context, matsys, Rect3f(Vec3f(0, -2, 0), Vec3f(5,
4949
mesh, mat = add_shape!(scene, context, matsys, Rect3f(Vec3f(0, 2, 0), Vec3f(5, 0.1, 5));
5050
color=colorant"white")
5151

52-
mesh, mat_sphere = add_shape!(scene, context, matsys, Tesselation(Sphere(Point3f(2, 0, 2), 1.0f0), 100);
52+
mesh, mat_sphere = add_shape!(scene, context, matsys, Tessellation(Sphere(Point3f(2, 0, 2), 1.0f0), 100);
5353
material=RPR.RPR_MATERIAL_NODE_MICROFACET, roughness=0.2, color=colorant"red")
5454

5555
fb_size = (800, 600)

examples/curves.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ M, N = size(z)
5353
points = map(x-> x ./ Point3f(4, 4, 1.0) .+ Point3f(0, 0, 1.0), vec(Point3f.(x, y', z)))
5454
# Connect the vetices with faces, as one would use for a 2D Rectangle
5555
# grid with M,N grid points
56-
faces = decompose(LineFace{GLIndex}, Tesselation(Rect2(0, 0, 1, 1), (M, N)))
56+
faces = decompose(LineFace{GLIndex}, Tessellation(Rect2(0, 0, 1, 1), (M, N)))
5757
indices = RPR.rpr_int[]
5858
for elem in faces
5959
push!(indices, first(elem)-1, first(elem)-1, last(elem)-1, last(elem)-1)

examples/surfacemesh.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function create_mesh(DN = 512, dphi=pi/200.0f0, dtheta=dphi)
3434
z = @. r * sin(phi) * sin(theta)
3535

3636
xyz = Point3f[Point3f(x[i, j], y[i, j], z[i, j]) for i in 1:size(x, 1), j in 1:size(x, 2)]
37-
r = Tesselation(Rect2f((0, 0), (1, 1)), size(x))
37+
r = Tessellation(Rect2f((0, 0), (1, 1)), size(x))
3838
# decomposing a rectangle into uv and triangles is what we need to map the z coordinates on
3939
# since the xyz data assumes the coordinates to have the same neighouring relations
4040
# like a grid

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ mesh, mat = add_shape!(scene, context, matsys, Rect3f(Vec3f(0, -2, 0), Vec3f(5,
4141
mesh, mat = add_shape!(scene, context, matsys, Rect3f(Vec3f(0, 2, 0), Vec3f(5, 0.1, 5));
4242
color=colorant"blue")
4343

44-
mesh, mat_sphere = add_shape!(scene, context, matsys, Tesselation(Sphere(Point3f(2, 0, 2), 1.0f0), 100); color=colorant"red")
44+
mesh, mat_sphere = add_shape!(scene, context, matsys, Tessellation(Sphere(Point3f(2, 0, 2), 1.0f0), 100); color=colorant"red")
4545
fb_size = (800, 600)
4646
frame_buffer = RPR.FrameBuffer(context, RGBA, fb_size)
4747
frame_bufferSolved = RPR.FrameBuffer(context, RGBA, fb_size)

0 commit comments

Comments
 (0)