Lattice: cooler orientation marker

This commit is contained in:
DeepSOIC 2015-11-01 23:19:24 +03:00
parent 728067cab6
commit 2f9f3375b8
4 changed files with 205 additions and 3 deletions

View File

@ -174,10 +174,11 @@ class LatticeFeature():
if obj.ViewObject is not None: if obj.ViewObject is not None:
try: try:
if isObjectLattice(obj): if isObjectLattice(obj):
obj.ViewObject.DisplayMode = 'Shaded' #obj.ViewObject.DisplayMode = 'Shaded'
obj.ViewObject.ShapeColor = getDefLatticeFaceColor() obj.ViewObject.ShapeColor = getDefLatticeFaceColor()
obj.ViewObject.Lighting = 'One side'
else: else:
obj.ViewObject.DisplayMode = 'Flat Lines' #obj.ViewObject.DisplayMode = 'Flat Lines'
obj.ViewObject.ShapeColor = getDefShapeColor() obj.ViewObject.ShapeColor = getDefShapeColor()
except App.Base.FreeCADError as err: except App.Base.FreeCADError as err:
#these errors pop up while loading project file, apparently because #these errors pop up while loading project file, apparently because

View File

@ -81,7 +81,7 @@ def getPlacementMarker(scale = 1.0, markerID = None):
The shape is scaled according to "scale" argument. The shape is scaled according to "scale" argument.
markerID sets the marker file name. If omitted, default placement marker is returned.''' markerID sets the marker file name. If omitted, default placement marker is returned.'''
if markerID is None: if markerID is None:
markerID = 'tetra-orimarker' markerID = 'paperplane-orimarker'
sh = loadShape(markerID) sh = loadShape(markerID)
if scale != 1.0: if scale != 1.0:
sh = sh.copy() sh = sh.copy()

Binary file not shown.

View File

@ -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