HI,
I have created a basic, rectangular shape to which I have created a rectangular hole and extruded as per the attached image.
Once textured, the top texture is being repeated 2x in width and 2x in length and despite adjusting the repeat I cannot make the texture fill the top with no repeat.
Does anyone have any information on how to texture the surfaces with no repeat?
Many thanks.
Shape created with
var newshape = new THREE.Shape();
newshape.moveTo(-slength / 2, swidth / 2);
newshape.lineTo(slength / 2, swidth / 2);
newshape.lineTo(slength / 2, -swidth / 2);
newshape.lineTo(-slength / 2, -swidth / 2);
newshape.lineTo(-slength / 2, -swidth / 2);
Hole Created with
var hole = new THREE.Path();
hole.moveTo(-((slength / 2) - rborder), ((swidth / 2) - rearborder));
hole.lineTo(((slength / 2) - lborder), ((swidth / 2) - rearborder));
hole.lineTo(((slength / 2) - lborder), -((swidth / 2) - fborder));
hole.lineTo(-((slength / 2) - rborder), -((swidth / 2) - fborder));
newshape.holes = [hole];
Extrusion settings
var extrudeSettings = {
depth: sdepth,
steps: 1,
material: 1,
};