More Information
I want my programm to intersect two surfaces.
These surfaces are given in a prametric form. A Surface contains three mathematical functions. Those are x(u,v), y(u,v), z(u,v) . So for every u and v you can compute a point in 3D-Space. (When I set up my set of equations I above, I used s and t for the second face)
Some pseudo code so you can understand the Problem better. (When wrote that I want a func with two surfaces as the input I meant a function in my code)
func intersect(s1: Surface, s2: Surface) {
// The lines below are a mathematical notation
s1.x = s2.x
s1.y = s2.y
s1.z = s3.z
// This created a set of three equations. (like the one I shared with you in a comment)
setofequations.solve() //Now the programm has to solve this set of equations
}
The really tricky part is that there are more parameteres than equations, so the result are mathematical functions for the unknown insteed of values.
I hope could explain my problem better.
Topic:
Programming Languages
SubTopic:
Swift
Tags: