Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Converting SVG Path to Model and Distortion Creating Multiple Models #595

Open
Gautam2010 opened this issue Jul 10, 2024 · 0 comments

Comments

@Gautam2010
Copy link
Contributor

Gautam2010 commented Jul 10, 2024

I am experiencing an issue with converting an SVG path to a model using the library. After distorting the base model, it creates multiple models instead of a single one. Additionally, the original endless shape becomes non-endless after distortion.
svgPath.txt

// SVG Path data added as an attachment
const svgPath =above file svgPath.txt has path;

// Convert SVG path to model
const baseModel = importer.fromSVGPathData(svgPath);

// Distort the model
let newModel = model.distort(baseModel, 0.21619089656166393, 0.21619089656166393);

Issue Details:

  1. Importing a single SVG path and creating a base model.
  2. After distortion, multiple models are created.
  3. The base model was an endless shape but becomes non-endless after distortion.

Expected Behavior:

  1. The model should remain a single entity after distortion same and the endless shape should be preserved.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant