FreeCAD / FreeCAD/FreeCAD

Attachment: selecting a plane + vertex for a TangentPlane attachment, the plane is sometime not translated and always upside-down

Open
#21,278 7 comments 1 reaction 0 assignees View on GitHub
Mod: Part no-auto-close Status: Confirmed Type: Bug
Dominant language
C++
Stars
33.6k
Forks
6k
Avg merge
3d 17h
Merged PRs (30d)
196

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Problem description

When I select a plane and a vertex for a **TangentPlane** attachment, the plane is sometime not translated and always upside-down.

On the capture below the result plane is stuck on the XZ plane but it should be at the selected vertex.

![Image](https://github.com/user-attachments/assets/e5dc31c0-231a-4a1b-970b-d765b56e26e9)

When I edit the sketch, local +X belong global -X
![Image](https://github.com/user-attachments/assets/713d889c-2e53-4912-95f6-fe1684336d79)

In **FlatFace** attachment mode i.e. without vertex selected, local +X belong global +X as expected.

### Full version info

```shell
OS: Debian GNU/Linux trixie/sid (XFCE/xfce/xcb)
Architecture: x86_64
Version: 1.1.0dev.41632 (Git)
Build date: 2025/05/09 19:27:21
Build type: Unknown
Branch: main
Hash: ce368cb7a0dd6a3f57e5cabc3e7745c5669683a9
Python 3.13.3, Qt 5.15.15, Coin 4.0.3, Vtk 9.3.0, boost 1_83, Eigen3 3.4.0, PySide 5.15.16
shiboken 5.15.16, SMESH 7.7.1.0, xerces-c 3.2.4, OCC 7.8.1
Locale: English/United States (en_US) [ OS: French/France (fr_FR) ]
Stylesheet/Theme/QtStyle: FreeCAD Light.qss/FreeCAD Light/Fusion
Logical DPI/Physical DPI/Pixel Ratio: 85/86.4394/1
Installed mods:
* Render 2024.12.15
* Curves.backup1744720429.3214982 0.6.60 (Disabled)
* lattice2 1.0.0
* Lithophane
* Curves 0.6.61
* fasteners 0.5.38
* Assembly4 0.50.18
* Telemetry 1.0.0
* Road 2025.2.22
* FCPDWorkbench 0.4.0
* sheetmetal 0.7.22
```

### Subproject(s) affected?

Part

### Anything else?

_No response_

### Code of Conduct

- [x] I agree to follow this project's Code of Conduct

Contributor guide

Open the contributing guide

Research direction

Reproduce the attachment workflow by selecting a plane and vertex for TangentPlane, then compare it with FlatFace without a vertex. Verify that the resulting plane is translated to the selected vertex and that local +X has the expected orientation rather than being upside-down; use the supplied capture and version details to confirm the behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.