Aria
Aria

Reputation: 119

Fill: On covering (hiding) part of an edge of the old region by a new overlapping region

I am using Octave, version 4.2.1. Given the Octave code:

clear all
close all
clc
%region 1
x = [0 1 1];
y = [0 0 1];
fill(x,y,'b')
hold on
%region 2
x = [0 1 1];
y = [1 1 0];
fill(x,y,'y')

enter image description here

Region 1 is a triangular region created first called as the old region. Region 2 is a triangular region created second called as the new region. I want the new region covers part of an edge of region 1. But that part of an edge is still shown. Do you know how to hide it?

I expect there is an option to hide the covered edge of region 1.

Upvotes: 1

Views: 33

Answers (0)

Related Questions