Comments (4)
@bgbsww related to TNP?
from freecad.
Quick test shows it happening in 0.21.2 where TNP is still off. It also happens in LS3 and in 0.20.2 Is the example code correct, and on what version exactly did it return None?
from freecad.
Indeed, I observe the same behavior on 0.21.2, and on Appimage 0.20.2 with OCCT 7.6.3
That look strange because I use this function for years, and I am sure it worked fine in the past.
So I have no clue what's going on ???
By the way, here is another script showing the bug :
cone = Part.makeCone(2, 4, 10)
seam = cone.Edge2
Part.show(seam, "Seam")
# This edge has 2 pcurves
print(seam.curveOnSurface(0))
print(seam.curveOnSurface(1))
print(seam.curveOnSurface(3)) # None = no more pcurves
topface = cone.Face2
Part.show(topface, "TopFace")
cos = topface.curveOnSurface(seam)
print(cos)
# should be None because seam has no pcurve on the top face
# instead, the returned curve2D is a projection of the seam on the topface
edge = cos[0].toShape(topface.Surface, cos[1], cos[2])
Part.show(edge, "PCurve")
from freecad.
I checked into Opencascade source code.
When Face is a plane and no existing pcurve is found, curveOnSurface() does a projection on the plane.
Quite strange it does not check if Edge and Face are coplanar beforehand.
Anyway, I was obviously wrong.
Apologies for the wasted time. I close.
from freecad.
Related Issues (20)
- Addon manager usability issues HOT 4
- Draft: Error on Draft_Join HOT 1
- Draft: Error on Draft_Fillet HOT 1
- 0.22.0dev.37730: Windows color scheme unusable HOT 1
- Core: Drag&Drop auto 'Copy mode' buggy and unintuitive
- [Problem] "Measure" tool icon doesn't update on changing from old "Measure distance" tool HOT 1
- [Problem] Sketcher: no way to "escape from" autosnapping a circle with autoconstrain on HOT 2
- Proposal for usability improvements, from an architect and civil builder. HOT 4
- [UI] : Some icons appear partially hidden at startup HOT 3
- All the issues in the new stylesheets/themes. HOT 17
- make reverse XY setting enable by default 3dconnections HOT 2
- Checkbox state not visible in new Dark/Light themes HOT 2
- BIM: Error, the walls move with the carpentry HOT 1
- CAM: Request for change of FreeCAD's default Slitting Saw shape file because of its unnatural reference point HOT 4
- Preferences need cosmetic fix HOT 6
- FreeCAD current and OpenCascade 7.8.1 HOT 3
- Undoing helix causes segfault
- CAM: Unable to add a toolbit to a job and to create a new one HOT 2
- Sketcher - Polar transformation explodes sketch. HOT 2
- Can Fasteners Properties be updated to Title case? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from freecad.