Question: I have a stylesheet that specifies a style for `<LABEL>`.

But some `<LABEL>`s are special: Currently I inline style them like this:

```
<LABEL style="text-align:right; line-height:15pt">
    <div style="padding-right:20px">My Label Text</div>
</LABEL>

```

I suspect there's a way to specify a CSS class, perhaps called `rightlabel`, to render the preceding using something simple like this:

```
<LABEL class="rightlabel">My Label Text</LABEL>

```

What would the correct way be to do that? I.e., is there a way to define `rightlabel` in CSS to produce the overridden `<LABEL>` **while automatically wrapping its children in a padded child container** (because the style doesn't work correctly unless that is done, and it doesn't seem proper to depend on the coder to implement two elements to get the style right)?

**Amendment:** I can get most of the way there using a child selector – as shown in [this fiddle](https://jsfiddle.net/c3h9a2b9/) with this CSS:

```
.rightLabel {text-align: right}
.rightLabel > * {padding-right: 20px}

```

But I can't find a way to apply the padding to the label contents without explicitly wrapping the contents in some container. I.e., the above CSS works correctly on

```
<LABEL class="rightLabel">
  <div>This is what we wanted!</div>
</LABEL>

```

but not on

```
<LABEL class="rightLabel">Why am I not padded?</LABEL>

```

Is it possible to apply a style to the `<LABEL>` contents without explicitly coding them inside another HTML element (child)?

Answer: 
Usually, faces stores indices of each triangle in the vertices array. So the first face is a triangle consisting of vertices[0], vertices[1], vertices[2]. The second one consists of vertices[3], vertices[4], vertices[5] and so on.
For triangular meshes, a face is a triangle defined by 3 vertices. Normally, a mesh is composed by a list of n vertices and m faces. For example:

Vertices:

```
Point_0 = {0,0,0}
Point_1 = {2,0,0}
Point_3 = {0,2,0}
Point_4 = {0,3,0}
...
Point_n = {30,0,0}

```

Faces:

```
Face_0 = {Point_1, Point_4, Point_5}
Face_1 = {Point_2, Point_4, Point_7}
...
Face_m = {Point_1, Point_2, Point_n}

```

For the sake of brevity, you can define Face\_0 as a set of indices: {1,4,5}.

In addition, the normal vector is computed as a cross product between the vertices of a face. By convention, the direction of the normal vector is directed outside the mesh. For example:

```
normal_face_0 = CrossProcuct ( (Point_4 - Point_1) ,   (Point_5 - Point_4) )

```

In your case, it is quite weird to see four indices in a face definition. Normally, there should be only 3 items in the array. Are you sure this is not a mistake?