Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 796777
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T22:41:32+00:00 2026-05-14T22:41:32+00:00

My concern are quadratic bezier triangles which I’m trying to tesselate for rendering them.

  • 0

My concern are quadratic bezier triangles which I’m trying to tesselate for rendering them.

I’ve managed to implement this by subdividing the triangle recursively like described in a wikipedia page. Though I’d like to get more precision to subdivision. The problem is that I’ll either get too few subdivisions or too many because the amount of surfaces doubles on every iteration of that algorithm.

In particular I would need an adaptive tesselation algorithm that allows me to define the amount of segments at the edges. I’m not sure whether I can get that though so I’d also like to hear about uniform tesselation techniques.

Hardest trouble I have trouble with calculating normals for a point in bezier surface, which I’m not sure whether I need, but been trying to solve out.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T22:41:32+00:00Added an answer on May 14, 2026 at 10:41 pm

    Adaptive tesselation. There are many algorithms to this. But here’s one:

    def line_angle((x0,y0),(x1,y1)):
        return atan2(y1-y0,x1-x0)
    
    def adaptive_bezier(p0,p1,p2,lev=32):
        p01 = midpoint(p0,p1)
        p12 = midpoint(p1,p2)
        m = midpoint(p01, p12)
        da = abs(line_angle(p0,p1) - line_angle(p1,p2))
        if da <= max_tolerance or lev <= 0:
            yield m
        else:
            for p in adaptive_bezier(p0,p01,m,lev-1): yield p
            for p in adaptive_bezier(m,p12,p2,lev-1): yield p
    

    For tesselating triangles this way there are complications to the matter. You need to drive the adaptive tesselator algorithm according to the angles of the edge beziers. There’s three unique ways how your triangle can split when tesselating.

     2 edges      one edge     3 edges    
    --------     ---------    --------
    \  ...//     \   |   /    \ /  \ /
     \/___/       \  |  /      \____/
      \  /         \ | /        \  /
       \/           \|/          \/
    

    Define tesselation results for these patterns and you’re well off. Only the tesselation with one edge is described in wikipedia article.

    Two other tesselation results can be obtained by studying the case of one edge split.

    “2 edges” can be obtained straight out by splitting first one edge and then another.

    “3 edges” is a bit more work to find out. But you can see the “2 edges” -case brings you a mid-edge. In the case of quadratic bezier triangle it is an averaged sum of diamond appearing there:

    --------      /\
    \      /     /  \
     \____/     -____-
      \  /       \  /
       \/         \/
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have three tables of concern and a query which generates the following output
I am trying to make something look like following (don't concern color here. my
EDIT : This is just a simple example to demontrate the concern I have
To whom it may concern, I am trying to make a list navigation menu
There are n clients, the main concern is that is most of them is
I've have an application which send request to server side. my concern is that,
my main concern is if i am doing this safely, efficiently, and for the
To whom this may concern, This is some code to a card game simulation.
Ok this is a 2 part question, first primary concern is the nextval() bit.
My concern is that novice users will turn their back to a website which

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.