Search found 11 matches

by amstuff
Thu Jul 12, 2018 6:24 pm
Forum: FEM
Topic: Display principal stresses
Replies: 46
Views: 12660

Re: Display principal stresses

sorry for the (huge) delay. Unfortunately I'm still caught up in a lot other stuff and can't make the time right now. I'm however still committed to bringing this upstream eventually (can't tell when exactly though) and am checking by the forums every now and then.
by amstuff
Sun Dec 03, 2017 11:06 am
Forum: FEM
Topic: Display principal stresses
Replies: 46
Views: 12660

Re: Display principal stresses

Hi bernd,
I have not forgotten about this and will definitely come back to it when i can make the time!
cheers
by amstuff
Sun Dec 03, 2017 10:51 am
Forum: Python scripting and macros
Topic: [solved] custom DocumentObject
Replies: 0
Views: 527

[solved] custom DocumentObject

I'm looking for a way to create a new DocumentObject type in python, that basically combines a DocumentObjectGroup with a Part::Feature. The idea is to let this object hold the original shape and some extra attributes while keeping some derived objects in the group. The obvious solution here would b...
by amstuff
Thu Oct 19, 2017 10:17 am
Forum: Open discussion
Topic: Offset spline surfaces without self-intersection
Replies: 3
Views: 960

Re: Offset spline surfaces without self-intersection

Thanks microelly2! That's of course a valid solution. However, I forgot to mention that I need to do a lot of offsets on different surfaces (with varying curvature), so manually working around self-intersections really isn't an option for me. I was kind of hoping this had already been implemented so...
by amstuff
Thu Oct 19, 2017 8:20 am
Forum: Open discussion
Topic: Offset spline surfaces without self-intersection
Replies: 3
Views: 960

Offset spline surfaces without self-intersection

I was wondering if there is a way to offset a spline surface in a way that avoids self-intersection. From my (limited) research it looks like Parts offset feature mainly wraps the respective OCCT feature. https://www.opencascade.com/doc/occt-7.2.0/refman/html/class_b_rep_offset_a_p_i___make_offset_s...
by amstuff
Wed Oct 18, 2017 11:18 am
Forum: FEM
Topic: Display principal stresses
Replies: 46
Views: 12660

Re: Display principal stresses

Do you have an idea how to implement the criteria in a general way? What I'm planning to do is to pass a 4 value (x,y,z,magnitude) vectorfield to vtk and use the magnitude information to choose the glyph-type (the sign of the magnitude being the indicator). If magnitude isn't available or if the ch...
by amstuff
Wed Oct 18, 2017 7:58 am
Forum: FEM
Topic: Display principal stresses
Replies: 46
Views: 12660

Re: Display principal stresses

Once again thank you very much for your valuable input, @ickby! I now got almost everything working as intended. points on my todo list: Use the principal stress magnitude to select the arrow-shape Desired behaviour is: arrows facing each-other for compressional stresses; arrows facing in opposite d...
by amstuff
Sun Oct 15, 2017 11:26 pm
Forum: FEM
Topic: Display principal stresses
Replies: 46
Views: 12660

Re: Display principal stresses

This is tricky with those plain c callbacks, and I never tried this in VTK. One mathod that may work is to utilize the argument. If I understand it correctly, the argument Arg you pass to SetGlyphMethod(callback, Arg) is the same that is passed to the callback itself. So what you can do is for exam...
by amstuff
Wed Oct 11, 2017 12:50 am
Forum: FEM
Topic: Display principal stresses
Replies: 46
Views: 12660

Re: Display principal stresses

I took a shot at implementing this and got somewhat close to what i want to achieve. The current code is available on my github: https://github.com/AMstuff/FreeCAD/commit/41781f87ea0fd91540d84924f9966664172ce48d Still i am facing some problems which I hope you can help me with: 1. I have trouble pas...
by amstuff
Wed Sep 27, 2017 9:28 am
Forum: FEM
Topic: Display principal stresses
Replies: 46
Views: 12660

Re: Display principal stresses

Thanks for the informative reply ickby! I dug around in the Pipeline/VTK source, yet still can't find anything related to the principal stress vectors. Only the magnitudes keep showing up. Can you please point me to the vectorfields? :) Also thanks for the insight into the inner workings of Pipeline...