The model/render components do not allow changing the amount of vertices. Instead you want to generate your own mesh using Mesh API. You can see an example here, where a custom plane is generated with many vertices:
Similar principle for other shapes. There are some convenience methods for some common shapes, that can help if you don’t want to calculate vertex positions yourself (link for a box, but there are a few other shapes available from the left menu):
You would use it like
const mesh = pc.createBox(options);
Then use that mesh in your render component, like in the first example.
You need to pass mesh instance to the render component, not a mesh. They are different. Please, follow the first example to construct a mesh. Or use this one (on top of the page):