AttachedPlacement: subsequence-array an attached array support
now, one can "array an attached placement" a polar array.
This commit is contained in:
parent
7331c60ce5
commit
c3bb345c3f
|
@ -133,10 +133,15 @@ class AttachedPlacementSubsequence(lattice2BaseFeature.LatticeFeature):
|
||||||
sublinks = Subsequencer.Subsequence_auto(attacher.References,
|
sublinks = Subsequencer.Subsequence_auto(attacher.References,
|
||||||
loop= ('Till end' if obj.CycleMode == 'Open' else 'All around'),
|
loop= ('Till end' if obj.CycleMode == 'Open' else 'All around'),
|
||||||
index_filter= ifilt)
|
index_filter= ifilt)
|
||||||
|
|
||||||
|
deref = obj.Base.Placement.inverse()
|
||||||
|
basearray = [deref.multiply(plm) for plm in lattice2BaseFeature.getPlacementsList(obj.Base)]
|
||||||
|
|
||||||
plms = []
|
plms = []
|
||||||
for lnkval in sublinks:
|
for lnkval in sublinks:
|
||||||
attacher.References = lnkval
|
attacher.References = lnkval
|
||||||
plms.append(attacher.calculateAttachedPlacement(screen(obj.Base).Placement))
|
attplm = attacher.calculateAttachedPlacement(obj.Base.Placement)
|
||||||
|
plms.extend([attplm.multiply(plm) for plm in basearray])
|
||||||
return plms
|
return plms
|
||||||
|
|
||||||
class ViewProviderAttachedPlacementSubsequence(lattice2BaseFeature.ViewProviderLatticeFeature):
|
class ViewProviderAttachedPlacementSubsequence(lattice2BaseFeature.ViewProviderLatticeFeature):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user