This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def moveNode(region, nodekey, plane_normal=[0, 1, 0], cache=none): | |
# moveNode uses dot products combined with opencmiss' evaluateMeshLocation function to solve where a point lies along a given normal (line in 3D). | |
# usage: Please not that this solver assumes that the user knows where the solution should be in one dimension, | |
# for example: Where is the closest mesh point at x=0 (normal=[1,0,0]) starting at [1,3,2]? | |
# Inputs: | |
# region: the region you wish to solve in (must contain a mesh and a the node you wish to move) | |
# nodekey: identifier of the node we wish to project onto the mesh | |
# plane_normal: the direction we wish to project the node onto the mesh |
NewerOlder