Search found 1626 matches

by tanderson69
Wed Mar 13, 2024 7:42 pm
Forum: Help on using FreeCAD
Topic: DAG problem in Part_Design Body
Replies: 9
Views: 882

Re: DAG problem in Part_Design Body

I wrote the DAGView years ago, but I have never touched any of the assembly workbenches so all I can do is guess. I think you are confusing 2 different dependency graphs. Document::getDependentDocuments is probably accessing a dependency graph between documents. The DAGView is a graph view of Docume...
by tanderson69
Fri Dec 15, 2023 2:50 pm
Forum: Developers corner
Topic: The story behind the OpenCASCADE 's new fork: OpenGeometry
Replies: 42
Views: 66781

Re: The story behind the OpenCASCADE 's new fork: OpenGeometry

I might be wrong, but OCE never seemed to improve anything in the modeling functions of the kernel whatsoever. I think you are right. OCE's big benefit was, and I can't believe I am saying this, they added a cmake build system. One of the OCE guys was a debian maintainer, so OCE found its way into ...
by tanderson69
Thu Nov 30, 2023 3:47 pm
Forum: Help on using FreeCAD
Topic: Modelling an extreme twist with a taper and an intro or ease-in
Replies: 6
Views: 890

Re: Modelling an extreme twist with a taper and an intro or ease-in

Thanks for the detailed explanation. I suppose I can use three segments (14-sided polygons) to shape the main body, then use a helix for the top plus a projected curve to simulate the ease-in with the auxiliary path property on the sweep? That's what I want to try this weekend at least. That might ...
by tanderson69
Tue Nov 28, 2023 2:43 pm
Forum: Help on using FreeCAD
Topic: Modelling an extreme twist with a taper and an intro or ease-in
Replies: 6
Views: 890

Re: Modelling an extreme twist with a taper and an intro or ease-in

2. Rather than working with slices, I tried using a sweep driven by an auxiliary Helix. That works to create the twist, but how can the helix be made tapered towards the bottom? And how can the start of the helix get this ease-in effect? If there's a way to get this working, that would be better th...
by tanderson69
Mon Oct 23, 2023 3:03 pm
Forum: Python scripting and macros
Topic: good and bad wires!
Replies: 14
Views: 4439

Re: good and bad wires!

This information (the pcurves) are also present in the failing wire. But this wire has a tolerance of 1e-7 (the working one is around 1e-5). So I think the tolerance is too low, and the facemaking algo can't detect a good match between the wire and the candidate surfaces of the pcurves. If I raise ...
by tanderson69
Sun Oct 22, 2023 2:20 am
Forum: Python scripting and macros
Topic: good and bad wires!
Replies: 14
Views: 4439

Re: good and bad wires!

... Why one will make a face and not the other? I don't understand how to deal with tolerances, if that is the issue. I don't think this is a tolerance issue, at least I couldn't get any behavior changes by altering tolerances. I noticed the surface type from the working wire is 'offset surface'. I...
by tanderson69
Sun Oct 15, 2023 1:05 pm
Forum: Developers corner
Topic: Splitting a face with BRepAlgoAPI_Splitter
Replies: 5
Views: 4284

Re: Splitting a face with BRepAlgoAPI_Splitter

What am I screwing up here? I don't think you are doing anything wrong, although I only skimmed your code. Here is a comment I made in my code years ago when I did id mapping for the booleans. /*! @brief Custom occt boolean operation * * The following is the answer to 'Why make this class?' * At th...
by tanderson69
Fri Sep 22, 2023 12:09 am
Forum: Developers corner
Topic: Using smart pointers for DocumentObject*.
Replies: 27
Views: 6761

Re: Using smart pointers for DocumentObject*.

That being said, @tanderson69, it seems to me that there is no decoupling. There is not much purpose in using "new" and not being able to use "delete". Or worse, using "new" and then destructing with "delete" only when it is correct. The best thing to do, in ...
by tanderson69
Sun Sep 17, 2023 6:56 pm
Forum: Developers corner
Topic: Using smart pointers for DocumentObject*.
Replies: 27
Views: 6761

Re: Using smart pointers for DocumentObject*.

Here is, @tanderson69, an example of do as I say, not as I do: :mrgreen: https://github.com/andre-caldas/FreeCAD/blob/80e813a04f8ff93ad2a8607ad39b54dda07e15aa/src/App/Document.cpp#L3161 Time and a place for everything. The core guidelines are great but are just guidelines. I did some testing this m...
by tanderson69
Thu Sep 14, 2023 4:20 pm
Forum: Developers corner
Topic: Using smart pointers for DocumentObject*.
Replies: 27
Views: 6761

Re: Using smart pointers for DocumentObject*.

Yes. You can. The same way, you can get two unique_ptr to hold the same pointer. The same way you can call delete() on a pointer you do not "own". Using an intrusive pointer is nothing like those 2 examples! In particular, any one that gets a pointer and simply puts it in a smart_pointer ...