Ask Question, Ask an Expert

+1-415-315-9853

info@mywordsolution.com

Ask Computer Engineering Expert

Surface Flattening using Discrete Harmonic Map, Morphing, and Texture Mapping.

1. Solve discrete harmonic mapping of a given surface patch (suppose the surface is genus-0 and with one boundary)

1.1. Map the boundary loop onto a unit rectangle using chord-length parameterization:

a) Pick a random starting point B0, trace the boundary loop L, compute its total length |L|;

b) Starting from B0, find vertices B1, B2, B3 on L, such that the lengths of the boundary paths from B0 to B1, B2, and B3 , are (or just passed) |L|/4, |L|/2, and 3|L|/4, respectively;

c) Map B0, B1, B2, and B3, to (0,0), (1,0), (1,1), and (0,1) respectively, map curve segments (B0, B1), (B1, B2), (B2, B3), (B3, B0) to four boundaries of the unit square accordingly using chord-length parameterization. This fixes the boundary mapping: all boundary vertices are mapped.

1.2. For every interior vertex, map it to the weighted average center of its one-rings. The weight is the harmonic weight, i.e., the cotangent weight defined on the original mesh.

Initially, map all interior vertices to (0.5,0.5), then use one of the following two ways to find the solution:

A easier but slower way:

Iteratively move the mapping position of each vertex:

Uik+1 = (Uik+(Σj≡n(i) wij ujk j≡n(i) wij )/2,

Here u denotes the coordinates on the plane, and we use k and k+1 to indicate the position before and after the (k+1)-th iteration.

You may need to do a few thousand iterations until you see the movement is small.

A faster way:

Assemble the coefficient matrix and solve the linear system (check slides)

2. Use your keyboard to control a linear interpolation between the original mesh and its planar target shape

a. Each vertex vi has its original 3D coordinates pi and 2D coordinates ui, its current position is xi = (1-t) pi+t ui

b. Use “-“ and “+” to decrease/increase the value of t, which should be restricted to [0,1]

3. Do a texture mapping using your computed coordinates.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91809

Have any Question? 


Related Questions in Computer Engineering

1 how is an application layer firewall different from a

1. How is an application layer firewall different from a packet-filtering firewall? Why is an application layer firewall sometimes called a proxy server? 2. How is static filtering different from dynamic filtering of pac ...

What is incomplete implementation is it possible to deal

What is incomplete implementation? Is it possible to deal with incomplete implementation as a way of dealing with system vulnerabilities? In other words, is it possible to completely deal with incomplete implementation? ...

Consider an ltid system specified by the equation yn 1 -

Consider an LTID system specified by the equation y[n + 1] - 0.5y[n] = x[n + 1] + 0.8x[n]. (a) Determine and sketch the magnitude and the phase responses. (b) Find the system response y[n] to the input x[n] = cos(0.5n - ...

In sctp the state of a receiver is as followsa the

In SCTP, the state of a receiver is as follows: a. The receiving queue has chunks 1 to 8, 11 to 14, and 16 to 20. b. There are 1800 bytes of space in the queue. c. The value of lastAck is 4. d. No duplicate chunk has bee ...

1 list as many of the emergency agencies in your community2

1. List as many of the emergency agencies in your community. 2. Of these listed in (1) above, which are dealing with information security? 3. We pointed out that the development of a good disaster recovery plan requires ...

An smp uma system contains 64 processors and is to compute

An SMP UMA system contains 64 processors and is to compute a running sum by adding all of the elements in a one million-element vector. Each processor takes one cycle to perform a single addition. How many cycles would i ...

1 implement a loop that prompts a user to enter a number

1. Implement a loop that prompts a user to enter a number between 1 and 10, giving three tries to get it right 2. Sometimes students write programs with instructions such as "Enter data, 0 to quit" and that exit the data ...

From which two sources does a union get its power to

From which two sources does a union get its power to negotiate effectively with the management of a business? What is the significance of unions to managers?

Implement a version of the current pattern searching

Implement a version of the current pattern searching algorithm that counts the number of times a given pattern occurs in a text. Your implementation should accommodate the fact that the search pattern may have repeating ...

1 explain the terms shallow copy and deep copy2 what access

1. Explain the terms shallow copy and deep copy. 2. What access attribute should instance variables have? What access attribute should static variables have? How about static final variables? 3. What access attribute sho ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Section onea in an atwood machine suppose two objects of

SECTION ONE (a) In an Atwood Machine, suppose two objects of unequal mass are hung vertically over a frictionless

Part 1you work in hr for a company that operates a factory

Part 1: You work in HR for a company that operates a factory manufacturing fiberglass. There are several hundred empl

Details on advanced accounting paperthis paper is intended

DETAILS ON ADVANCED ACCOUNTING PAPER This paper is intended for students to apply the theoretical knowledge around ac

Create a provider database and related reports and queries

Create a provider database and related reports and queries to capture contact information for potential PC component pro

Describe what you learned about the impact of economic

Describe what you learned about the impact of economic, social, and demographic trends affecting the US labor environmen