Question: Pseudo - code while ( true ) { apply _ simulation ( mesh ) ; foreach ( vertex v in mesh _ seam ) {

Pseudo-code
while(true){
apply_simulation(mesh);
foreach(vertex v in mesh_seam){
Vector2p= project_to_screen(v);
Vector2 q = get_corresponding_stroke_position(v);
double displacement = Vector2.dot_product(get_screen_space_normal(p), Vector2.subt
Vertex2D[] vs = get_corresponding_pattern_vs(v);
vs[0].translate(Vector2.multiply( vs[0].normal, displacement ));
vs[1].translate(Vector2.multiply( vs[1].normal, displacement ));
}
update_rest_lengthes(mesh);
}
Select the all missing elements in this code.
stopping iteration when the inflation result matches well with the input
stroke
shrinking the pattern when the inflated result is larger than the input sketch
stopping pattern growth when self-overlap occurs
updating rest length of the mesh according to changes in the pattern
applying inflation simulation
enlarging the pattern when the inflated result is smaller than the input sketch
 Pseudo-code while(true){ apply_simulation(mesh); foreach(vertex v in mesh_seam){ Vector2p= project_to_screen(v); Vector2 q

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!