Skip to content

Commit fe1836c

Browse files
committed
Small adjustments
1 parent c9a6b0d commit fe1836c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/meshes.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ const GLNormalUVWMesh2D = GLNormalUVWMesh{2}
8787
const GLNormalUVWMesh3D = GLNormalUVWMesh{3}
8888

8989
"""
90-
mesh(primitive::GeometryPrimitive;
91-
pointtype=Point2, facetype=GLTriangle,
90+
mesh(primitive::Meshable{N,T};
91+
pointtype=Point{N,T}, facetype=GLTriangle,
9292
uvtype=nothing, normaltype=nothing)
9393
9494
Creates a mesh from `primitive`.
@@ -98,8 +98,8 @@ Note, that this can be an `Int` or `Tuple{Int, Int}``, when the primitive is gri
9898
It also only losely correlates to the number of vertices, depending on the algorithm used.
9999
#TODO: find a better number here!
100100
"""
101-
function mesh(primitive::Meshable{N,T}; pointtype=Point{N,T}, facetype=GLTriangleFace, uv=nothing,
102-
normaltype=nothing) where {N,T}
101+
function mesh(primitive::Meshable{N,T}; pointtype=Point{N,T}, facetype=GLTriangleFace,
102+
uv=nothing, normaltype=nothing) where {N,T}
103103

104104
positions = decompose(pointtype, primitive)
105105
faces = decompose(facetype, primitive)

0 commit comments

Comments
 (0)