FreeCAD / FreeCAD/FreeCAD

[Issue] Orthogonal sketch when drawing on face

Open
#8,719 2 comments 0 reactions 0 assignees View on GitHub
3rd party: OCC Mod: Sketcher no-auto-close Type: Feature
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

### Forums discussion

https://forum.freecad.org/viewtopic.php?t=73602

### Version

0.21 (Development)

### Full version info

```shell
[code]
OS: Ubuntu Core 20 (X-Cinnamon/cinnamon)
Word size of FreeCAD: 64-bit
Version: 0.21.0.32164 (Git) Snap 638
Build type: Release
Branch: master
Hash: cc574749fa8af962670f77f26548bc71046361f0
Python 3.8.10, Qt 5.15.5, Coin 4.0.0, Vtk 7.1.1, OCC 7.6.3
Locale: English/United Kingdom (en_GB)
[/code]
```

### Subproject(s) affected?

None

### Issue description

1. Open project
2. Select the Face2 on the top (see screenshot)
3. Create a sketch
4. Although the sketch can be attached with the mode "Flat Face" the sketch appears to be orthogonal to the selected face.
5. It should be noted that the Face2 is a BsplineSurface.

### Anything else?

1. A more descriptive title is probably needed.
2. ~GitHub doesn't like the `.FCStd` file extension, so here's a link to the project file posted in the forum: https://forum.freecad.org/download/file.php?id=217053&sid=a816270ff637c8358db62afd9b82b9c3~ Attachment: [MinimalSketchOnFace_cb.FCStd.gz](https://github.com/FreeCAD/FreeCAD/files/10872806/MinimalSketchOnFace_cb.FCStd.gz)
3. Screenshot:

![image](https://user-images.githubusercontent.com/59611881/222411405-fd59073c-24d8-4f10-a4ce-918699eab39b.png)

### Code of Conduct

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

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with MinimalSketchOnFace_cb.FCStd: select Face2, create a sketch, and attach it using “Flat Face” on the BsplineSurface. Trace the sketch attachment and face-orientation handling from this reproduction; done means the sketch orientation follows the selected face rather than appearing orthogonal to it.

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
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.