diff --git a/3d-models.cpp b/3d-models.cpp index 550e109b..374a0f88 100644 --- a/3d-models.cpp +++ b/3d-models.cpp @@ -116,9 +116,19 @@ void geometry_information::add_texture(hpcshape& sh) { auto& utt = models_texture; sh.tinf = &utt; sh.texture_offset = isize(utt.tvertices); + + auto f = [] (hyperpoint h) { + if(!embedded_plane && gproduct) return product::inverse_exp(h); + return cgi.emb->actual_to_logical(h); + }; + + hyperpoint ct = Hypc; + int n = 0; + for(int i=sh.s; i