What is the best method for doing this? I have a box, that is sloped, and I have a smaller box that I want to "attach" to it, so I need to align the vertex to the face. What is the best method for doing this?
Is this a coding problem or a modeling problem? What are you trying to do?
This is a modelling problem, I have a triangle, and I want to put a vertex along the face (it's going diagonally).
I just want to have the vertex on the face.
Are you using 3D Studio Max?
you could "tesselate" the face in question, or "split" one of the lines (edges), or use the slice plane with a face sub-selection...
:p
I'm trying not to increase the polygon count though, doing that a lot can wind up in a lot of useless polygons... :(
I can think of one way, I'm sure there is an easier one but it currently eludes me.
Copy the face you want to place a vertex in the middle of into a new mesh. Subdivide this new mesh (face) so it is split into 3 triangles, delete the 3 outer vertices and you'll be left with the middle vertex perfectly positioned.
Another method is copy the 3 vertices that make up that face (hold shift if you want to clone them into the same model and just click once, you'll get the option to copy or instance the 3 vertices). Then simply collapse them, they will all collapse into the centre of that face due to the averaging of the 3 vertices positions.