creating nodes for pyflow environment I'm wondering how should I name the objects in 3D viewspace.
There are the concepts shape and geometry illustrated here: https://www.freecadweb.org/wiki/Topolog ... _scripting
Then there is the step to bring the Shape into a Document
example
Part.show(aShape)
or
f = doc.addObject("Part::Feature", "myObject")
f.Shape = aShape
What is/should be the classname for f? Part?, Part Feature?, Feature?, Body?, Figure?
With pyflow I will work with multiple documents, so it will be possible to have different incarnations of the same objects in the documents
(i think about different level of details or different modes shaded, wireframe/grid)
When I call it Part Feature, then there can be other features like Mesh Feature too.
What is a good classname for objects in 3D viewspace?
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Be nice to others! Read the FreeCAD code of conduct!
- microelly2
- Veteran
- Posts: 4688
- Joined: Tue Nov 12, 2013 4:06 pm
- Contact:
- wandererfan
- Veteran
- Posts: 6268
- Joined: Tue Nov 06, 2012 5:42 pm
- Contact:
Re: What is a good classname for objects in 3D viewspace?
"DisplayableObject"? "Object3D"?microelly2 wrote: ↑Tue Jul 23, 2019 6:12 am creating nodes for pyflow environment I'm wondering how should I name the objects in 3D viewspace.
Just no more "Partxxxx" please!
- microelly2
- Veteran
- Posts: 4688
- Joined: Tue Nov 12, 2013 4:06 pm
- Contact:
Re: What is a good classname for objects in 3D viewspace?
what about view3D? we had in German 3D Ansicht, 3D Darstellung
https://forum.freecadweb.org/viewtopic. ... 14#p322530
https://forum.freecadweb.org/viewtopic. ... 14#p322530
Re: What is a good classname for objects in 3D viewspace?
None of Part, Part Feature, Feature, Body due to disambiguities expected.microelly2 wrote: ↑Tue Jul 23, 2019 6:12 am What is/should be the classname for f? Part?, Part Feature?, Feature?, Body?, Figure?
If I understand it right, these objects are only visualisations, i.e. 3D representations of objects. Then why not name them as such: Representation or Representation3D or Visualisation3D or View3D
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
- kkremitzki
- Veteran
- Posts: 2511
- Joined: Thu Mar 03, 2016 9:52 pm
- Location: Illinois
Re: What is a good classname for objects in 3D viewspace?
DisplayableObject seems nice and descriptive.
- microelly2
- Veteran
- Posts: 4688
- Joined: Tue Nov 12, 2013 4:06 pm
- Contact:
Re: What is a good classname for objects in 3D viewspace?
here a short video to get a feeling for those representation nodes.
thanks to all for the discussion,
I can rework the naming next days.
thanks to all for the discussion,
I can rework the naming next days.
- wandererfan
- Veteran
- Posts: 6268
- Joined: Tue Nov 06, 2012 5:42 pm
- Contact: