Coder Social home page Coder Social logo

Comments (18)

shaise avatar shaise commented on August 26, 2024

yes, problem verified. It happens freecad when moved from OCC v7.1 to OCC v7.2
Looking into it

from freecad_fastenerswb.

luzpaz avatar luzpaz commented on August 26, 2024

Hey @shaise here is a downstream report https://freecadweb.org/tracker/view.php?id=3552
Please give a heads up when this issue is fixed so we can close said downstream report. Thanks!

Related forum post: https://forum.freecadweb.org/viewtopic.php?f=10&t=30074

from freecad_fastenerswb.

shaise avatar shaise commented on August 26, 2024

Sorry about that. I dug into the code, (its not mine) but could not find an easy fix. Do you know if ScrewMaker macro works for these types? If so, I will copy the solution from that. If not, I will try again as soon as I have time.

from freecad_fastenerswb.

shaise avatar shaise commented on August 26, 2024

OK, went back into it with a fresh mind, and found a fix. Problem should be fixed. Please check and close.
shai

from freecad_fastenerswb.

Gesiima avatar Gesiima commented on August 26, 2024

Tested and works great! Thx for fix

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.14495 (Git)
Build type: Release
Branch: master
Hash: c717d1121d888fe6cfbd8971b5f59311a34b37bc
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: German/Germany (de_DE)

from freecad_fastenerswb.

starcatter avatar starcatter commented on August 26, 2024

Hi, is this issue back? I just installed what looks like the current version (last change in readme.md is V0.4.15 04 Oct 2022), and upon adding "hexagon socket countersunk head" screws got the following:

image

hexalobular screws on the left look ok, hex socket screws on the right are glitched again

from freecad_fastenerswb.

shaise avatar shaise commented on August 26, 2024

I will take a look at it, can you say what size and length are the hex screws?

from freecad_fastenerswb.

starcatter avatar starcatter commented on August 26, 2024

image

from freecad_fastenerswb.

shaise avatar shaise commented on August 26, 2024

I can not reproduce this issue with the current freecad version:
image
What version of freecad are you using?
can you attach the problematic file (zipped)

from freecad_fastenerswb.

starcatter avatar starcatter commented on August 26, 2024

You are right! It works fine in the current stable version:

current

Problem occurs in link branch, installed via snap:
link

As well as one built from arch package:
link-aur

I also ensured all freecad installations share the same version of the fastener workbench. Looks like issue lies with the link branch.

from freecad_fastenerswb.

luzpaz avatar luzpaz commented on August 26, 2024

Please let realthunder know. Closing ticket as this is related to Link branch

from freecad_fastenerswb.

realthunder avatar realthunder commented on August 26, 2024

The original fix here is not appropriate. The reason it worked is most likely due to bug of OCC revolving may sometimes create solid regardless if the input face is closed or not. The produced geometry will fail the BOP test. The PR above simply closed the wire, which makes Part.revolve() return a valid solid. Please check if it covers all the cases.

from freecad_fastenerswb.

shaise avatar shaise commented on August 26, 2024

I have merged @realthunder 's solution. However this fix is only for non flat countersunk screws so I wonder if it solves the issue. @starcatter , can you please check if it works now with the link branch?

from freecad_fastenerswb.

starcatter avatar starcatter commented on August 26, 2024

Countersunk hex screw sockets are now modeled correctly:
image

However while playing around I noticed two things I think are new.

1 - set screws are sometimes modeled incorrectly, with the socket shape placed out of alignment:
hex2
Looks like it moved after generating the thread:
hex3

2 - after some operations on fasteners (changing types eg. M8->M6, adding thread) an object named "Shape" appears. This happens randomly / isn't always reproducible, but consistently happens after a few operations.
shapes
shapes2

Both might be separate issues, I'll test if either happens in the stable branch weekly build. Here's the model I'm testing on:
5mm-plate.zip

from freecad_fastenerswb.

starcatter avatar starcatter commented on August 26, 2024

The extra shape also appears in the weekly build:
WEEKLY

OS: Manjaro Linux (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.21.30492 (Git) AppImage
Build type: Release
Branch: master
Hash: b4578fb3eae842eb510a1bc055d07d369a67ce94
Python 3.10.6, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: English/United States (en_US)
Installed mods: 
  * fasteners 0.4.15
  * Assembly3 0.11.3

from freecad_fastenerswb.

shaise avatar shaise commented on August 26, 2024

Thanks for the report, working on it.
Can you save a file with a bad set screw and attach it?

from freecad_fastenerswb.

shaise avatar shaise commented on August 26, 2024

@starcatter
I think I fixed both issues. (no need for example file) Can you please test?

shai

from freecad_fastenerswb.

starcatter avatar starcatter commented on August 26, 2024

Looks fixed - I can't reproduce any of the issues after updating to the latest version. Thanks!

from freecad_fastenerswb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.