i would like to check an objects shape to see if one could make create an equivalent polyhedron.
Okay I can access an Objects Shape and this should have Faces, but how do I check what type of face it is? Planar, Bezier etc.
More importantly where is all this documented ?
Search found 2764 matches
- Wed Feb 27, 2019 11:06 pm
- Forum: Developers corner
- Topic: Test Object Shape Faces - Polyhedron
- Replies: 10
- Views: 1654
- Tue Feb 26, 2019 5:02 am
- Forum: Developers corner
- Topic: Formatting XML with minidom.
- Replies: 2
- Views: 369
Re: Formatting XML with minidom.
OKay found a way to achieve the desired result without using minidom.
- Sun Feb 24, 2019 10:35 pm
- Forum: Developers corner
- Topic: Formatting XML with minidom.
- Replies: 2
- Views: 369
Formatting XML with minidom.
I am trying to prettify XML code in a GDML exporter see https://addons.thunderbird.net/en-us/thunderbird/addon/mailredirect/ The code looks like ( I have tried a number if ways of using mindom ) gdml_pretty = ET.tostring(gdml,encoding='utf8').decode('utf8') xmlstr = minidom.parseString(gdml_pretty)....
- Fri Feb 01, 2019 2:17 pm
- Forum: Help on using FreeCAD
- Topic: .scad is supported?
- Replies: 7
- Views: 4868
Re: .scad is supported?
mmmH - I tried the file and like for you it appeared to be looping. The scad file produces a CSG file with basically a couple of OpenSCAD text commands. I have tried to isolate the problem by trying various cutdown files. Dealing with the OpenSCAD text command is a SLOW process. For each text comman...
- Wed Jan 30, 2019 11:55 pm
- Forum: Help on using FreeCAD
- Topic: .scad is supported?
- Replies: 7
- Views: 4868
Re: .scad is supported?
Just checked the latest version of OpenSCAD is 2015.03 according to their website, so my vague memories are incorrect and should work just fine
Unless of course, somebody has been updating the FreeCAD OpenSCAD workbench and things have retrograded.
Unless of course, somebody has been updating the FreeCAD OpenSCAD workbench and things have retrograded.
- Wed Jan 30, 2019 11:51 pm
- Forum: Help on using FreeCAD
- Topic: .scad is supported?
- Replies: 7
- Views: 4868
- Wed Jan 30, 2019 11:45 pm
- Forum: Help on using FreeCAD
- Topic: .scad is supported?
- Replies: 7
- Views: 4868
Re: .scad is supported?
Works fine for me on OS: Mac OS X Word size of OS: 64-bit Word size of FreeCAD: 64-bit Version: 0.17.13519 (Git) Build type: Release Branch: (HEAD detached at 1a8b868) Hash: 1a8b868018f45ea486c0023fdbfeb06febc1fb89 Python version: 2.7.14 Qt version: 5.10.1 Coin version: 4.0.0a OCC version: 7.2.0 Loc...
- Mon Jan 28, 2019 5:08 pm
- Forum: Developers corner
- Topic: Trying to define a constructor passing a FreeCAD object.
- Replies: 6
- Views: 623
Re: Trying to define a constructor passing a FreeCAD object.
Solved : Same mistake as before Forgot to add <bases> definition for class further up the hierarchy.
- Sat Jan 26, 2019 9:53 pm
- Forum: Developers corner
- Topic: Trying to define a constructor passing a FreeCAD object.
- Replies: 6
- Views: 623
Re: Trying to define a constructor passing a FreeCAD object.
Okay I tried changing to class MyG4TriangularFacet : public G4TriangularFacet { public: MyG4TriangularFacet(Base::Vector3d v0, Base::Vector3d v1, Base::Vector3d v2); // Virtual ~MyFC_2_G4TriangularFace(); private: }; // Constructor MyG4TriangularFacet::MyG4TriangularFacet(Base::Vector3d v0, Base::Ve...
- Sat Jan 26, 2019 6:49 am
- Forum: Developers corner
- Topic: Trying to define a constructor passing a FreeCAD object.
- Replies: 6
- Views: 623
Re: Trying to define a constructor passing a FreeCAD object.
Hi Werner Still having problems getting my head round Base::Vector My code has # add name of TessellateSolid tessellate = G4TessellatedSolid() # mesh.Topology[0] = points # mesh.Topology[1] = faces for fc_facet in mesh.Topology[1] : print(fc_facet) g4_facet = createFacet(mesh.Topology[0][fc_facet[0]...