@@ -687,6 +687,38 @@ def __init__(self):
687687 [[1.0 , 0.0 , 0.0 ], [1.0 , 1.0 , 0.0 ], [0.0 , 1.0 , 0.0 ], [- 1.0 , 1.0 , 0.0 ],
688688 [- 1.0 , 0.0 , 0.0 ], [- 1.0 , - 1.0 , 0.0 ], [0.0 , - 1.0 , 0.0 ], [1.0 , - 1.0 , 0.0 ],
689689 [0.0 , 0.0 , - 1.0 ], [0.0 , 0.0 , 1.0 ]])
690+ self ._nodeLayoutTriplePoint2DQ1 = HermiteNodeLayout (
691+ [[- 1.0 , 0.0 ], [0.0 , - 1.0 ], [1.0 , 1.0 ]])
692+ self ._nodeLayoutTriplePoint2DQ2 = HermiteNodeLayout (
693+ [[0.0 , - 1.0 ], [1.0 , 0.0 ], [- 1.0 , 1.0 ]])
694+ self ._nodeLayoutTriplePoint2DQ3 = HermiteNodeLayout (
695+ [[1.0 , 0.0 ], [0.0 , 1.0 ], [- 1.0 , - 1.0 ]])
696+ self ._nodeLayoutTriplePoint2DQ4 = HermiteNodeLayout (
697+ [[0.0 , 1.0 ], [- 1.0 , 0.0 ], [1.0 , - 1.0 ]])
698+ self ._nodeLayout3WayPoints12 = [
699+ HermiteNodeLayout ([[1.0 , 0.0 , 0.0 ], [0.0 , 1.0 , 0.0 ], [- 1.0 , - 1.0 , 0.0 ], [0.0 , 0.0 , - 1.0 ], [0.0 , 0.0 , 1.0 ]]),
700+ HermiteNodeLayout ([[- 1.0 , 0.0 , 0.0 ], [0.0 , 1.0 , 0.0 ], [1.0 , - 1.0 , 0.0 ], [0.0 , 0.0 , - 1.0 ], [0.0 , 0.0 , 1.0 ]]),
701+ HermiteNodeLayout ([[1.0 , 0.0 , 0.0 ], [0.0 , - 1.0 , 0.0 ], [- 1.0 , 1.0 , 0.0 ], [0.0 , 0.0 , - 1.0 ], [0.0 , 0.0 , 1.0 ]]),
702+ HermiteNodeLayout ([[- 1.0 , 0.0 , 0.0 ], [0.0 , - 1.0 , 0.0 ], [1.0 , 1.0 , 0.0 ], [0.0 , 0.0 , - 1.0 ], [0.0 , 0.0 , 1.0 ]])]
703+ self ._nodeLayout3WayPoints13 = [
704+ HermiteNodeLayout ([[- 1.0 , 0.0 , 0.0 ], [0.0 , 0.0 , - 1.0 ], [1.0 , 0.0 , 1.0 ], [0.0 , - 1.0 , 0.0 ], [0.0 , 1.0 , 0.0 ]]),
705+ HermiteNodeLayout ([[1.0 , 0.0 , 0.0 ], [0.0 , 0.0 , - 1.0 ], [- 1.0 , 0.0 , 1.0 ], [0.0 , - 1.0 , 0.0 ], [0.0 , 1.0 , 0.0 ]]),
706+ HermiteNodeLayout ([[1.0 , 0.0 , 0.0 ], [0.0 , 0.0 , - 1.0 ], [- 1.0 , 0.0 , 1.0 ], [0.0 , - 1.0 , 0.0 ], [0.0 , 1.0 , 0.0 ]]),
707+ HermiteNodeLayout ([[- 1.0 , 0.0 , 0.0 ], [0.0 , 0.0 , - 1.0 ], [1.0 , 0.0 , 1.0 ], [0.0 , - 1.0 , 0.0 ], [0.0 , 1.0 , 0.0 ]])]
708+ self ._nodeLayout3WayPoints23 = [
709+ HermiteNodeLayout ([[0.0 , 1.0 , 0.0 ], [0.0 , 0.0 , - 1.0 ], [0.0 , - 1.0 , 1.0 ], [- 1.0 , 0.0 , 0.0 ], [1.0 , 0.0 , 0.0 ]]),
710+ HermiteNodeLayout ([[0.0 , - 1.0 , 0.0 ], [0.0 , 0.0 , - 1.0 ], [0.0 , 1.0 , 1.0 ], [- 1.0 , 0.0 , 0.0 ], [1.0 , 0.0 , 0.0 ]]),
711+ HermiteNodeLayout ([[0.0 , 1.0 , 0.0 ], [0.0 , 0.0 , - 1.0 ], [0.0 , - 1.0 , 1.0 ], [- 1.0 , 0.0 , 0.0 ], [1.0 , 0.0 , 0.0 ]]),
712+ HermiteNodeLayout ([[0.0 , - 1.0 , 0.0 ], [0.0 , 0.0 , - 1.0 ], [0.0 , 1.0 , 1.0 ], [- 1.0 , 0.0 , 0.0 ], [1.0 , 0.0 , 0.0 ]])]
713+ self ._nodeLayout4WayPoints = [
714+ HermiteNodeLayout ([[- 1.0 , 0.0 , 0.0 ], [0.0 , 1.0 , 0.0 ], [0.0 , 0.0 , - 1.0 ], [1.0 , - 1.0 , 1.0 ]]),
715+ HermiteNodeLayout ([[1.0 , 0.0 , 0.0 ], [0.0 , 1.0 , 0.0 ], [0.0 , 0.0 , - 1.0 ], [- 1.0 , - 1.0 , 1.0 ]]),
716+ HermiteNodeLayout ([[- 1.0 , 0.0 , 0.0 ], [0.0 , - 1.0 , 0.0 ], [0.0 , 0.0 , - 1.0 ], [1.0 , 1.0 , 1.0 ]]),
717+ HermiteNodeLayout ([[1.0 , 0.0 , 0.0 ], [0.0 , - 1.0 , 0.0 ], [0.0 , 0.0 , - 1.0 ], [- 1.0 , 1.0 , 1.0 ]]),
718+ HermiteNodeLayout ([[1.0 , 0.0 , 0.0 ], [0.0 , 1.0 , 0.0 ], [0.0 , 0.0 , - 1.0 ], [- 1.0 , - 1.0 , 1.0 ]]),
719+ HermiteNodeLayout ([[- 1.0 , 0.0 , 0.0 ], [0.0 , 1.0 , 0.0 ], [0.0 , 0.0 , - 1.0 ], [1.0 , - 1.0 , 1.0 ]]),
720+ HermiteNodeLayout ([[1.0 , 0.0 , 0.0 ], [0.0 , - 1.0 , 0.0 ], [0.0 , 0.0 , - 1.0 ], [- 1.0 , 1.0 , 1.0 ]]),
721+ HermiteNodeLayout ([[- 1.0 , 0.0 , 0.0 ], [0.0 , - 1.0 , 0.0 ], [0.0 , 0.0 , - 1.0 ], [1.0 , 1.0 , 1.0 ]])]
690722 self ._nodeLayoutTriplePointTopLeft = HermiteNodeLayout (
691723 [[1.0 , 0.0 , 0.0 ], [0.0 , 1.0 , 0.0 ], [0.0 , - 1.0 , 0.0 ], [0.0 , 0.0 , - 1.0 ], [- 1.0 , 0.0 , 1.0 ]])
692724 self ._nodeLayoutTriplePointTopRight = HermiteNodeLayout (
@@ -772,11 +804,48 @@ def getNodeLayoutTriplePoint23Back(self):
772804
773805 return nodeLayout
774806
807+ def getNodeLayoutTriplePoint2D (self ):
808+ """
809+ Get node layout for triple-point corners of 2D quadrants.
810+ :return: List of 4 HermiteNodeLayout.
811+ """
812+ nodeLayouts = [self ._nodeLayoutTriplePoint2DQ1 , self ._nodeLayoutTriplePoint2DQ2 ,
813+ self ._nodeLayoutTriplePoint2DQ3 , self ._nodeLayoutTriplePoint2DQ4 ]
814+ return nodeLayouts
815+
816+ def getNodeLayout3WayPoints12 (self ):
817+ """
818+ Get 3-way node layouts for quadrants 12 = NN, NP, PN, PP.
819+ :return: List of 4 HermiteNodeLayout.
820+ """
821+ return self ._nodeLayout3WayPoints12
822+
823+ def getNodeLayout3WayPoints13 (self ):
824+ """
825+ Get 3-way node layouts for quadrants 13 = NN, NP, PN, PP.
826+ :return: List of 4 HermiteNodeLayout.
827+ """
828+ return self ._nodeLayout3WayPoints13
829+
830+ def getNodeLayout3WayPoints23 (self ):
831+ """
832+ Get 3-way node layouts for quadrants 23 = NN, NP, PN, PP.
833+ :return: List of 4 HermiteNodeLayout.
834+ """
835+ return self ._nodeLayout3WayPoints23
836+
837+ def getNodeLayout4WayPoints (self ):
838+ """
839+ Get node layouts from a regular core for octants 123: NNN, NNP, NPN, NPP, PNN, PNP, PPN, PPP.
840+ :return: List of 8 HermiteNodeLayout.
841+ """
842+ return self ._nodeLayout4WayPoints
843+
775844 def getNodeLayoutTriplePoint (self ):
776845 """
777846 Get node layout for triple-point corners of core box elements. There are four corners (Top Left, Top Right,
778847 Bottom Left, and Bottom Right) each with its specific node layout.
779- :return: HermiteNodeLayout.
848+ :return: List of 4 HermiteNodeLayout.
780849 """
781850 nodeLayouts = [self ._nodeLayoutTriplePointTopLeft , self ._nodeLayoutTriplePointTopRight ,
782851 self ._nodeLayoutTriplePointBottomLeft , self ._nodeLayoutTriplePointBottomRight ]
0 commit comments