@@ -281,7 +281,7 @@ Default shape constructor which works with every Geometry from the package
281281GeometryTypes (Meshes and geometry primitives alike).
282282"""
283283function Shape (context:: Context , meshlike; kw... )
284- m = uv_normal_mesh (meshlike; kw... )
284+ m = expand_faceviews ( uv_normal_mesh (meshlike; kw... ) )
285285 return Shape (context, decompose (Point3f, m), decompose_normals (m), faces (m), decompose_uv (m))
286286end
287287
@@ -300,7 +300,7 @@ function Shape(context::Context, vertices, normals, faces, uvs)
300300
301301 nraw = decompose (Vec3f, normals)
302302 @assert eltype (nraw) == Vec3f
303-
303+
304304 if isnothing (uvs)
305305 uvraw = C_NULL
306306 uvlength = 0
@@ -318,10 +318,10 @@ function Shape(context::Context, vertices, normals, faces, uvs)
318318
319319
320320 foreach (i -> checkbounds (vertices, i + 1 ), iraw)
321- rpr_mesh = rprContextCreateMesh (context,
322- vraw, length (vertices), sizeof (Point3f),
323- nraw, length (normals), sizeof (Vec3f),
324- uvraw, uvlength, uvbytesize,
321+ rpr_mesh = rprContextCreateMesh (context,
322+ vraw, length (vertices), sizeof (Point3f),
323+ nraw, length (normals), sizeof (Vec3f),
324+ uvraw, uvlength, uvbytesize,
325325 iraw, sizeof (rpr_int), iraw, sizeof (rpr_int), iraw, sizeof (rpr_int), facelens, length (faces)
326326 )
327327
0 commit comments