SketchUp / api-issue-tracker

Public issue tracker for the SketchUp and LayOut's APIs
https://developer.sketchup.com/
38 stars 10 forks source link

Error intersecting a single face with model #925

Open KWSL opened 8 months ago

KWSL commented 8 months ago

Please include the following:

  1. SketchUp/LayOut Version: Pro 2023
  2. OS Platform: Windows

Describe briefly what you are doing and what is happening.

In this very simple model when I click into the roof group (which has only one surface), select that surface, right-click and select "Intersect with model", the edges that appear in the roof group do not all form faces themselves, or cut the existing face.

image of the model:

image

image of the intersection lines inside roof group:

image

If, before doing the intersection, I bisect the face within "Roof" in any direction, the intersecting edges are applied correctly:

bisected face: image

after intersection: image

This method is not perfect. Bisecting in this way: image

results in only a marginally improved intersection: image

Describe what the expected result is. at best, this results in extra work when modeling, at worst it is causing a plugin of mine to malfunction (the same intersecting errors occur when using entities.intersect_with), however, as the issue is not limited to ruby, I think it is better to address it within Sketchup, and then test whether ruby issues remain.

Ruby:

g1 = Sketchup.active_model.find_entity_by_persistent_id(413737)
g2 = Sketchup.active_model.find_entity_by_persistent_id(413462)
g1.entities.intersect_with(true,g1.transformation,g1.entities,g1.transformation,false,g2)

Attach any relevant files. SU Example File

sketchup[bot] commented 7 months ago

Logged as: SKEXT-3879