GithubHelp home page GithubHelp logo

Comments (4)

cambrialas avatar cambrialas commented on September 22, 2024

Hey nathaneltitane, could you upload the MPD file ? So I can see if I get the same result.

from leocad.

nathaneltitane avatar nathaneltitane commented on September 22, 2024

Hey nathaneltitane, could you upload the MPD file ? So I can see if I get the same result.

any complex mpd would do. have you tried replicating it? what is your result?

from leocad.

cambrialas avatar cambrialas commented on September 22, 2024

Have tried with the same settings as you specified and with MPD file for Lego set 7740 (complex) and the result had no issues.

Have found the code for generating the HTML, but nothing is sticking out, as far i can see on Leocad version is 23.03

from leocad.

cambrialas avatar cambrialas commented on September 22, 2024

Hey nathaneltitane, I also found that some of my Thumbnails where not cropped correctly.

It looks like there is an error, in the code where each Thumbnail is generated and cropped. The function lcProjectPoint, is using a different coordinate system, so each point has to be modified before being projected, which made the Thumbnails to be cropped correctly.

		for (lcVector3& Point : Points)
		{
			lcVector3 mod_point(-Point.y, -Point.x, -Point.z);

			Point = lcProjectPoint(mod_point, ViewMatrix, ProjectionMatrix, Viewport);

			ExtraPixels = qMax(ExtraPixels, -Point.x);
			ExtraPixels = qMax(ExtraPixels, Point.x - ThumbnailSize);
			ExtraPixels = qMax(ExtraPixels, -Point.y);
			ExtraPixels = qMax(ExtraPixels, Point.y - ThumbnailSize);
		}

So if you have the possibility, could you try modify code in model.cpp, with the above code.

The code is located in leocad/common/lc_model.cpp around line 1466 in the latest version.

from leocad.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.