diff --git a/latticeBaseFeature.py b/latticeBaseFeature.py index 3753a58..e77ccff 100644 --- a/latticeBaseFeature.py +++ b/latticeBaseFeature.py @@ -174,10 +174,11 @@ class LatticeFeature(): if obj.ViewObject is not None: try: if isObjectLattice(obj): - obj.ViewObject.DisplayMode = 'Shaded' + #obj.ViewObject.DisplayMode = 'Shaded' obj.ViewObject.ShapeColor = getDefLatticeFaceColor() + obj.ViewObject.Lighting = 'One side' else: - obj.ViewObject.DisplayMode = 'Flat Lines' + #obj.ViewObject.DisplayMode = 'Flat Lines' obj.ViewObject.ShapeColor = getDefShapeColor() except App.Base.FreeCADError as err: #these errors pop up while loading project file, apparently because diff --git a/latticeMarkers.py b/latticeMarkers.py index d01f4ea..14555f2 100644 --- a/latticeMarkers.py +++ b/latticeMarkers.py @@ -81,7 +81,7 @@ def getPlacementMarker(scale = 1.0, markerID = None): The shape is scaled according to "scale" argument. markerID sets the marker file name. If omitted, default placement marker is returned.''' if markerID is None: - markerID = 'tetra-orimarker' + markerID = 'paperplane-orimarker' sh = loadShape(markerID) if scale != 1.0: sh = sh.copy() diff --git a/shapes/paperplane-orimarker.FCStd b/shapes/paperplane-orimarker.FCStd new file mode 100644 index 0000000..55a658c Binary files /dev/null and b/shapes/paperplane-orimarker.FCStd differ diff --git a/shapes/paperplane-orimarker.brep b/shapes/paperplane-orimarker.brep new file mode 100644 index 0000000..01ad27a --- /dev/null +++ b/shapes/paperplane-orimarker.brep @@ -0,0 +1,201 @@ +DBRep_DrawableShape + +CASCADE Topology V1, (c) Matra-Datavision +Locations 11 +1 + 1 0 0 0 + 0 1 0 0 + 0 0 1 0 +1 + 1 0 0 0 + 0 1 0 0 + 0 0 1 0 +1 + 1 0 -0 0 + -0 2.22044604925031e-016 -1 0 + 0 1 2.22044604925031e-016 0 +1 + 1 0 0 0 + 0 1 0 0 + 0 0 1 0 +2 3 1 4 1 0 +2 4 -1 3 -1 0 +1 + 1 0 0 0 + 0 1 0 0 + 0 0 1 0 +2 7 1 2 1 0 +2 2 -1 7 -1 0 +2 7 -1 0 +2 3 -1 0 +Curve2ds 0 +Curves 7 +1 0 0 0 1 0 0 +1 0.99999999999999989 0 0 -0.93465529130606351 -0.35555518057479879 0 +1 -0.28144611926053531 -0.48747897815233698 0 0.49999999999999978 0.86602540378443871 0 +1 4.163336342344337e-017 3.9478354044454804e-017 0 -0.49999999999999989 0.86602540378443882 0 +1 -0.2814461192605352 0.48747897815233687 0 0.93465529130606351 -0.35555518057479868 0 +1 0 -0.28560000000000002 0 0 1 0 +1 0.99999999999999967 0 0 -0.96155297028741438 -0.27461952831408565 0 +Polygon3D 0 +PolygonOnTriangulations 9 +2 1 2 +p 0.00423667345927535 1 0 1 +2 1 3 +p 0.00423667345927535 1 0 1 +2 1 2 +p 0.00423667345927535 1 0 1 +2 2 3 +p 0.00423667345927535 1 0 1.37103607199385 +2 3 1 +p 0.00423667345927535 1 0 0.562892238521071 +2 1 2 +p 0.00423667345927535 1 0 0.562892238521071 +2 2 3 +p 0.00423667345927535 1 0 1.37103607199385 +2 3 1 +p 0.00423667345927535 1 0 0.2856 +2 2 3 +p 0.00423667345927535 1 0 1.03998430757392 +Surfaces 2 +1 4.163336342344337e-017 3.9478354044454804e-017 0 -0 -0 1 1 0 0 -0 1 0 +1 0 0 0 0 -1 2.2204460492503136e-016 0 -2.2204460492503136e-016 -1 1 0 0 +Triangulations 3 +3 1 1 0 +2.42861274828864e-017 2.37473749547807e-017 0 1 0 0 -0.281446119260535 -0.487478978152337 0 0 0 1 -5.55111512312578e-017 -0.281446119260535 -0.487478978152337 2 1 3 +3 1 1 0 +2.42861274828864e-017 2.37473749547807e-017 0 -0.281446119260535 0.487478978152337 0 1 0 0 0 -1.57309790896741e-017 -0.281446119260535 0.487478978152337 1 -3.94783540444548e-017 3 2 1 +3 1 1 7.91579165159356e-018 +2.42861274828864e-017 2.37473749547807e-017 0 1 0 0 0 -6.34159391665889e-017 -0.2856 -5.27297648984086e-033 2.42861274828864e-017 0 1 0.2856 0 2 1 3 + +TShapes 20 +Ve +1.00000000044569e-007 +2.42861274828864e-017 2.37473749547807e-017 0 +0 0 + +0101101 +* +Ve +1.00000000111022e-007 +1 0 0 +0 0 + +0101101 +* +Ed + 1e-007 1 1 0 +1 1 0 0 1 +6 1 1 6 +6 2 2 6 +6 3 3 6 +0 + +0101000 ++20 6 -19 6 * +Ve +1.00000000055511e-007 +-0.281446119260535 -0.487478978152337 0 +0 0 + +0101101 +* +Ed + 1e-007 1 1 0 +1 2 0 0 1.37103607199385 +6 4 1 9 +0 + +0101000 ++19 9 -17 10 * +Ed + 1e-007 1 1 0 +1 3 0 0 0.562892238521071 +6 5 1 9 +0 + +0101000 ++17 10 -20 9 * +Wi + +0101000 +-18 5 -16 8 -15 8 * +Fa +0 1e-007 1 2 +2 1 +0101000 ++14 0 * +Ve +1e-007 +-0.281446119260535 0.487478978152337 0 +0 0 + +0101101 +* +Ed + 1e-007 1 1 0 +1 4 0 0 0.562892238521071 +6 6 2 9 +0 + +0101000 ++20 9 -12 10 * +Ed + 1e-007 1 1 0 +1 5 0 0 1.37103607199385 +6 7 2 9 +0 + +0101000 ++12 10 -19 9 * +Wi + +0101000 +-11 8 -10 8 +18 5 * +Fa +0 1e-007 1 2 +2 2 +0101000 ++9 0 * +Ve +1e-007 +0 -6.34159391665889e-017 -0.2856 +0 0 + +0101101 +* +Ed + 1e-007 1 1 0 +1 6 0 0 0.2856 +6 8 3 6 +0 + +0101000 ++7 11 -20 6 * +Ed + 1e-007 1 1 0 +1 7 0 0 1.03998430757392 +6 9 3 6 +0 + +0101000 ++19 6 -7 11 * +Wi + +0101000 +-18 5 -6 5 -5 5 * +Fa +0 1e-007 2 4 +2 3 +0101000 ++4 0 * +Sh + +0101000 ++13 0 +8 0 +3 0 * +Co + +1100000 ++2 1 * + ++1 0 \ No newline at end of file